XivChatEntry should use SeString

This commit is contained in:
Raymond 2021-07-15 22:09:31 -04:00
parent 85113e263f
commit 5c4ed3f715
7 changed files with 27 additions and 16 deletions

View file

@ -300,7 +300,7 @@ namespace Dalamud.Game.Text.SeStringHandling
EmphasisItalic = 0x1A,
/// <summary>
/// See the <see cref="NewLinePayload"/>
/// See the <see cref="NewLinePayload"/>.
/// </summary>
NewLine = 0x10,

View file

@ -1,4 +1,4 @@
using System;
using System;
using System.IO;
namespace Dalamud.Game.Text.SeStringHandling.Payloads
@ -16,7 +16,7 @@ namespace Dalamud.Game.Text.SeStringHandling.Payloads
public static NewLinePayload Payload => new();
/// <summary>
/// Gets the text of this payload, evaluates to <c>Environment.NewLine</c>
/// Gets the text of this payload, evaluates to <c>Environment.NewLine</c>.
/// </summary>
public string Text => Environment.NewLine;

View file

@ -13,6 +13,15 @@ namespace Dalamud.Game.Text.SeStringHandling
/// </summary>
public class SeString
{
/// <summary>
/// Initializes a new instance of the <see cref="SeString"/> class.
/// Creates a new SeString from an ordered list of payloads.
/// </summary>
public SeString()
{
this.Payloads = new List<Payload>();
}
/// <summary>
/// Initializes a new instance of the <see cref="SeString"/> class.
/// Creates a new SeString from an ordered list of payloads.