Beispiel #1
0
        public override void Deserialize(IDataReader reader)
        {
            base.Deserialize(reader);
            SellType = reader.ReadSByte();
            var OptionsCount = reader.ReadShort();

            Options = new List <HumanOption>();
            for (var i = 0; i < OptionsCount; i++)
            {
                HumanOption objectToAdd = ProtocolTypeManager.GetInstance(reader.ReadUShort());
                objectToAdd.Deserialize(reader);
                Options.Add(objectToAdd);
            }
        }
Beispiel #2
0
        public override void Deserialize(IDataReader reader)
        {
            Restrictions = new ActorRestrictionsInformations();
            Restrictions.Deserialize(reader);
            Sex = reader.ReadBoolean();
            var OptionsCount = reader.ReadShort();

            Options = new List <HumanOption>();
            for (var i = 0; i < OptionsCount; i++)
            {
                HumanOption objectToAdd = ProtocolTypeManager.GetInstance(reader.ReadUShort());
                objectToAdd.Deserialize(reader);
                Options.Add(objectToAdd);
            }
        }