mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-19 22:37:43 +01:00
refactor: Dalamud.Game.Chat => Dalamud.Game.Text, move Sanitizer
This commit is contained in:
parent
7996b64827
commit
3decb57b2c
38 changed files with 141 additions and 140 deletions
|
|
@ -0,0 +1,30 @@
|
|||
using System.IO;
|
||||
|
||||
namespace Dalamud.Game.Text.SeStringHandling.Payloads {
|
||||
/// <summary>
|
||||
/// A wrapped '–'
|
||||
/// </summary>
|
||||
public class SeHyphenPayload : Payload, ITextProvider {
|
||||
|
||||
/// <summary>
|
||||
/// Instance of SeHyphenPayload
|
||||
/// </summary>
|
||||
public static SeHyphenPayload Payload => new SeHyphenPayload();
|
||||
|
||||
/// <inheritdoc />
|
||||
public override PayloadType Type => PayloadType.SeHyphen;
|
||||
|
||||
private readonly byte[] bytes = {START_BYTE, (byte) SeStringChunkType.SeHyphen, 0x01, END_BYTE};
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override byte[] EncodeImpl() => this.bytes;
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void DecodeImpl(BinaryReader reader, long endOfStream) { }
|
||||
|
||||
/// <summary>
|
||||
/// Just a '–'
|
||||
/// </summary>
|
||||
public string Text => "–";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue