示例#1
0
        public static void Deserialize(ExpDefine ins, tabtoy.DataReader reader)
        {
            // 唯一ID
            if (reader.MatchTag(0x10000))
            {
                ins.Level = reader.ReadInt32();
            }

            // 经验值
            if (reader.MatchTag(0x10001))
            {
                ins.Exp = reader.ReadInt32();
            }

            // 布尔检查
            if (reader.MatchTag(0x70002))
            {
                ins.BoolChecker = reader.ReadBool();
            }

            // 类型
            if (reader.MatchTag(0x80003))
            {
                ins.Type = reader.ReadEnum <ActorType>();
            }
        }
示例#2
0
文件: Config.cs 项目: zsjinit/tabtoy
        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;
                }
            }
        }
示例#3
0
        public static void Deserialize(VerticalDefine ins, tabtoy.DataReader reader)
        {
            // 服务器IP
            if (reader.MatchTag(0x60000))
            {
                ins.ServerIP = reader.ReadString();
            }

            // 调试模式
            if (reader.MatchTag(0x70001))
            {
                ins.DebugMode = reader.ReadBool();
            }

            // 客户端人数限制
            if (reader.MatchTag(0x10002))
            {
                ins.ClientLimit = reader.ReadInt32();
            }

            // 端
            if (reader.MatchTag(0x90003))
            {
                ins.Peer = reader.ReadStruct <PeerData>(PeerDataDeserializeHandler);
            }


            if (reader.MatchTag(0x50004))
            {
                ins.Float = reader.ReadFloat();
            }
        }
示例#4
0
        public PeerData Peer = new PeerData();         // 端



        public void Deserialize(tabtoy.DataReader reader)
        {
            // 服务器IP
            if (reader.MatchTag(0x60000))
            {
                this.ServerIP = reader.ReadString( );
            }

            // 调试模式
            if (reader.MatchTag(0x70001))
            {
                this.DebugMode = reader.ReadBool( );
            }

            // 客户端人数限制
            if (reader.MatchTag(0x10002))
            {
                this.ClientLimit = reader.ReadInt32( );
            }

            // 端
            if (reader.MatchTag(0x90003))
            {
                this.Peer = reader.ReadStruct <PeerData>( );
            }
        }
示例#5
0
文件: Config.cs 项目: zsjinit/tabtoy
        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;
                }
            }
        }
        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;
                }
            }
        }
示例#7
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;
                }
            }
        }
示例#8
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;
                }
            }
        }
示例#9
0
        public static void Deserialize(SkillDefine 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.Desc = reader.ReadString();
                }
                break;

                case 0x70003:
                {
                    ins.IsPassive = reader.ReadBool();
                }
                break;

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

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

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

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

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

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

                case 0x1000a:
                {
                    ins.TargetEffect = reader.ReadInt32();
                }
                break;
                }
            }
        }
示例#10
0
        public static void Deserialize(BuffDefine 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.Desc = reader.ReadString();
                }
                break;

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

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

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

                case 0x10006:
                {
                    ins.Args.Add(reader.ReadInt32());
                }
                break;

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

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

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

                case 0x1000a:
                {
                    ins.ImmunityList.Add(reader.ReadInt32());
                }
                break;

                case 0x1000b:
                {
                    ins.ConflictList.Add(reader.ReadInt32());
                }
                break;

                case 0x7000c:
                {
                    ins.IsDisplay = reader.ReadBool();
                }
                break;

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