mirror of
https://github.com/thebreaddev/Supercell.GUT.git
synced 2024-11-10 07:44:37 +00:00
8c6a533918
todo: improve code and finish base structures
51 lines
1 KiB
C#
51 lines
1 KiB
C#
using Supercell.GUT.Logic.Message.Attributes;
|
|
using Supercell.GUT.Titan.Logic.Message;
|
|
|
|
namespace Supercell.GUT.Logic.Message.Avatar;
|
|
|
|
[VersionedMessage(10201)]
|
|
public class SelectAvatarMessage : VersionedMessage
|
|
{
|
|
public int AvatarIdHigherInt { get; set; }
|
|
public int AvatarIdLowerInt { get; set; }
|
|
|
|
public SelectAvatarMessage() : base(0)
|
|
{
|
|
AvatarIdHigherInt = 0;
|
|
AvatarIdLowerInt = 0;
|
|
}
|
|
|
|
public override void Encode()
|
|
{
|
|
base.Encode();
|
|
|
|
ByteStream.WriteInt(AvatarIdHigherInt);
|
|
ByteStream.WriteInt(AvatarIdLowerInt);
|
|
}
|
|
|
|
public override void Decode()
|
|
{
|
|
base.Decode();
|
|
|
|
AvatarIdHigherInt = ByteStream.ReadInt();
|
|
AvatarIdLowerInt = ByteStream.ReadInt();
|
|
}
|
|
|
|
public override int GetMessageType()
|
|
{
|
|
return 10201;
|
|
}
|
|
|
|
public override int GetServiceNodeType()
|
|
{
|
|
return 3;
|
|
}
|
|
|
|
public override void Destruct()
|
|
{
|
|
base.Destruct();
|
|
|
|
AvatarIdHigherInt = 0;
|
|
AvatarIdLowerInt = 0;
|
|
}
|
|
}
|