Пример #1
0
        public static void Deserialize(Vec2 ins, tabtoy.DataReader reader)
        {
            int tag = -1;

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

                case 0x10001:
                {
                    ins.Y = reader.ReadInt32();
                }
                break;
                }
            }
        }
Пример #2
0
        public static void Deserialize(EquipmentMaterialList ins, tabtoy.DataReader reader)
        {
            int tag = -1;

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

                case 0x10001:
                {
                    ins.MaterialNumber = reader.ReadInt32();
                }
                break;
                }
            }
        }
Пример #3
0
        public static void Deserialize(DropShow ins, tabtoy.DataReader reader)
        {
            int tag = -1;

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

                case 0x10001:
                {
                    ins.DropNumber = reader.ReadInt32();
                }
                break;
                }
            }
        }
Пример #4
0
        public int itemID = 0; // 物品ID


        public static reward Deserialize(tabtoy.DataReader reader)
        {
            reward ins = new reward();
            int    len = reader.ReadInt32();

            while (len > 0)
            {
                int tag = reader.ReadInt32();
                len--;
                switch (tag)
                {
                case 0x60000:
                {
                    ins.type = reader.ReadString();
                }
                break;

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

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

                case 0x10003:
                {
                    ins.itemID = reader.ReadInt32();
                }
                break;
                }
            }
            return(ins);
        }
Пример #5
0
        public static vec2map Deserialize(tabtoy.DataReader reader)
        {
            vec2map ins = new vec2map();
            int     len = reader.ReadInt32();

            while (len > 0)
            {
                int tag = reader.ReadInt32();
                len--;
                switch (tag)
                {
                case 0x10000:
                {
                    ins.mapID = reader.ReadInt32();
                }
                break;

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

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

                case 0x50003:
                {
                    ins.Z = reader.ReadFloat();
                }
                break;
                }
            }
            return(ins);
        }
Пример #6
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;
                }
            }
        }
Пример #7
0
        public static void Deserialize(Prop ins, tabtoy.DataReader reader)
        {
            if (reader.MatchTag(0x10000))
            {
                ins.HP = reader.ReadInt32();
            }


            if (reader.MatchTag(0x50001))
            {
                ins.AttackRate = reader.ReadFloat();
            }


            if (reader.MatchTag(0x80002))
            {
                ins.ExType = reader.ReadEnum <ActorType>();
            }
        }
Пример #8
0
        public void Deserialize(tabtoy.DataReader reader)
        {
            // 血量
            if (reader.MatchTag(0x10000))
            {
                this.HP = reader.ReadInt32( );
            }

            // 攻击速率
            if (reader.MatchTag(0x50001))
            {
                this.AttackRate = reader.ReadFloat( );
            }

            // 扩展类型
            if (reader.MatchTag(0x80002))
            {
                this.ExType = reader.ReadEnum <ActorType>( );
            }
        }
Пример #9
0
        public int agile = 0; // 敏捷


        public static attr Deserialize(tabtoy.DataReader reader)
        {
            attr ins = new attr();
            int  len = reader.ReadInt32();

            while (len > 0)
            {
                int tag = reader.ReadInt32();
                len--;
                switch (tag)
                {
                case 0x10000:
                {
                    ins.vitality = reader.ReadInt32();
                }
                break;

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

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

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

                case 0x10004:
                {
                    ins.agile = reader.ReadInt32();
                }
                break;
                }
            }
            return(ins);
        }
Пример #10
0
        public static void Deserialize(ProtoIdDefine 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;
                }
            }
        }
Пример #11
0
        public static void Deserialize(Prop ins, tabtoy.DataReader reader)
        {
            int tag = -1;

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

                case 0x10001:
                {
                    ins.Value = reader.ReadInt32();
                }
                break;
                }
            }
        }
Пример #12
0
        public static void Deserialize(MonsterRefreshConfigDefine ins, tabtoy.DataReader reader)
        {
            int tag = -1;

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

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

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

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

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

                case 0x10005:
                {
                    ins.BurshNumber = reader.ReadInt32();
                }
                break;

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

                case 0x10007:
                {
                    ins.Rebirth = reader.ReadInt32();
                }
                break;

                case 0x10008:
                {
                    ins.RebirthTime = reader.ReadInt32();
                }
                break;

                case 0x10009:
                {
                    ins.EffectiveExtension = reader.ReadInt32();
                }
                break;

                case 0x1000a:
                {
                    ins.ThereTime = reader.ReadInt32();
                }
                break;

                case 0x1000b:
                {
                    ins.Attribution = reader.ReadInt32();
                }
                break;

                case 0x1000c:
                {
                    ins.Radio = reader.ReadInt32();
                }
                break;
                }
            }
        }
