mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 12:23:39 +01:00
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:
parent
762ac6aa1a
commit
2c73e07e36
1 changed files with 9 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue