Skip to content

Commit

Permalink
Utility/FormattedMessage: Add yet another hack to keep the serializer…
Browse files Browse the repository at this point in the history
… in service
  • Loading branch information
Efruit committed Nov 25, 2021
1 parent e7a3f7e commit 978c889
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Robust.Shared/Utility/FormattedMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,20 @@ public override string ToString()
return sb.ToString();
}

// I don't wanna fix the serializer yet.
public string ToMarkup()
{
var sb = new StringBuilder();
foreach (var i in Sections)
{
sb.AppendFormat("[color=#{0:X}]", i.Color);
sb.Append(i.Content);
sb.Append("[/color]");
}

return sb.ToString();
}

// are you a construction worker?
// cuz you buildin
public class Builder
Expand Down

0 comments on commit 978c889

Please sign in to comment.