Пример #13
0
        public static void Deserialize(StoryDefine 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.ActionType = reader.ReadString();
                }
                break;

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

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

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

                case 0x60006:
                {
                    ins.Args4 = reader.ReadString();
                }
                break;

                case 0x60007:
                {
                    ins.Args5 = reader.ReadString();
                }
                break;

                case 0x60008:
                {
                    ins.Args6 = reader.ReadString();
                }
                break;

                case 0x60009:
                {
                    ins.Args7 = reader.ReadString();
                }
                break;

                case 0x6000a:
                {
                    ins.Args8 = reader.ReadString();
                }
                break;

                case 0x7000b:
                {
                    ins.InitOpen = reader.ReadBool();
                }
                break;
                }
            }
        }
Пример #14
0
        public List <Prop> StrStruct = new List <Prop>();       // 字符串结构



        public void Deserialize(tabtoy.DataReader reader)
        {
            // 唯一ID
            if (reader.MatchTag(0x20000))
            {
                this.ID = reader.ReadInt64( );
            }

            // 名称
            if (reader.MatchTag(0x60001))
            {
                this.Name = reader.ReadString( );
            }

            // 图标ID
            if (reader.MatchTag(0x10002))
            {
                this.IconID = reader.ReadInt32( );
            }

            // 攻击率
            if (reader.MatchTag(0x50003))
            {
                this.NumericalRate = reader.ReadFloat( );
            }

            // 物品id
            if (reader.MatchTag(0x10004))
            {
                this.ItemID = reader.ReadInt32( );
            }

            // BuffID
            if (reader.MatchTag(0x10005))
            {
                reader.ReadList_Int32(this.BuffID);
            }

            // 类型
            if (reader.MatchTag(0x80006))
            {
                this.Type = reader.ReadEnum <ActorType>( );
            }

            // 技能ID列表
            if (reader.MatchTag(0x10007))
            {
                reader.ReadList_Int32(this.SkillID);
            }

            // 单结构解析
            if (reader.MatchTag(0x90008))
            {
                this.SingleStruct = reader.ReadStruct <Prop>( );
            }

            // 字符串结构
            if (reader.MatchTag(0x90009))
            {
                reader.ReadList_Struct <Prop>(this.StrStruct);
            }
        }
Пример #15
0
        public static void Deserialize(LevelDefine ins, tabtoy.DataReader reader)
        {
            int tag = -1;

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

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

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

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

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

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

                case 0x60006:
                {
                    ins.TotalValue = reader.ReadString();
                }
                break;

                case 0x60007:
                {
                    ins.Topic = reader.ReadString();
                }
                break;

                case 0x90008:
                {
                    ins.ObjPos.Add(reader.ReadStruct <Pos>(PosDeserializeHandler));
                }
                break;
                }
            }
        }
Пример #16
0
        public static void Deserialize(SampleDefine ins, tabtoy.DataReader reader)
        {
            int tag = -1;

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

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

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

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

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

                case 0x10005:
                {
                    ins.BuffID.Add(reader.ReadInt32());
                }
                break;

                case 0x90006:
                {
                    ins.Pos = reader.ReadStruct <Vec2>(Vec2DeserializeHandler);
                }
                break;

                case 0x80007:
                {
                    ins.Type = reader.ReadEnum <ActorType>();
                }
                break;

                case 0x10008:
                {
                    ins.SkillID.Add(reader.ReadInt32());
                }
                break;

                case 0x90009:
                {
                    ins.AttackParam = reader.ReadStruct <AttackParam>(AttackParamDeserializeHandler);
                }
                break;

                case 0x9000a:
                {
                    ins.SingleStruct = reader.ReadStruct <Prop>(PropDeserializeHandler);
                }
                break;

                case 0x9000b:
                {
                    ins.StrStruct.Add(reader.ReadStruct <Prop>(PropDeserializeHandler));
                }
                break;
                }
            }
        }
Пример #17
0
        public static void Deserialize(UnitDefine 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 0x10002:
                {
                    ins.Camp = reader.ReadInt32();
                }
                break;

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

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

                case 0x10005:
                {
                    ins.Skills.Add(reader.ReadInt32());
                }
                break;

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

                case 0x10007:
                {
                    ins.Mp = reader.ReadInt32();
                }
                break;

                case 0x10008:
                {
                    ins.Def = reader.ReadInt32();
                }
                break;

                case 0x10009:
                {
                    ins.PhyAtk = reader.ReadInt32();
                }
                break;

                case 0x1000a:
                {
                    ins.MagAtk = reader.ReadInt32();
                }
                break;

                case 0x1000b:
                {
                    ins.Hit = reader.ReadInt32();
                }
                break;

                case 0x1000c:
                {
                    ins.Dod = reader.ReadInt32();
                }
                break;

                case 0x1000d:
                {
                    ins.CritRate = reader.ReadInt32();
                }
                break;
                }
            }
        }
