Add helper SeString ctor that just takes an array of payloads instead of requiring a list wrapper - simplifies some creation

This commit is contained in:
meli 2020-04-26 18:35:28 -07:00
parent 762ac6aa1a
commit 2c73e07e36

View file

@ -68,6 +68,15 @@ namespace Dalamud.Game.Chat.SeStringHandling
Payloads = payloads;
}
/// <summary>
/// Creates a new SeString from an ordered list of payloads.
/// </summary>
/// <param name="payloads">The Payload objects to make up this string.</param>
public SeString(Payload[] payloads)
{
Payloads = new List<Payload>(payloads);
}
/// <summary>
/// Appends the contents of one SeString to this one.
/// </summary>