Class SeString
This class represents a parsed SeString.
Inheritance
Inherited Members
Namespace: Dalamud.Game.Chat.SeStringHandling
Assembly: Dalamud.dll
Syntax
public class SeString
Constructors
| Improve this Doc View SourceSeString(Payload[])
Creates a new SeString from an ordered list of payloads.
Declaration
public SeString(Payload[] payloads)
Parameters
| Type | Name | Description |
|---|---|---|
| Payload[] | payloads | The Payload objects to make up this string. |
SeString(List<Payload>)
Creates a new SeString from an ordered list of payloads.
Declaration
public SeString(List<Payload> payloads)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.List<Payload> | payloads | The Payload objects to make up this string. |
Properties
| Improve this Doc View SourcePayloads
The ordered list of payloads included in this SeString.
Declaration
public List<Payload> Payloads { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<Payload> |
TextValue
Helper function to get all raw text from a message as a single joined string
Declaration
public string TextValue { get; }
Property Value
| Type | Description |
|---|---|
| System.String | All the raw text from the contained payloads, joined into a single string |
Methods
| Improve this Doc View SourceAppend(Payload)
Appends a single payload to this SeString.
Declaration
public SeString Append(Payload payload)
Parameters
| Type | Name | Description |
|---|---|---|
| Payload | payload | The payload to append. |
Returns
| Type | Description |
|---|---|
| SeString | This object. |
Append(SeString)
Appends the contents of one SeString to this one.
Declaration
public SeString Append(SeString other)
Parameters
| Type | Name | Description |
|---|---|---|
| SeString | other | The SeString to append to this one. |
Returns
| Type | Description |
|---|---|
| SeString | This object. |
Append(List<Payload>)
Appends a list of payloads to this SeString.
Declaration
public SeString Append(List<Payload> payloads)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.List<Payload> | payloads | The Payloads to append. |
Returns
| Type | Description |
|---|---|
| SeString | This object. |
Encode()
Encodes the Payloads in this SeString into a binary representation suitable for use by in-game handlers, such as the chat log.
Declaration
public byte[] Encode()
Returns
| Type | Description |
|---|---|
| System.Byte[] | The binary encoded payload data. |
Parse(Byte[])
Parse a binary game message into an SeString.
Declaration
public static SeString Parse(byte[] bytes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | bytes | Binary message payload data in SE's internal format. |
Returns
| Type | Description |
|---|---|
| SeString | An SeString containing parsed Payload objects for each payload in the data. |