Пример #18
0
        public static void Deserialize(CharactorDefine 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 0x10002:
                {
                    ins.IsMain = reader.ReadInt32();
                }
                break;

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

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

                case 0x50005:
                {
                    ins.Totle = reader.ReadFloat();
                }
                break;

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

                case 0x10007:
                {
                    ins.AP = reader.ReadInt32();
                }
                break;

                case 0x10008:
                {
                    ins.HJ = reader.ReadInt32();
                }
                break;

                case 0x10009:
                {
                    ins.FK = reader.ReadInt32();
                }
                break;

                case 0x1000a:
                {
                    ins.HP = reader.ReadInt32();
                }
                break;

                case 0x1000b:
                {
                    ins.Speed = reader.ReadInt32();
                }
                break;

                case 0x1000c:
                {
                    ins.Scale = reader.ReadInt32();
                }
                break;

                case 0x1000d:
                {
                    ins.P1 = reader.ReadInt32();
                }
                break;

                case 0x1000e:
                {
                    ins.P2 = reader.ReadInt32();
                }
                break;

                case 0x1000f:
                {
                    ins.P3 = reader.ReadInt32();
                }
                break;

                case 0x10010:
                {
                    ins.P4 = reader.ReadInt32();
                }
                break;

                case 0x10011:
                {
                    ins.P5 = reader.ReadInt32();
                }
                break;

                case 0x10012:
                {
                    ins.P6 = reader.ReadInt32();
                }
                break;

                case 0x10013:
                {
                    ins.H1 = reader.ReadInt32();
                }
                break;

                case 0x10014:
                {
                    ins.H2 = reader.ReadInt32();
                }
                break;

                case 0x10015:
                {
                    ins.H3 = reader.ReadInt32();
                }
                break;

                case 0x10016:
                {
                    ins.H4 = reader.ReadInt32();
                }
                break;

                case 0x10017:
                {
                    ins.H5 = reader.ReadInt32();
                }
                break;

                case 0x10018:
                {
                    ins.H6 = reader.ReadInt32();
                }
                break;

                case 0x10019:
                {
                    ins.NP = reader.ReadInt32();
                }
                break;

                case 0x1001a:
                {
                    ins.NH = reader.ReadInt32();
                }
                break;

                case 0x6001b:
                {
                    ins.Resource = reader.ReadString();
                }
                break;

                case 0x6001c:
                {
                    ins.PZ = reader.ReadString();
                }
                break;

                case 0x6001d:
                {
                    ins.Per = reader.ReadString();
                }
                break;

                case 0x1001e:
                {
                    ins.PerSkill = reader.ReadInt32();
                }
                break;

                case 0x1001f:
                {
                    ins.Skill1 = reader.ReadInt32();
                }
                break;

                case 0x10020:
                {
                    ins.Skill2 = reader.ReadInt32();
                }
                break;

                case 0x10021:
                {
                    ins.Skill3 = reader.ReadInt32();
                }
                break;

                case 0x10022:
                {
                    ins.Skill4 = reader.ReadInt32();
                }
                break;

                case 0x10023:
                {
                    ins.Skill5 = reader.ReadInt32();
                }
                break;

                case 0x10024:
                {
                    ins.Skill6 = reader.ReadInt32();
                }
                break;

                case 0x10025:
                {
                    ins.Skill7 = reader.ReadInt32();
                }
                break;

                case 0x10026:
                {
                    ins.TalkID = reader.ReadInt32();
                }
                break;
                }
            }
        }
