mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
feat: append payloads to SeStringBuilder
This commit is contained in:
parent
08e85661e9
commit
0f30b8240c
1 changed files with 10 additions and 0 deletions
|
|
@ -1,3 +1,6 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
using Dalamud.Game.Text.SeStringHandling.Payloads;
|
||||
|
||||
namespace Dalamud.Game.Text.SeStringHandling;
|
||||
|
|
@ -30,6 +33,13 @@ public class SeStringBuilder
|
|||
/// <returns>The current builder.</returns>
|
||||
public SeStringBuilder Append(string text) => this.AddText(text);
|
||||
|
||||
/// <summary>
|
||||
/// Append payloads to the builder.
|
||||
/// </summary>
|
||||
/// <param name="payloads">A list of payloads.</param>
|
||||
/// <returns>The current builder.</returns>
|
||||
public SeStringBuilder Append(IEnumerable<Payload> payloads) => this.Append(new SeString(payloads.ToList()));
|
||||
|
||||
/// <summary>
|
||||
/// Append raw text to the builder.
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue