public static void Deserialize(InitialInformationConfig ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0xa0000:
                {
                    ins.Datas.Add(reader.ReadStruct <InitialInformationConfigDefine>(InitialInformationConfigDefineDeserializeHandler));
                }
                break;
                }
            }


            // Build InitialInformationConfig Index
            for (int i = 0; i < ins.Datas.Count; i++)
            {
                var element = ins.Datas[i];

                ins._ByID.Add(element.ID, element);
            }
        }
Exemplo n.º 2
0
        public static void Deserialize(DemoCfgMgr ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0xa0000:
                {
                    ins.Demo.Add(reader.ReadStruct <DemoDefine>(DemoDefineDeserializeHandler));
                }
                break;
                }
            }


            // Build Demo Index
            for (int i = 0; i < ins.Demo.Count; i++)
            {
                var element = ins.Demo[i];

                ins._DemoByID.Add(element.ID, element);

                ins._DemoByName.Add(element.Name, element);
            }
        }
Exemplo n.º 3
0
        public static void Deserialize(EffectConfigDefine ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0x10000:
                {
                    ins.ID = reader.ReadInt32();
                }
                break;

                case 0x60001:
                {
                    ins.Path = reader.ReadString();
                }
                break;

                case 0x50002:
                {
                    ins.Time = reader.ReadFloat();
                }
                break;
                }
            }
        }
Exemplo n.º 4
0
        public static void Deserialize(DemoDefine ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0x10000:
                {
                    ins.ID = reader.ReadInt32();
                }
                break;

                case 0x60001:
                {
                    ins.Name = reader.ReadString();
                }
                break;

                case 0x50002:
                {
                    ins.HP = reader.ReadFloat();
                }
                break;

                case 0x10003:
                {
                    ins.Skills.Add(reader.ReadInt32());
                }
                break;
                }
            }
        }
Exemplo n.º 5
0
        public static void Deserialize(RoleDefine ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0x10000:
                {
                    ins.ID = reader.ReadInt32();
                }
                break;

                case 0x60001:
                {
                    ins.Name = reader.ReadString();
                }
                break;

                case 0x60002:
                {
                    ins.NormalDrawing = reader.ReadString();
                }
                break;
                }
            }
        }
Exemplo n.º 6
0
        public static void Deserialize(ProtoMsgIndex ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0xa0000:
                {
                    ins.ProtoId.Add(reader.ReadStruct <ProtoIdDefine>(ProtoIdDefineDeserializeHandler));
                }
                break;
                }
            }


            // Build ProtoId Index
            for (int i = 0; i < ins.ProtoId.Count; i++)
            {
                var element = ins.ProtoId[i];

                ins._ProtoIdById.Add(element.Id, element);

                ins._ProtoIdByName.Add(element.Name, element);
            }
        }
Exemplo n.º 7
0
        public static void Deserialize(TalkConfigDefine ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0x60000:
                {
                    ins.ID = reader.ReadString();
                }
                break;

                case 0x10001:
                {
                    ins.Desc = reader.ReadInt32();
                }
                break;

                case 0x10002:
                {
                    ins.FixedTalk = reader.ReadInt32();
                }
                break;

                case 0x10003:
                {
                    ins.RandomTalk = reader.ReadInt32();
                }
                break;
                }
            }
        }
Exemplo n.º 8
0
        public static void Deserialize(FixedRuleList ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0xa0000:
                {
                    ins.Datas.Add(reader.ReadStruct <FixedRuleListDefine>(FixedRuleListDefineDeserializeHandler));
                }
                break;
                }
            }


            // Build FixedRuleList Index
            for (int i = 0; i < ins.Datas.Count; i++)
            {
                var element = ins.Datas[i];

                ins._ByID.Add(element.ID, element);
            }
        }
Exemplo n.º 9
0
        public static void Deserialize(Prop ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0x10000:
                {
                    ins.HP = reader.ReadInt32();
                }
                break;

                case 0x50001:
                {
                    ins.AttackRate = reader.ReadFloat();
                }
                break;

                case 0x80002:
                {
                    ins.ExType = reader.ReadEnum <ActorType>();
                }
                break;
                }
            }
        }
