public virtual void Deserialize(IDataReader reader) { outcome = reader.ReadShort(); if (outcome < 0) { throw new Exception("Forbidden value on outcome = " + outcome + ", it doesn't respect the following condition : outcome < 0"); } rewards = new Types.FightLoot(); rewards.Deserialize(reader); }
public FightResultListEntry(short outcome, FightLoot rewards) { this.outcome = outcome; this.rewards = rewards; }