Supercell.GUT/Supercell.GUT.Logic/Message/Account/CreateAvatarMessage.cs
BreadDEV 281d2789ea [v0.1.0] database implementation
not finished. early wip state
2024-03-06 22:00:12 +07:00

46 lines
804 B
C#

using Supercell.GUT.Logic.Message.Attributes;
using Supercell.GUT.Titan.Logic.Message;
namespace Supercell.GUT.Logic.Message.Account;
[VersionedMessage(10200)]
public class CreateAvatarMessage : VersionedMessage
{
public string? Name { get; set; }
public CreateAvatarMessage() : base(0)
{
Name = null;
}
public override void Encode()
{
base.Encode();
ByteStream.WriteString(Name);
}
public override void Decode()
{
base.Decode();
Name = ByteStream.ReadString();
}
public override int GetMessageType()
{
return 10200;
}
public override int GetServiceNodeType()
{
return 1;
}
public override void Destruct()
{
base.Destruct();
Name = null;
}
}