Exemplo n.º 10
0
        public static void Deserialize(JobCfgMgr ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0xa0000:
                {
                    ins.JobConfig.Add(reader.ReadStruct <JobConfigDefine>(JobConfigDefineDeserializeHandler));
                }
                break;
                }
            }


            // Build JobConfig Index
            for (int i = 0; i < ins.JobConfig.Count; i++)
            {
                var element = ins.JobConfig[i];

                ins._JobConfigByID.Add(element.ID, element);
            }
        }
Exemplo n.º 11
0
        public static void Deserialize(GrowRandom ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0x10000:
                {
                    ins.GrowType = reader.ReadInt32();
                }
                break;

                case 0x10001:
                {
                    ins.GrowRate = reader.ReadInt32();
                }
                break;

                case 0x10002:
                {
                    ins.GrowMin = reader.ReadInt32();
                }
                break;

                case 0x10003:
                {
                    ins.GrowMax = reader.ReadInt32();
                }
                break;
                }
            }
        }
Exemplo n.º 12
0
        public static void Deserialize(JobConfigDefine ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0x60000:
                {
                    ins.ID = reader.ReadString();
                }
                break;

                case 0x60001:
                {
                    ins.Professional = reader.ReadString();
                }
                break;

                case 0x60002:
                {
                    ins.ProfessionalAction = reader.ReadString();
                }
                break;

                case 0x10003:
                {
                    ins.ProfessionalSkills.Add(reader.ReadInt32());
                }
                break;
                }
            }
        }
Exemplo n.º 13
0
        public static void Deserialize(Config ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0xa0000:
                {
                    ins.Sample.Add(reader.ReadStruct <SampleDefine>(SampleDefineDeserializeHandler));
                }
                break;
                }
            }


            // Build Sample Index
            for (int i = 0; i < ins.Sample.Count; i++)
            {
                var element = ins.Sample[i];

                ins._SampleByID.Add(element.ID, element);

                ins._SampleByName.Add(element.Name, element);
            }
        }
Exemplo n.º 14
0
        public static void Deserialize(Config ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0xa0000:
                {
                    ins.Level.Add(reader.ReadStruct <LevelDefine>(LevelDefineDeserializeHandler));
                }
                break;
                }
            }


            // Build Level Index
            for (int i = 0; i < ins.Level.Count; i++)
            {
                var element = ins.Level[i];

                ins._LevelByID.Add(element.ID, element);
            }
        }
Exemplo n.º 15
0
        public static void Deserialize(GameAttributeDisplay ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0x10000:
                {
                    ins.属性类型 = reader.ReadInt32();
                }
                break;

                case 0x10001:
                {
                    ins.属性上限 = reader.ReadInt32();
                }
                break;

                case 0x10002:
                {
                    ins.属性下限 = reader.ReadInt32();
                }
                break;
                }
            }
        }
Exemplo n.º 16
0
        public static void Deserialize(RankingAward ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0x10000:
                {
                    ins.StartRanking = reader.ReadInt32();
                }
                break;

                case 0x10001:
                {
                    ins.EndRanking = reader.ReadInt32();
                }
                break;

                case 0x10002:
                {
                    ins.ItemPackId = reader.ReadInt32();
                }
                break;
                }
            }
        }
Exemplo n.º 17
0
        public static void Deserialize(ModifierDefine ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0x10000:
                {
                    ins.ID = reader.ReadInt32();
                }
                break;

                case 0x60001:
                {
                    ins.Desc = reader.ReadString();
                }
                break;

                case 0x10002:
                {
                    ins.Type = reader.ReadInt32();
                }
                break;

                case 0x10003:
                {
                    ins.Args.Add(reader.ReadInt32());
                }
                break;
                }
            }
        }
