Exemplo n.º 1
0
 public override void Deserialize(IReader reader)
 {
     base.Deserialize(reader);
     humanoidInfo = ProtocolTypeManager.GetInstance <Types.HumanInformations>(reader.ReadUShort());
     humanoidInfo.Deserialize(reader);
     accountId = reader.ReadInt();
 }
 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     humanoidInfo = Types.ProtocolTypeManager.GetInstance<Types.HumanInformations>(reader.ReadShort());
     humanoidInfo.Deserialize(reader);
     accountId = reader.ReadInt();
     if (accountId < 0)
         throw new Exception("Forbidden value on accountId = " + accountId + ", it doesn't respect the following condition : accountId < 0");
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     humanoidInfo = Types.ProtocolTypeManager.GetInstance <Types.HumanInformations>(reader.ReadShort());
     humanoidInfo.Deserialize(reader);
     accountId = reader.ReadInt();
     if (accountId < 0)
     {
         throw new Exception("Forbidden value on accountId = " + accountId + ", it doesn't respect the following condition : accountId < 0");
     }
 }
 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     humanoidInfo = ProtocolTypeManager.GetInstance<Types.HumanInformations>(reader.ReadShort());
     humanoidInfo.Deserialize(reader);
 }
 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     humanoidInfo = Types.ProtocolTypeManager.GetInstance <Types.HumanInformations>(reader.ReadShort());
     humanoidInfo.Deserialize(reader);
 }