示例#1
0
        public override void Deserialize(ICustomDataInput reader)
        {
            base.Deserialize(reader);
            SellType = reader.ReadByte();
            var countOptions = reader.ReadShort();

            Options = new List <HumanOption>();
            for (short i = 0; i < countOptions; i++)
            {
                var         optionstypeId = reader.ReadShort();
                HumanOption type          = new HumanOption();
                type.Deserialize(reader);
                Options.Add(type);
            }
        }
示例#2
0
        public override void Deserialize(ICustomDataInput reader)
        {
            Restrictions = new ActorRestrictionsInformations();
            Restrictions.Deserialize(reader);
            Sex = reader.ReadBoolean();
            var countOptions = reader.ReadShort();

            Options = new List <HumanOption>();
            for (short i = 0; i < countOptions; i++)
            {
                var         optionstypeId = reader.ReadShort();
                HumanOption type          = new HumanOption();
                type.Deserialize(reader);
                Options.Add(type);
            }
        }