Пример #19
0
        public static void Deserialize(BuffConfigDefine 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.Icon = reader.ReadString();
                }
                break;

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

                case 0x70004:
                {
                    ins.ShowIcon = reader.ReadBool();
                }
                break;

                case 0x10005:
                {
                    ins.IconPriority = reader.ReadInt32();
                }
                break;

                case 0x60006:
                {
                    ins.Description = reader.ReadString();
                }
                break;

                case 0x10007:
                {
                    ins.Target = reader.ReadInt32();
                }
                break;

                case 0x70008:
                {
                    ins.Clear = reader.ReadBool();
                }
                break;

                case 0x60009:
                {
                    ins.BroadcastType = reader.ReadString();
                }
                break;

                case 0x6000a:
                {
                    ins.BuffType = reader.ReadString();
                }
                break;

                case 0x6000b:
                {
                    ins.EffectGroup = reader.ReadString();
                }
                break;

                case 0x1000c:
                {
                    ins.Priority = reader.ReadInt32();
                }
                break;

                case 0x7000d:
                {
                    ins.Superposition = reader.ReadBool();
                }
                break;

                case 0x1000e:
                {
                    ins.SuperpositionLimit = reader.ReadInt32();
                }
                break;

                case 0x5000f:
                {
                    ins.ExistTime = reader.ReadFloat();
                }
                break;

                case 0x50010:
                {
                    ins.EffectiveInterval = reader.ReadFloat();
                }
                break;

                case 0x10011:
                {
                    ins.EffectType = reader.ReadInt32();
                }
                break;

                case 0x50012:
                {
                    ins.EffectTypeNum = reader.ReadFloat();
                }
                break;

                case 0x50013:
                {
                    ins.EffectTypePer = reader.ReadFloat();
                }
                break;

                case 0x60014:
                {
                    ins.Event.Add(reader.ReadString());
                }
                break;

                case 0x60015:
                {
                    ins.Property.Add(reader.ReadString());
                }
                break;
                }
            }
        }
Пример #20
0
        public static void Deserialize(SkillConfigDefine 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.Icon = reader.ReadString();
                }
                break;

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

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

                case 0x10005:
                {
                    ins.Profession = reader.ReadInt32();
                }
                break;

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

                case 0x10007:
                {
                    ins.ReleaseType = reader.ReadInt32();
                }
                break;

                case 0x10008:
                {
                    ins.TriggerType = reader.ReadInt32();
                }
                break;

                case 0x50009:
                {
                    ins.TriggerProbability = reader.ReadFloat();
                }
                break;

                case 0x1000a:
                {
                    ins.TriggerPreID = reader.ReadInt32();
                }
                break;

                case 0x5000b:
                {
                    ins.ReleaseDistance = reader.ReadFloat();
                }
                break;

                case 0x1000c:
                {
                    ins.Target = reader.ReadInt32();
                }
                break;

                case 0x5000d:
                {
                    ins.SpellTime = reader.ReadFloat();
                }
                break;

                case 0x5000e:
                {
                    ins.LastingTime = reader.ReadFloat();
                }
                break;

                case 0x7000f:
                {
                    ins.CanMove = reader.ReadBool();
                }
                break;

                case 0x50010:
                {
                    ins.CD = reader.ReadFloat();
                }
                break;

                case 0x50011:
                {
                    ins.GCD = reader.ReadFloat();
                }
                break;

                case 0x60012:
                {
                    ins.SkillsConsumption = reader.ReadString();
                }
                break;

                case 0x60013:
                {
                    ins.ActionID = reader.ReadString();
                }
                break;

                case 0x50014:
                {
                    ins.DisplacementSpeed = reader.ReadFloat();
                }
                break;

                case 0x50015:
                {
                    ins.FlyingSpeed = reader.ReadFloat();
                }
                break;

                case 0x60016:
                {
                    ins.ReadySE = reader.ReadString();
                }
                break;

                case 0x60017:
                {
                    ins.ReleaseSE = reader.ReadString();
                }
                break;

                case 0x60018:
                {
                    ins.HitSE = reader.ReadString();
                }
                break;

                case 0x10019:
                {
                    ins.DamageType = reader.ReadInt32();
                }
                break;

                case 0x5001a:
                {
                    ins.Damage = reader.ReadFloat();
                }
                break;

                case 0x5001b:
                {
                    ins.AdditionDamage = reader.ReadFloat();
                }
                break;

                case 0x5001c:
                {
                    ins.ThreatRatio = reader.ReadFloat();
                }
                break;

                case 0x1001d:
                {
                    ins.PointType = reader.ReadInt32();
                }
                break;

                case 0x1001e:
                {
                    ins.Scope = reader.ReadInt32();
                }
                break;

                case 0x5001f:
                {
                    ins.Length = reader.ReadFloat();
                }
                break;

                case 0x50020:
                {
                    ins.Width = reader.ReadFloat();
                }
                break;

                case 0x50021:
                {
                    ins.Radius = reader.ReadFloat();
                }
                break;

                case 0x50022:
                {
                    ins.CentralAngle = reader.ReadFloat();
                }
                break;

                case 0x70023:
                {
                    ins.FlownAfterKill = reader.ReadBool();
                }
                break;

                case 0x70024:
                {
                    ins.ShockAfterKill = reader.ReadBool();
                }
                break;

                case 0x60025:
                {
                    ins.Event.Add(reader.ReadString());
                }
                break;
                }
            }
        }
        public static void Deserialize(SkillsBusinessLogicConfigDefine ins, tabtoy.DataReader reader)
        {
            int tag = -1;

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

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

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

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

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

                case 0x10005:
                {
                    ins.Level = reader.ReadInt32();
                }
                break;

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

                case 0x10007:
                {
                    ins.Condition = reader.ReadInt32();
                }
                break;

                case 0x10008:
                {
                    ins.GoldConsume = reader.ReadInt32();
                }
                break;

                case 0x10009:
                {
                    ins.PropsConsume = reader.ReadInt32();
                }
                break;

                case 0x1000a:
                {
                    ins.SkillsId = reader.ReadInt32();
                }
                break;
                }
            }
        }
