2024-03-04 13:19:32 +00:00
|
|
|
|
using Supercell.GUT.Logic.Message.Attributes;
|
2024-03-05 10:37:18 +00:00
|
|
|
|
using Supercell.GUT.Titan.Logic.Message;
|
2024-03-04 13:19:32 +00:00
|
|
|
|
|
|
|
|
|
namespace Supercell.GUT.Logic.Message.Account;
|
|
|
|
|
|
|
|
|
|
[VersionedMessage(20102)]
|
|
|
|
|
public class CreateAccountFailedMessage : VersionedMessage
|
|
|
|
|
{
|
|
|
|
|
public int ErrorCode { get; set; }
|
|
|
|
|
|
|
|
|
|
public CreateAccountFailedMessage() : base(0)
|
|
|
|
|
{
|
|
|
|
|
this.ErrorCode = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Encode()
|
|
|
|
|
{
|
|
|
|
|
base.Encode();
|
|
|
|
|
|
|
|
|
|
this.ByteStream.WriteInt(this.ErrorCode);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Decode()
|
|
|
|
|
{
|
|
|
|
|
base.Decode();
|
|
|
|
|
|
|
|
|
|
this.ErrorCode = this.ByteStream.ReadInt();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override int GetMessageType()
|
|
|
|
|
{
|
|
|
|
|
return 20102;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override int GetServiceNodeType()
|
|
|
|
|
{
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
}
|