mirror of
https://github.com/thebreaddev/Supercell.GUT.git
synced 2024-11-10 07:44:37 +00:00
46 lines
813 B
C#
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();
|
|
}
|
|
}
|