mirror of
https://github.com/thebreaddev/Supercell.GUT.git
synced 2024-11-10 15:54:38 +00:00
8c6a533918
todo: improve code and finish base structures
39 lines
738 B
C#
39 lines
738 B
C#
using Supercell.GUT.Logic.Message.Attributes;
|
|
using Supercell.GUT.Titan.Logic.Message;
|
|
|
|
namespace Supercell.GUT.Logic.Message.Account;
|
|
|
|
[VersionedMessage(20103)]
|
|
public class LoginFailedMessage : VersionedMessage
|
|
{
|
|
public int ErrorCode { get; set; }
|
|
|
|
public LoginFailedMessage() : 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 20103;
|
|
}
|
|
|
|
public override int GetServiceNodeType()
|
|
{
|
|
return 1;
|
|
}
|
|
}
|