Exemplo n.º 18
0
        public static void Deserialize(ItemPackGroup ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0x10000:
                {
                    ins.ItemId = reader.ReadInt32();
                }
                break;

                case 0x20001:
                {
                    ins.Count = reader.ReadInt64();
                }
                break;

                case 0x10002:
                {
                    ins.Weight = reader.ReadInt32();
                }
                break;

                case 0x10003:
                {
                    ins.GroupId = reader.ReadInt32();
                }
                break;
                }
            }
        }
Exemplo n.º 19
0
        public static void Deserialize(Pos ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0x80000:
                {
                    ins.Obj = reader.ReadEnum <Object>();
                }
                break;

                case 0x50001:
                {
                    ins.X = reader.ReadFloat();
                }
                break;

                case 0x50002:
                {
                    ins.Y = reader.ReadFloat();
                }
                break;
                }
            }
        }
Exemplo n.º 20
0
        public static void Deserialize(ExpDefine ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0x10000:
                {
                    ins.Level = reader.ReadInt32();
                }
                break;

                case 0x10001:
                {
                    ins.Exp = reader.ReadInt32();
                }
                break;

                case 0x70002:
                {
                    ins.BoolChecker = reader.ReadBool();
                }
                break;

                case 0x80003:
                {
                    ins.Type = reader.ReadEnum <ActorType>();
                }
                break;
                }
            }
        }
Exemplo n.º 21
0
        public static void Deserialize(FixedRuleListDefine ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0x60000:
                {
                    ins.ID = reader.ReadString();
                }
                break;

                case 0x10001:
                {
                    ins.ParamType = reader.ReadInt32();
                }
                break;

                case 0x50002:
                {
                    ins.Value = reader.ReadFloat();
                }
                break;
                }
            }
        }
Exemplo n.º 22
0
        public static void Deserialize(FunctionOpenConfigDefine ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0x60000:
                {
                    ins.ID = reader.ReadString();
                }
                break;

                case 0x60001:
                {
                    ins.Name = reader.ReadString();
                }
                break;

                case 0x10002:
                {
                    ins.OpenType = reader.ReadInt32();
                }
                break;

                case 0x10003:
                {
                    ins.OpenLevel = reader.ReadInt32();
                }
                break;

                case 0x10004:
                {
                    ins.EventId = reader.ReadInt32();
                }
                break;

                case 0x60005:
                {
                    ins.Icon.Add(reader.ReadString());
                }
                break;

                case 0x10006:
                {
                    ins.OpenBoot = reader.ReadInt32();
                }
                break;

                case 0x60007:
                {
                    ins.ModuleName = reader.ReadString();
                }
                break;
                }
            }
        }
Exemplo n.º 23
0
        public static void Deserialize(MapDefine ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0x10000:
                {
                    ins.ID = reader.ReadInt32();
                }
                break;

                case 0x60001:
                {
                    ins.Name = reader.ReadString();
                }
                break;

                case 0x60002:
                {
                    ins.MapType = reader.ReadString();
                }
                break;

                case 0x60003:
                {
                    ins.ShowName = reader.ReadString();
                }
                break;

                case 0x60004:
                {
                    ins.BackPic = reader.ReadString();
                }
                break;

                case 0x60005:
                {
                    ins.Desc = reader.ReadString();
                }
                break;

                case 0x60006:
                {
                    ins.ChildMap = reader.ReadString();
                }
                break;
                }
            }
        }
Exemplo n.º 24
0
        public static void Deserialize(AttackParam ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0x10000:
                {
                    ins.Value = reader.ReadInt32();
                }
                break;
                }
            }
        }
Exemplo n.º 25
0
        public static void Deserialize(SpecialDropControlDefine ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0x60000:
                {
                    ins.ID = reader.ReadString();
                }
                break;

                case 0x10001:
                {
                    ins.SeedType = reader.ReadInt32();
                }
                break;

                case 0x10002:
                {
                    ins.max = reader.ReadInt32();
                }
                break;

                case 0x10003:
                {
                    ins.DailyDropLimit = reader.ReadInt32();
                }
                break;

                case 0x10004:
                {
                    ins.DropLimit = reader.ReadInt32();
                }
                break;

                case 0x10005:
                {
                    ins.MemoryLimit = reader.ReadInt32();
                }
                break;
                }
            }
        }
