public virtual void Deserialize(IDataReader reader) { firstNameId = reader.ReadShort(); if (firstNameId < 0) { throw new Exception("Forbidden value on firstNameId = " + firstNameId + ", it doesn't respect the following condition : firstNameId < 0"); } lastNameId = reader.ReadShort(); if (lastNameId < 0) { throw new Exception("Forbidden value on lastNameId = " + lastNameId + ", it doesn't respect the following condition : lastNameId < 0"); } guildIdentity = new GuildInformations(); guildIdentity.Deserialize(reader); }
public override void Deserialize(IDataReader reader) { base.Deserialize(reader); firstNameId = reader.ReadShort(); if (firstNameId < 0) { throw new Exception("Forbidden value on firstNameId = " + firstNameId + ", it doesn't respect the following condition : firstNameId < 0"); } lastNameId = reader.ReadShort(); if (lastNameId < 0) { throw new Exception("Forbidden value on lastNameId = " + lastNameId + ", it doesn't respect the following condition : lastNameId < 0"); } guildIdentity = new GuildInformations(); guildIdentity.Deserialize(reader); guildLevel = reader.ReadByte(); if (guildLevel < 0 || guildLevel > 255) { throw new Exception("Forbidden value on guildLevel = " + guildLevel + ", it doesn't respect the following condition : guildLevel < 0 || guildLevel > 255"); } }
public override void Deserialize(IDataReader reader) { base.Deserialize(reader); guildInformations = new GuildInformations(); guildInformations.Deserialize(reader); }