Beispiel #1
0
        public void Read(PythonReader pr)
        {
            SlotId = pr.ReadInt();

            pr.ReadTuple();

            ClassId = pr.ReadInt();
            Color   = pr.ReadStruct <Color>();
        }
        public override void Read(PythonReader pr)
        {
            pr.ReadTuple();

            var listLenght = pr.ReadList();

            for (var i = 0; i < listLenght; i++)
            {
                var option = pr.ReadStruct <CharacterOptions>();
                OptionsList.Add(new CharacterOptions(option.OptionId, option.Value));
            }
        }
Beispiel #3
0
        public void Read(PythonReader pr)
        {
            SlotId = (EquipmentData)pr.ReadUInt();

            var count = pr.ReadTuple();

            if (count != 2)
            {
                Debugger.Break();
            }

            Class = pr.ReadUInt();
            Color = pr.ReadStruct <Color>();
        }
        public override void Read(PythonReader pr)
        {
            pr.ReadTuple();

            SlotNum       = pr.ReadInt();
            FamilyName    = pr.ReadUnicodeString();
            CharacterName = pr.ReadUnicodeString();
            Gender        = pr.ReadInt();
            Scale         = pr.ReadDouble();

            var itemCount = pr.ReadDictionary();

            for (var i = 0; i < itemCount; i++)
            {
                var data = pr.ReadStruct <AppearanceData>();
                AppearanceData.Add(data.SlotId, data);
            }

            RaceId = pr.ReadInt();
        }