mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Merge pull request #305 from ascclemens/master
Add implicit SeString construction
This commit is contained in:
commit
719ae8c132
1 changed files with 7 additions and 0 deletions
|
|
@ -36,6 +36,13 @@ namespace Dalamud.Game.Text.SeStringHandling
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Implicitly convert a string into a SeString containing a <see cref="TextPayload"/>.
|
||||
/// </summary>
|
||||
/// <param name="str">string to convert</param>
|
||||
/// <returns>Equivalent SeString</returns>
|
||||
public static implicit operator SeString(string str) => new SeString(new Payload[] { new TextPayload(str) });
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new SeString from an ordered list of payloads.
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue