Пример #1
0
 public HumanInformations(
     ActorRestrictionsInformations restrictions,
     bool sex,
     HumanOption[] options)
 {
     this.restrictions = restrictions;
     this.sex          = sex;
     this.options      = options;
 }
Пример #2
0
        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);
            }
        }