public virtual void Deserialize(IDataReader reader) { this.restrictions = new ActorRestrictionsInformations(); this.restrictions.Deserialize(reader); this.sex = reader.ReadBoolean(); ushort num = reader.ReadUShort(); this.options = new HumanOption[num]; for (int i = 0; i < num; i++) { this.options[i] = ProtocolTypeManager.GetInstance <HumanOption>(reader.ReadUShort()); this.options[i].Deserialize(reader); } }
public HumanInformations(ActorRestrictionsInformations restrictions, bool sex, HumanOption[] options) { this.restrictions = restrictions; this.sex = sex; this.options = options; }