public TaxCollectorMovement(sbyte movementType, TaxCollectorBasicInformations basicInfos, ulong playerId, string playerName) { this.movementType = movementType; this.basicInfos = basicInfos; this.playerId = playerId; this.playerName = playerName; }
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(); }