Supercell.GUT/Supercell.GUT.Logic/Message/Avatar/BuyFailedMessage.cs
2024-03-06 22:52:53 +07:00

46 lines
813 B
C#

using Supercell.GUT.Logic.Message.Attributes;
using Supercell.GUT.Titan.Logic.Message;
namespace Supercell.GUT.Logic.Message.Avatar;
[VersionedMessage(20208)]
public class BuyFailedMessage : VersionedMessage
{
public string? Item { get; set; }
public BuyFailedMessage() : base(0)
{
Item = string.Empty;
}
public override void Destruct()
{
base.Destruct();
Item = string.Empty;
}
public override int GetMessageType()
{
return 20208;
}
public override int GetServiceNodeType()
{
return 3;
}
public override void Encode()
{
base.Encode();
ByteStream.WriteString(Item);
}
public override void Decode()
{
base.Decode();
Item = ByteStream.ReadString();
}
}