Пример #22
0
        public static void Deserialize(GuideHandle ins, tabtoy.DataReader reader)
        {
            int tag = -1;

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

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

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

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

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

                case 0x50005:
                {
                    ins.y1 = reader.ReadFloat();
                }
                break;

                case 0x50006:
                {
                    ins.rotationZ = reader.ReadFloat();
                }
                break;

                case 0x10007:
                {
                    ins.hollowType = reader.ReadInt32();
                }
                break;

                case 0x10008:
                {
                    ins.width = reader.ReadInt32();
                }
                break;

                case 0x10009:
                {
                    ins.height = reader.ReadInt32();
                }
                break;

                case 0x6000a:
                {
                    ins.path = reader.ReadString();
                }
                break;
                }
            }
        }
Пример #23
0
        public static void Deserialize(MonsterConfigDefine 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.Level = reader.ReadInt32();
                }
                break;

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

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

                case 0x10005:
                {
                    ins.Hp = reader.ReadInt32();
                }
                break;

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

                case 0x10007:
                {
                    ins.Atk = reader.ReadInt32();
                }
                break;

                case 0x10008:
                {
                    ins.Mgk = reader.ReadInt32();
                }
                break;

                case 0x10009:
                {
                    ins.Def = reader.ReadInt32();
                }
                break;

                case 0x1000a:
                {
                    ins.Rgs = reader.ReadInt32();
                }
                break;

                case 0x1000b:
                {
                    ins.Cri = reader.ReadInt32();
                }
                break;

                case 0x1000c:
                {
                    ins.Gr = reader.ReadInt32();
                }
                break;

                case 0x1000d:
                {
                    ins.Csd = reader.ReadInt32();
                }
                break;

                case 0x1000e:
                {
                    ins.Hit = reader.ReadInt32();
                }
                break;

                case 0x1000f:
                {
                    ins.Rtd = reader.ReadInt32();
                }
                break;

                case 0x10010:
                {
                    ins.Bel = reader.ReadInt32();
                }
                break;

                case 0x10011:
                {
                    ins.Cur = reader.ReadInt32();
                }
                break;

                case 0x10012:
                {
                    ins.Tou = reader.ReadInt32();
                }
                break;

                case 0x10013:
                {
                    ins.Hprq = reader.ReadInt32();
                }
                break;

                case 0x10014:
                {
                    ins.Sprq = reader.ReadInt32();
                }
                break;

                case 0x10015:
                {
                    ins.Wsp = reader.ReadInt32();
                }
                break;

                case 0x10016:
                {
                    ins.Mov = reader.ReadInt32();
                }
                break;

                case 0x10017:
                {
                    ins.Gatk = reader.ReadInt32();
                }
                break;

                case 0x10018:
                {
                    ins.Watk = reader.ReadInt32();
                }
                break;

                case 0x10019:
                {
                    ins.Fatk = reader.ReadInt32();
                }
                break;

                case 0x1001a:
                {
                    ins.Wdatk = reader.ReadInt32();
                }
                break;

                case 0x1001b:
                {
                    ins.Grst = reader.ReadInt32();
                }
                break;

                case 0x1001c:
                {
                    ins.Wrst = reader.ReadInt32();
                }
                break;

                case 0x1001d:
                {
                    ins.Frst = reader.ReadInt32();
                }
                break;

                case 0x1001e:
                {
                    ins.Wdrst = reader.ReadInt32();
                }
                break;

                case 0x6001f:
                {
                    ins.Icon = reader.ReadString();
                }
                break;

                case 0x60020:
                {
                    ins.ResourceId = reader.ReadString();
                }
                break;

                case 0x60021:
                {
                    ins.AnimId = reader.ReadString();
                }
                break;

                case 0x50022:
                {
                    ins.DieParameters = reader.ReadFloat();
                }
                break;

                case 0x10023:
                {
                    ins.DamageOverflow.Add(reader.ReadInt32());
                }
                break;

                case 0x10024:
                {
                    ins.ActiveSkills.Add(reader.ReadInt32());
                }
                break;

                case 0x10025:
                {
                    ins.PassiveSkills.Add(reader.ReadInt32());
                }
                break;

                case 0x10026:
                {
                    ins.SkillLoop.Add(reader.ReadInt32());
                }
                break;

                case 0x10027:
                {
                    ins.OrdinaryDrop = reader.ReadInt32();
                }
                break;

                case 0x10028:
                {
                    ins.SeniorDrop = reader.ReadInt32();
                }
                break;

                case 0x10029:
                {
                    ins.TaskDrop.Add(reader.ReadInt32());
                }
                break;

                case 0x1002a:
                {
                    ins.KillCountShare = reader.ReadInt32();
                }
                break;

                case 0x1002b:
                {
                    ins.IdleTalk.Add(reader.ReadInt32());
                }
                break;

                case 0x1002c:
                {
                    ins.BusyTalk.Add(reader.ReadInt32());
                }
                break;

                case 0x6002d:
                {
                    ins.AttackSound = reader.ReadString();
                }
                break;

                case 0x6002e:
                {
                    ins.ClickSound = reader.ReadString();
                }
                break;

                case 0x6002f:
                {
                    ins.Death = reader.ReadString();
                }
                break;

                case 0x10030:
                {
                    ins.Ai = reader.ReadInt32();
                }
                break;

                case 0x60031:
                {
                    ins.Profile = reader.ReadString();
                }
                break;
                }
            }
        }
