Supercell.GUT/Supercell.GUT.Logic/Message/Avatar/BuyOkMessage.cs

47 lines
805 B
C#
Raw Permalink Normal View History

2024-03-06 15:52:53 +00:00
using Supercell.GUT.Logic.Message.Attributes;
using Supercell.GUT.Titan.Logic.Message;
namespace Supercell.GUT.Logic.Message.Avatar;
[VersionedMessage(20207)]
public class BuyOkMessage : VersionedMessage
{
public string? Item { get; set; }
public BuyOkMessage() : base(0)
{
Item = string.Empty;
}
public override void Destruct()
{
base.Destruct();
Item = string.Empty;
}
public override int GetMessageType()
{
return 20207;
}
public override int GetServiceNodeType()
{
return 3;
}
public override void Encode()
{
base.Encode();
ByteStream.WriteString(Item);
}
public override void Decode()
{
base.Decode();
Item = ByteStream.ReadString();
}
}