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