Пример #24
0
        public static void Deserialize(BasisAnimConfigDefine 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.Ctrl = reader.ReadString();
                }
                break;

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

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

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

                case 0x60006:
                {
                    ins.BattleIdle = reader.ReadString();
                }
                break;

                case 0x60007:
                {
                    ins.BattleAfter = reader.ReadString();
                }
                break;

                case 0x60008:
                {
                    ins.BattleRun = reader.ReadString();
                }
                break;

                case 0x60009:
                {
                    ins.SpecialIdle = reader.ReadString();
                }
                break;

                case 0x6000a:
                {
                    ins.SpecialRun = reader.ReadString();
                }
                break;

                case 0x6000b:
                {
                    ins.Hurt = reader.ReadString();
                }
                break;

                case 0x6000c:
                {
                    ins.Repel = reader.ReadString();
                }
                break;

                case 0x6000d:
                {
                    ins.Roll = reader.ReadString();
                }
                break;

                case 0x6000e:
                {
                    ins.Dead = reader.ReadString();
                }
                break;
                }
            }
        }
Пример #25
0
        public static void Deserialize(SampleDefine ins, tabtoy.DataReader reader)
        {
            // 唯一ID
            if (reader.MatchTag(0x20000))
            {
                ins.ID = reader.ReadInt64();
            }

            // 名称
            if (reader.MatchTag(0x60001))
            {
                ins.Name = reader.ReadString();
            }

            // 图标ID
            if (reader.MatchTag(0x10002))
            {
                ins.IconID = reader.ReadInt32();
            }

            // 攻击率
            if (reader.MatchTag(0x50003))
            {
                ins.NumericalRate = reader.ReadFloat();
            }

            // 物品id
            if (reader.MatchTag(0x10004))
            {
                ins.ItemID = reader.ReadInt32();
            }

            // BuffID
            if (reader.MatchTag(0x10005))
            {
                reader.ReadList_Int32(ins.BuffID);
            }


            if (reader.MatchTag(0x90006))
            {
                ins.Pos = reader.ReadStruct <Vec2>(Vec2DeserializeHandler);
            }

            // 类型
            if (reader.MatchTag(0x80007))
            {
                ins.Type = reader.ReadEnum <ActorType>();
            }

            // 技能ID列表
            if (reader.MatchTag(0x10008))
            {
                reader.ReadList_Int32(ins.SkillID);
            }

            // 单结构解析
            if (reader.MatchTag(0x90009))
            {
                ins.SingleStruct = reader.ReadStruct <Prop>(PropDeserializeHandler);
            }

            // 字符串结构
            if (reader.MatchTag(0x9000a))
            {
                reader.ReadList_Struct <Prop>(ins.StrStruct, PropDeserializeHandler);
            }
        }
