Пример #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 GameRolePlayHumanoidInformations(int contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, string name, Types.HumanInformations humanoidInfo, int accountId)
     : base(contextualId, look, disposition, name)
 {
     this.humanoidInfo = humanoidInfo;
     this.accountId    = accountId;
 }
 public GameRolePlayHumanoidInformations(int contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, string name, Types.HumanInformations humanoidInfo, int accountId)
     : base(contextualId, look, disposition, name)
 {
     this.humanoidInfo = humanoidInfo;
     this.accountId = accountId;
 }
 public GameRolePlayCharacterInformations(double contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, string name, Types.HumanInformations humanoidInfo, int accountId, Types.ActorAlignmentInformations alignmentInfos)
     : base(contextualId, look, disposition, name, humanoidInfo, accountId)
 {
     this.alignmentInfos = alignmentInfos;
 }
Пример #7
0
 public GameRolePlayMutantInformations(double contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, string name, Types.HumanInformations humanoidInfo, int accountId, uint monsterId, sbyte powerLevel)
     : base(contextualId, look, disposition, name, humanoidInfo, accountId)
 {
     this.monsterId  = monsterId;
     this.powerLevel = powerLevel;
 }
 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);
 }