refactor(Dalamud): switch to file-scoped namespaces

This commit is contained in:
goat 2021-11-17 19:42:32 +01:00
parent 13cf3d93dc
commit b5f34c3199
No known key found for this signature in database
GPG key ID: 7773BB5B43BA52E5
325 changed files with 45878 additions and 46218 deletions

View file

@ -1,33 +1,32 @@
using System.IO;
namespace Dalamud.Game.Text.SeStringHandling.Payloads
namespace Dalamud.Game.Text.SeStringHandling.Payloads;
/// <summary>
/// A wrapped ''.
/// </summary>
public class SeHyphenPayload : Payload, ITextProvider
{
private readonly byte[] bytes = { START_BYTE, (byte)SeStringChunkType.SeHyphen, 0x01, END_BYTE };
/// <summary>
/// A wrapped ''.
/// Gets an instance of SeHyphenPayload.
/// </summary>
public class SeHyphenPayload : Payload, ITextProvider
public static SeHyphenPayload Payload => new();
/// <summary>
/// Gets the text, just a ''.
/// </summary>
public string Text => "";
/// <inheritdoc/>
public override PayloadType Type => PayloadType.SeHyphen;
/// <inheritdoc />
protected override byte[] EncodeImpl() => this.bytes;
/// <inheritdoc />
protected override void DecodeImpl(BinaryReader reader, long endOfStream)
{
private readonly byte[] bytes = { START_BYTE, (byte)SeStringChunkType.SeHyphen, 0x01, END_BYTE };
/// <summary>
/// Gets an instance of SeHyphenPayload.
/// </summary>
public static SeHyphenPayload Payload => new();
/// <summary>
/// Gets the text, just a ''.
/// </summary>
public string Text => "";
/// <inheritdoc/>
public override PayloadType Type => PayloadType.SeHyphen;
/// <inheritdoc />
protected override byte[] EncodeImpl() => this.bytes;
/// <inheritdoc />
protected override void DecodeImpl(BinaryReader reader, long endOfStream)
{
}
}
}