Пример #26
0
        public static void Deserialize(PropConfigDefine 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 0x60002:
                {
                    ins.Icon = reader.ReadString();
                }
                break;

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

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

                case 0x10005:
                {
                    ins.Superposition = reader.ReadInt32();
                }
                break;

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

                case 0x10007:
                {
                    ins.SubType = reader.ReadInt32();
                }
                break;

                case 0x10008:
                {
                    ins.UseJob = reader.ReadInt32();
                }
                break;

                case 0x10009:
                {
                    ins.UseLevel = reader.ReadInt32();
                }
                break;

                case 0x5000a:
                {
                    ins.Cd = reader.ReadFloat();
                }
                break;

                case 0x1000b:
                {
                    ins.DayUseTimes = reader.ReadInt32();
                }
                break;

                case 0x1000c:
                {
                    ins.WeekUseTimes = reader.ReadInt32();
                }
                break;

                case 0x1000d:
                {
                    ins.DurableValue = reader.ReadInt32();
                }
                break;

                case 0x1000e:
                {
                    ins.ValidTime = reader.ReadInt32();
                }
                break;

                case 0x1000f:
                {
                    ins.UseNumber = reader.ReadInt32();
                }
                break;

                case 0x60010:
                {
                    ins.UseArea = reader.ReadString();
                }
                break;

                case 0x10011:
                {
                    ins.Consumables = reader.ReadInt32();
                }
                break;

                case 0x10012:
                {
                    ins.Destroy = reader.ReadInt32();
                }
                break;

                case 0x10013:
                {
                    ins.Trading = reader.ReadInt32();
                }
                break;

                case 0x10014:
                {
                    ins.Synthetic = reader.ReadInt32();
                }
                break;

                case 0x10015:
                {
                    ins.Decompose = reader.ReadInt32();
                }
                break;

                case 0x10016:
                {
                    ins.Binding = reader.ReadInt32();
                }
                break;

                case 0x10017:
                {
                    ins.PackLimit = reader.ReadInt32();
                }
                break;

                case 0x10018:
                {
                    ins.ItemValue = reader.ReadInt32();
                }
                break;

                case 0x10019:
                {
                    ins.SoldCost = reader.ReadInt32();
                }
                break;

                case 0x1001a:
                {
                    ins.PorpEffect = reader.ReadInt32();
                }
                break;

                case 0x6001b:
                {
                    ins.EffectParameters = reader.ReadString();
                }
                break;

                case 0x6001c:
                {
                    ins.PropTips = reader.ReadString();
                }
                break;

                case 0x6001d:
                {
                    ins.PropAccess = reader.ReadString();
                }
                break;

                case 0x6001e:
                {
                    ins.UseWay = reader.ReadString();
                }
                break;
                }
            }
        }
