public virtual void Deserialize(IDataReader reader) { restrictions = new Types.ActorRestrictionsInformations(); restrictions.Deserialize(reader); sex = reader.ReadBoolean(); var limit = reader.ReadUShort(); var options_ = new Types.HumanOption[limit]; for (int i = 0; i < limit; i++) { options_[i] = Types.ProtocolTypeManager.GetInstance <Types.HumanOption>(reader.ReadShort()); options_[i].Deserialize(reader); } options = options_; }
public override void Deserialize(IDataReader reader) { base.Deserialize(reader); sellType = reader.ReadSByte(); if (sellType < 0) { throw new Exception("Forbidden value on sellType = " + sellType + ", it doesn't respect the following condition : sellType < 0"); } var limit = reader.ReadUShort(); var options_ = new Types.HumanOption[limit]; for (int i = 0; i < limit; i++) { options_[i] = Types.ProtocolTypeManager.GetInstance <Types.HumanOption>(reader.ReadShort()); options_[i].Deserialize(reader); } options = options_; }