Exemplo n.º 26
0
        public static void Deserialize(MapConfigDefine ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0x10000:
                {
                    ins.ID = reader.ReadInt32();
                }
                break;

                case 0x10001:
                {
                    ins.Type = reader.ReadInt32();
                }
                break;

                case 0x60002:
                {
                    ins.Name = reader.ReadString();
                }
                break;

                case 0x60003:
                {
                    ins.Path = reader.ReadString();
                }
                break;

                case 0x60004:
                {
                    ins.BuilderName = reader.ReadString();
                }
                break;

                case 0x60005:
                {
                    ins.Loading.Add(reader.ReadString());
                }
                break;
                }
            }
        }
Exemplo n.º 27
0
        public static void Deserialize(VerticalDefine ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0x60000:
                {
                    ins.ServerIP = reader.ReadString();
                }
                break;

                case 0x70001:
                {
                    ins.DebugMode = reader.ReadBool();
                }
                break;

                case 0x10002:
                {
                    ins.ClientLimit = reader.ReadInt32();
                }
                break;

                case 0x90003:
                {
                    ins.Peer = reader.ReadStruct <PeerData>(PeerDataDeserializeHandler);
                }
                break;

                case 0x50004:
                {
                    ins.Float = reader.ReadFloat();
                }
                break;

                case 0x10005:
                {
                    ins.Token.Add(reader.ReadInt32());
                }
                break;
                }
            }
        }
Exemplo n.º 28
0
        public static void Deserialize(Table ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0xa0000:
                {
                    ins.Test.Add(reader.ReadStruct <TestDefine>(TestDefineDeserializeHandler));
                }
                break;

                case 0xa0001:
                {
                    ins.Tests.Add(reader.ReadStruct <TestsDefine>(TestsDefineDeserializeHandler));
                }
                break;
                }
            }


            // Build Test Index
            for (int i = 0; i < ins.Test.Count; i++)
            {
                var element = ins.Test[i];

                ins._TestByID.Add(element.ID, element);

                ins._TestByName.Add(element.Name, element);
            }

            // Build Tests Index
            for (int i = 0; i < ins.Tests.Count; i++)
            {
                var element = ins.Tests[i];

                ins._TestsByID.Add(element.ID, element);

                ins._TestsByName.Add(element.Name, element);
            }
        }
Exemplo n.º 29
0
        public static void Deserialize(BlongsDefine ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0x20000:
                {
                    ins.NEWID = reader.ReadInt64();
                }
                break;

                case 0x60001:
                {
                    ins.NEWName = reader.ReadString();
                }
                break;

                case 0x10002:
                {
                    ins.NEWIconID = reader.ReadInt32();
                }
                break;

                case 0x50003:
                {
                    ins.NEWNumericalRate = reader.ReadFloat();
                }
                break;

                case 0x10004:
                {
                    ins.NEWItemID = reader.ReadInt32();
                }
                break;
                }
            }
        }
Exemplo n.º 30
0
        public static void Deserialize(EquipmentExtend ins, tabtoy.DataReader reader)
        {
            int tag = -1;

            while (-1 != (tag = reader.ReadTag()))
            {
                switch (tag)
                {
                case 0x10000:
                {
                    ins.ExtendType = reader.ReadInt32();
                }
                break;

                case 0x10001:
                {
                    ins.ExtendRate = reader.ReadInt32();
                }
                break;

                case 0x10002:
                {
                    ins.AttributeMin = reader.ReadInt32();
                }
                break;

                case 0x10003:
                {
                    ins.AttributeMax = reader.ReadInt32();
                }
                break;

                case 0x10004:
                {
                    ins.SkillID = reader.ReadInt32();
                }
                break;
                }
            }
        }