Пример #27
0
        public static void Deserialize(SkillAnimConfigDefine 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.Ctrl = reader.ReadString();
                }
                break;

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

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

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

                case 0x60006:
                {
                    ins.CastingExit = reader.ReadString();
                }
                break;

                case 0x60007:
                {
                    ins.InstantEnter = reader.ReadString();
                }
                break;

                case 0x60008:
                {
                    ins.Instant = reader.ReadString();
                }
                break;

                case 0x60009:
                {
                    ins.LastingEnter = reader.ReadString();
                }
                break;

                case 0x6000a:
                {
                    ins.Lasting = reader.ReadString();
                }
                break;

                case 0x6000b:
                {
                    ins.LastingExit = reader.ReadString();
                }
                break;
                }
            }
        }
        public static void Deserialize(InitialInformationConfigDefine 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 0x60002:
                {
                    ins.Model = reader.ReadString();
                }
                break;

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

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

                case 0x50005:
                {
                    ins.Exp = reader.ReadFloat();
                }
                break;

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

                case 0x10007:
                {
                    ins.Diamond = reader.ReadInt32();
                }
                break;

                case 0x10008:
                {
                    ins.GoldBond = reader.ReadInt32();
                }
                break;

                case 0x10009:
                {
                    ins.BagContent = reader.ReadInt32();
                }
                break;

                case 0x1000a:
                {
                    ins.DepotContent = reader.ReadInt32();
                }
                break;

                case 0x1000b:
                {
                    ins.BaseStr = reader.ReadInt32();
                }
                break;

                case 0x1000c:
                {
                    ins.BaseDex = reader.ReadInt32();
                }
                break;

                case 0x1000d:
                {
                    ins.BaseCon = reader.ReadInt32();
                }
                break;

                case 0x1000e:
                {
                    ins.BaseInt = reader.ReadInt32();
                }
                break;

                case 0x1000f:
                {
                    ins.BaseSpi = reader.ReadInt32();
                }
                break;

                case 0x10010:
                {
                    ins.BaseHp = reader.ReadInt32();
                }
                break;

                case 0x10011:
                {
                    ins.BaseSp = reader.ReadInt32();
                }
                break;

                case 0x10012:
                {
                    ins.BaseAtk = reader.ReadInt32();
                }
                break;

                case 0x10013:
                {
                    ins.BaseMgk = reader.ReadInt32();
                }
                break;

                case 0x10014:
                {
                    ins.BaseDef = reader.ReadInt32();
                }
                break;

                case 0x10015:
                {
                    ins.BaseRgs = reader.ReadInt32();
                }
                break;

                case 0x10016:
                {
                    ins.BaseCri = reader.ReadInt32();
                }
                break;

                case 0x10017:
                {
                    ins.BaseGr = reader.ReadInt32();
                }
                break;

                case 0x10018:
                {
                    ins.BaseCsd = reader.ReadInt32();
                }
                break;

                case 0x10019:
                {
                    ins.BaseHit = reader.ReadInt32();
                }
                break;

                case 0x1001a:
                {
                    ins.BaseRtd = reader.ReadInt32();
                }
                break;

                case 0x1001b:
                {
                    ins.BaseBel = reader.ReadInt32();
                }
                break;

                case 0x1001c:
                {
                    ins.BaseCur = reader.ReadInt32();
                }
                break;

                case 0x1001d:
                {
                    ins.BaseTou = reader.ReadInt32();
                }
                break;

                case 0x1001e:
                {
                    ins.BaseHprq = reader.ReadInt32();
                }
                break;

                case 0x1001f:
                {
                    ins.BaseSprq = reader.ReadInt32();
                }
                break;

                case 0x10020:
                {
                    ins.BaseWsp = reader.ReadInt32();
                }
                break;

                case 0x10021:
                {
                    ins.BaseCs = reader.ReadInt32();
                }
                break;

                case 0x10022:
                {
                    ins.BaseMov = reader.ReadInt32();
                }
                break;

                case 0x10023:
                {
                    ins.BaseGatk = reader.ReadInt32();
                }
                break;

                case 0x10024:
                {
                    ins.BaseWatk = reader.ReadInt32();
                }
                break;

                case 0x10025:
                {
                    ins.BaseFatk = reader.ReadInt32();
                }
                break;

                case 0x10026:
                {
                    ins.BaseWdatk = reader.ReadInt32();
                }
                break;

                case 0x10027:
                {
                    ins.BaseGrst = reader.ReadInt32();
                }
                break;

                case 0x10028:
                {
                    ins.BaseWrst = reader.ReadInt32();
                }
                break;

                case 0x10029:
                {
                    ins.BaseFrst = reader.ReadInt32();
                }
                break;

                case 0x1002a:
                {
                    ins.BaseWdrst = reader.ReadInt32();
                }
                break;
                }
            }
        }
Пример #29
0
        public static void Deserialize(TestDefine ins, tabtoy.DataReader reader)
        {
            int tag = -1;

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

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

                case 0x20002:
                {
                    ins.TestLong = reader.ReadInt64();
                }
                break;

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

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

                case 0x10005:
                {
                    ins.TestIntArr.Add(reader.ReadInt32());
                }
                break;

                case 0x50006:
                {
                    ins.TestFloat2 = reader.ReadFloat();
                }
                break;

                case 0x60007:
                {
                    ins.TestStringArr.Add(reader.ReadString());
                }
                break;

                case 0x80008:
                {
                    ins.TestEnum0 = reader.ReadEnum <SkillTriggerType>();
                }
                break;

                case 0x80009:
                {
                    ins.TestEnum1 = reader.ReadEnum <SkillTriggerType>();
                }
                break;

                case 0x9000a:
                {
                    ins.TestClass = reader.ReadStruct <DropShow>(DropShowDeserializeHandler);
                }
                break;

                case 0x6000b:
                {
                    ins.Name = reader.ReadString();
                }
                break;
                }
            }
        }
Пример #30
0
        public static void Deserialize(JobConfigDefine ins, tabtoy.DataReader reader)
        {
            int tag = -1;

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

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

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

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

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

                case 0x10005:
                {
                    ins.PhysicAtk = reader.ReadInt32();
                }
                break;

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

                case 0x10007:
                {
                    ins.PhysicDef = reader.ReadInt32();
                }
                break;

                case 0x10008:
                {
                    ins.MagicDef = reader.ReadInt32();
                }
                break;

                case 0x10009:
                {
                    ins.LvUpExp = reader.ReadInt32();
                }
                break;
                }
            }
        }