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