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