Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
 public HumanInformations(ActorRestrictionsInformations restrictions, bool sex, HumanOption[] options)
 {
     this.restrictions = restrictions;
     this.sex          = sex;
     this.options      = options;
 }