Ejemplo n.º 1
0
 public TaxCollectorMovement(
     uint movementType,
     TaxCollectorBasicInformations basicInfos,
     double playerId,
     string playerName)
 {
     this.movementType = movementType;
     this.basicInfos   = basicInfos;
     this.playerId     = playerId;
     this.playerName   = playerName;
 }
Ejemplo n.º 2
0
 public virtual void Deserialize(IDataReader reader)
 {
     this.movementType = (uint)reader.ReadByte();
     if (this.movementType < 0U)
     {
         throw new Exception("Forbidden value (" + (object)this.movementType + ") on element of TaxCollectorMovement.movementType.");
     }
     this.basicInfos = new TaxCollectorBasicInformations();
     this.basicInfos.Deserialize(reader);
     this.playerId = (double)reader.ReadVarUhLong();
     if (this.playerId < 0.0 || this.playerId > 9.00719925474099E+15)
     {
         throw new Exception("Forbidden value (" + (object)this.playerId + ") on element of TaxCollectorMovement.playerId.");
     }
     this.playerName = reader.ReadUTF();
 }