Ejemplo n.º 1
0
 public TaxCollectorMovement(sbyte movementType, TaxCollectorBasicInformations basicInfos, ulong playerId, string playerName)
 {
     this.movementType = movementType;
     this.basicInfos   = basicInfos;
     this.playerId     = playerId;
     this.playerName   = playerName;
 }
Ejemplo n.º 2
0
 public virtual void Deserialize(ICustomDataInput reader)
 {
     movementType = reader.ReadSByte();
     if (movementType < 0)
     {
         throw new Exception("Forbidden value on movementType = " + movementType + ", it doesn't respect the following condition : movementType < 0");
     }
     basicInfos = new TaxCollectorBasicInformations();
     basicInfos.Deserialize(reader);
     playerId = reader.ReadVarUhLong();
     if (playerId < 0 || playerId > 9007199254740990)
     {
         throw new Exception("Forbidden value on playerId = " + playerId + ", it doesn't respect the following condition : playerId < 0 || playerId > 9007199254740990");
     }
     playerName = reader.ReadUTF();
 }