Exemple #1
0
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataBuff");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataBuff = require 'Lua/Config/DataBuff'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataBuff");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareBuff>(265);
                    foreach (var item in dic)
                    {
                        DeclareBuff tmp = new DeclareBuff();
                        tmp.Addsub      = item.Value[0];
                        tmp.BuffVfx     = item.Value[1];
                        tmp.Condi       = CfgStringLua.Get(item.Value[2]);
                        tmp.DTime       = item.Value[3];
                        tmp.Desc        = CfgStringLua.Get(item.Value[4]);
                        tmp.Group       = item.Value[5];
                        tmp.Icon        = item.Value[6];
                        tmp.Id          = item.Value[7];
                        tmp.IfChangemap = item.Value[8];
                        tmp.IfSend      = item.Value[9];
                        tmp.Level       = item.Value[10];
                        tmp.Name        = CfgStringLua.Get(item.Value[11]);
                        tmp.Overlap     = item.Value[12];
                        tmp.Param1      = item.Value[13];
                        tmp.Param2      = item.Value[14];
                        tmp.Param3      = item.Value[15];
                        tmp.Param4      = item.Value[16];
                        tmp.Porperty    = CfgStringLua.Get(item.Value[17]);
                        tmp.TargetType  = item.Value[18];
                        tmp.Type        = item.Value[19];
                        tmp.VfxScal     = item.Value[20];
                        tmp.VfxSlot     = item.Value[21];
                        tmp.Wenzi       = item.Value[22];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "Buff");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareBuff>(265);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "Buff");
                }
            }
        }
Exemple #2
0
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataPeopleSoul");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataPeopleSoul = require 'Lua/Config/DataPeopleSoul'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataPeopleSoul");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclarePeopleSoul>(174);
                    foreach (var item in dic)
                    {
                        DeclarePeopleSoul tmp = new DeclarePeopleSoul();
                        tmp.Attribute      = CfgStringLua.Get(item.Value[0]);
                        tmp.AttributeType  = item.Value[1];
                        tmp.Bj             = CfgStringLua.Get(item.Value[2]);
                        tmp.Color          = item.Value[3];
                        tmp.Conditions     = CfgStringLua.Get(item.Value[4]);
                        tmp.Ff             = CfgStringLua.Get(item.Value[5]);
                        tmp.Fg             = CfgStringLua.Get(item.Value[6]);
                        tmp.Group          = CfgStringLua.Get(item.Value[7]);
                        tmp.Icon           = item.Value[8];
                        tmp.Id             = item.Value[9];
                        tmp.IfSynthesis    = item.Value[10];
                        tmp.Item           = CfgStringLua.Get(item.Value[11]);
                        tmp.Jy             = CfgStringLua.Get(item.Value[12]);
                        tmp.Name           = CfgStringLua.Get(item.Value[13]);
                        tmp.Probability    = item.Value[14];
                        tmp.SealItem       = CfgStringLua.Get(item.Value[15]);
                        tmp.Sm             = CfgStringLua.Get(item.Value[16]);
                        tmp.Soul           = CfgStringLua.Get(item.Value[17]);
                        tmp.Sx             = CfgStringLua.Get(item.Value[18]);
                        tmp.SynthesisTitle = item.Value[19];
                        tmp.Type           = item.Value[20];
                        tmp.Wf             = CfgStringLua.Get(item.Value[21]);
                        tmp.Wg             = CfgStringLua.Get(item.Value[22]);

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "PeopleSoul");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclarePeopleSoul>(174);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "PeopleSoul");
                }
            }
        }
Exemple #3
0
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataChangejob");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataChangejob = require 'Lua/Config/DataChangejob'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataChangejob");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareChangejob>(42);
                    foreach (var item in dic)
                    {
                        DeclareChangejob tmp = new DeclareChangejob();
                        tmp.ActiveBranch   = CfgStringLua.Get(item.Value[0]);
                        tmp.AttributeValue = CfgStringLua.Get(item.Value[1]);
                        tmp.CarrerValue    = CfgStringLua.Get(item.Value[2]);
                        tmp.Condition      = CfgStringLua.Get(item.Value[3]);
                        tmp.Conditions     = CfgStringLua.Get(item.Value[4]);
                        tmp.Des            = CfgStringLua.Get(item.Value[5]);
                        tmp.Gender         = item.Value[6];
                        tmp.GenderClass    = item.Value[7];
                        tmp.GenderNum      = CfgStringLua.Get(item.Value[8]);
                        tmp.Icon           = item.Value[9];
                        tmp.ID             = item.Value[10];
                        tmp.LastLevel      = item.Value[11];
                        tmp.Level          = item.Value[12];
                        tmp.LevelCap       = item.Value[13];
                        tmp.MaxExp         = item.Value[14];
                        tmp.Medalid        = item.Value[15];
                        tmp.Model          = item.Value[16];
                        tmp.ModelID        = item.Value[17];
                        tmp.Name           = CfgStringLua.Get(item.Value[18]);
                        tmp.SkillID        = item.Value[19];
                        tmp.TalentID       = item.Value[20];
                        tmp.Task           = CfgStringLua.Get(item.Value[21]);
                        tmp.UpItemInfo     = CfgStringLua.Get(item.Value[22]);

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "Changejob");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareChangejob>(42);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "Changejob");
                }
            }
        }
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataGuildMonsterIntrusion");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataGuildMonsterIntrusion = require 'Lua/Config/DataGuildMonsterIntrusion'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataGuildMonsterIntrusion");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareGuildMonsterIntrusion>(21);
                    foreach (var item in dic)
                    {
                        DeclareGuildMonsterIntrusion tmp = new DeclareGuildMonsterIntrusion();
                        tmp.EightWave        = CfgStringLua.Get(item.Value[0]);
                        tmp.EightWaveBoss    = CfgStringLua.Get(item.Value[1]);
                        tmp.FirstWave        = CfgStringLua.Get(item.Value[2]);
                        tmp.FirstWaveBoss    = CfgStringLua.Get(item.Value[3]);
                        tmp.FiveWave         = CfgStringLua.Get(item.Value[4]);
                        tmp.FiveWaveBoss     = CfgStringLua.Get(item.Value[5]);
                        tmp.FourWave         = CfgStringLua.Get(item.Value[6]);
                        tmp.FourWaveBoss     = CfgStringLua.Get(item.Value[7]);
                        tmp.GuardNpc         = CfgStringLua.Get(item.Value[8]);
                        tmp.GuardPos         = CfgStringLua.Get(item.Value[9]);
                        tmp.ID               = item.Value[10];
                        tmp.Level            = CfgStringLua.Get(item.Value[11]);
                        tmp.MonsterPos       = CfgStringLua.Get(item.Value[12]);
                        tmp.SevenWave        = CfgStringLua.Get(item.Value[13]);
                        tmp.SevenWaveBoss    = CfgStringLua.Get(item.Value[14]);
                        tmp.SixWave          = CfgStringLua.Get(item.Value[15]);
                        tmp.SixWaveBoss      = CfgStringLua.Get(item.Value[16]);
                        tmp.ThreeWave        = CfgStringLua.Get(item.Value[17]);
                        tmp.ThreeWaveBoss    = CfgStringLua.Get(item.Value[18]);
                        tmp.TransmissionGate = item.Value[19];
                        tmp.TwoWave          = CfgStringLua.Get(item.Value[20]);
                        tmp.TwoWaveBoss      = CfgStringLua.Get(item.Value[21]);

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "GuildMonsterIntrusion");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareGuildMonsterIntrusion>(21);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "GuildMonsterIntrusion");
                }
            }
        }
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataTaskBattlefield");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataTaskBattlefield = require 'Lua/Config/DataTaskBattlefield'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataTaskBattlefield");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareTaskBattlefield>();
                    foreach (var item in dic)
                    {
                        DeclareTaskBattlefield tmp = new DeclareTaskBattlefield();
                        tmp.Calculate      = item.Value[0];
                        tmp.Camp           = item.Value[1];
                        tmp.CanPathfinding = item.Value[2];
                        tmp.Describe       = CfgStringLua.Get(item.Value[3]);
                        tmp.FillStarcost   = CfgStringLua.Get(item.Value[4]);
                        tmp.Goal           = CfgStringLua.Get(item.Value[5]);
                        tmp.GoalMap        = item.Value[6];
                        tmp.GroupID        = item.Value[7];
                        tmp.Id             = item.Value[8];
                        tmp.LevelMax       = item.Value[9];
                        tmp.LevelMin       = item.Value[10];
                        tmp.Map            = CfgStringLua.Get(item.Value[11]);
                        tmp.Name           = CfgStringLua.Get(item.Value[12]);
                        tmp.Num            = CfgStringLua.Get(item.Value[13]);
                        tmp.OpenUI         = item.Value[14];
                        tmp.Rewards1       = CfgStringLua.Get(item.Value[15]);
                        tmp.Rewards2       = CfgStringLua.Get(item.Value[16]);
                        tmp.Rewards3       = CfgStringLua.Get(item.Value[17]);
                        tmp.Rewards4       = CfgStringLua.Get(item.Value[18]);
                        tmp.Rewards5       = CfgStringLua.Get(item.Value[19]);
                        tmp.Star           = CfgStringLua.Get(item.Value[20]);
                        tmp.TaskType       = item.Value[21];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "TaskBattlefield");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareTaskBattlefield>();
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "TaskBattlefield");
                }
            }
        }
Exemple #6
0
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataBossElementsTemple");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataBossElementsTemple = require 'Lua/Config/DataBossElementsTemple'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataBossElementsTemple");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareBossElementsTemple>(44);
                    foreach (var item in dic)
                    {
                        DeclareBossElementsTemple tmp = new DeclareBossElementsTemple();
                        tmp.BossLevel       = item.Value[0];
                        tmp.CanShow         = item.Value[1];
                        tmp.CloneID         = item.Value[2];
                        tmp.Drop            = CfgStringLua.Get(item.Value[3]);
                        tmp.EnterLevel      = item.Value[4];
                        tmp.Flag            = CfgStringLua.Get(item.Value[5]);
                        tmp.FlagPos         = CfgStringLua.Get(item.Value[6]);
                        tmp.HeadIcon        = item.Value[7];
                        tmp.HostileElements = CfgStringLua.Get(item.Value[8]);
                        tmp.ID             = item.Value[9];
                        tmp.Layer          = item.Value[10];
                        tmp.LevelParameter = item.Value[11];
                        tmp.Mapsid         = item.Value[12];
                        tmp.MonsterName    = CfgStringLua.Get(item.Value[13]);
                        tmp.Monsterid      = item.Value[14];
                        tmp.NewMonsterId   = CfgStringLua.Get(item.Value[15]);
                        tmp.Num            = item.Value[16];
                        tmp.Pos            = CfgStringLua.Get(item.Value[17]);
                        tmp.Power          = item.Value[18];
                        tmp.Size           = item.Value[19];
                        tmp.StandardLevel  = item.Value[20];
                        tmp.Time           = item.Value[21];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "BossElementsTemple");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareBossElementsTemple>(44);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "BossElementsTemple");
                }
            }
        }
Exemple #7
0
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataSkill");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataSkill = require 'Lua/Config/DataSkill'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataSkill");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareSkill>(1804);
                    foreach (var item in dic)
                    {
                        DeclareSkill tmp = new DeclareSkill();
                        tmp.CanUseSelect   = item.Value[0];
                        tmp.Cd             = item.Value[1];
                        tmp.CellId         = item.Value[2];
                        tmp.DamageType     = item.Value[3];
                        tmp.Desc           = CfgStringLua.Get(item.Value[4]);
                        tmp.ElementType    = item.Value[5];
                        tmp.Icon           = item.Value[6];
                        tmp.Id             = item.Value[7];
                        tmp.Level          = item.Value[8];
                        tmp.Name           = CfgStringLua.Get(item.Value[9]);
                        tmp.Params         = CfgStringLua.Get(item.Value[10]);
                        tmp.Params2        = item.Value[11];
                        tmp.PromptDelay    = item.Value[12];
                        tmp.PromptLifeTime = item.Value[13];
                        tmp.PromptText     = CfgStringLua.Get(item.Value[14]);
                        tmp.PublicCd       = item.Value[15];
                        tmp.ServerSyncType = item.Value[16];
                        tmp.SkillPreferred = item.Value[17];
                        tmp.Type           = item.Value[18];
                        tmp.UsePublicCd    = item.Value[19];
                        tmp.UserType       = item.Value[20];
                        tmp.VisualDef      = CfgStringLua.Get(item.Value[21]);

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "Skill");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareSkill>(1804);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "Skill");
                }
            }
        }
Exemple #8
0
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataGather");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataGather = require 'Lua/Config/DataGather'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataGather");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareGather>(176);
                    foreach (var item in dic)
                    {
                        DeclareGather tmp = new DeclareGather();
                        tmp.AfterType     = item.Value[0];
                        tmp.AnimName      = CfgStringLua.Get(item.Value[1]);
                        tmp.CollectInfo   = CfgStringLua.Get(item.Value[2]);
                        tmp.CollectTime   = item.Value[3];
                        tmp.Dialog        = CfgStringLua.Get(item.Value[4]);
                        tmp.DropNum       = item.Value[5];
                        tmp.EffectId      = item.Value[6];
                        tmp.EnemyFlag     = item.Value[7];
                        tmp.FriendsFlag   = item.Value[8];
                        tmp.Icon          = item.Value[9];
                        tmp.Id            = item.Value[10];
                        tmp.LogicBodySize = item.Value[11];
                        tmp.MultType      = CfgStringLua.Get(item.Value[12]);
                        tmp.Name          = CfgStringLua.Get(item.Value[13]);
                        tmp.Res           = item.Value[14];
                        tmp.Share         = item.Value[15];
                        tmp.ShowName      = item.Value[16];
                        tmp.ShowButton    = item.Value[17];
                        tmp.SizeScale     = item.Value[18];
                        tmp.TakHinde      = CfgStringLua.Get(item.Value[19]);
                        tmp.Type          = item.Value[20];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "Gather");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareGather>(176);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "Gather");
                }
            }
        }
Exemple #9
0
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataModelConfig");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataModelConfig = require 'Lua/Config/DataModelConfig'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataModelConfig");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareModelConfig>(15057);
                    foreach (var item in dic)
                    {
                        DeclareModelConfig tmp = new DeclareModelConfig();
                        tmp.ApplyStatus   = item.Value[0];
                        tmp.Id            = item.Value[1];
                        tmp.IsShow        = item.Value[2];
                        tmp.MainTextrue   = CfgStringLua.Get(item.Value[3]);
                        tmp.MaskTextrue   = CfgStringLua.Get(item.Value[4]);
                        tmp.Model         = item.Value[5];
                        tmp.OutLineParam  = CfgStringLua.Get(item.Value[6]);
                        tmp.Shader        = item.Value[7];
                        tmp.SharderParam1 = CfgStringLua.Get(item.Value[8]);
                        tmp.SharderParam2 = CfgStringLua.Get(item.Value[9]);
                        tmp.SharderParam3 = CfgStringLua.Get(item.Value[10]);
                        tmp.SharderParam4 = CfgStringLua.Get(item.Value[11]);
                        tmp.SharderParam5 = CfgStringLua.Get(item.Value[12]);
                        tmp.Type          = item.Value[13];
                        tmp.Vfx1          = CfgStringLua.Get(item.Value[14]);
                        tmp.Vfx2          = CfgStringLua.Get(item.Value[15]);
                        tmp.Vfx3          = CfgStringLua.Get(item.Value[16]);
                        tmp.Vfx4          = CfgStringLua.Get(item.Value[17]);
                        tmp.Vfx5          = CfgStringLua.Get(item.Value[18]);
                        tmp.VfxType       = item.Value[19];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "ModelConfig");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareModelConfig>(15057);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "ModelConfig");
                }
            }
        }
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataPlayerSkill");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataPlayerSkill = require 'Lua/Config/DataPlayerSkill'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataPlayerSkill");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclarePlayerSkill>(72);
                    foreach (var item in dic)
                    {
                        DeclarePlayerSkill tmp = new DeclarePlayerSkill();
                        tmp.BaseBranchCombo  = CfgStringLua.Get(item.Value[0]);
                        tmp.BaseBranchSkills = CfgStringLua.Get(item.Value[1]);
                        tmp.BaseDesc         = CfgStringLua.Get(item.Value[2]);
                        tmp.BaseOpenDesc     = CfgStringLua.Get(item.Value[3]);
                        tmp.Branch1Combo     = CfgStringLua.Get(item.Value[4]);
                        tmp.Branch1Desc      = CfgStringLua.Get(item.Value[5]);
                        tmp.Branch1OpenDesc  = CfgStringLua.Get(item.Value[6]);
                        tmp.Branch1Skills    = CfgStringLua.Get(item.Value[7]);
                        tmp.Branch2Combo     = CfgStringLua.Get(item.Value[8]);
                        tmp.Branch2Desc      = CfgStringLua.Get(item.Value[9]);
                        tmp.Branch2OpenDesc  = CfgStringLua.Get(item.Value[10]);
                        tmp.Branch2Skills    = CfgStringLua.Get(item.Value[11]);
                        tmp.Branch3Combo     = CfgStringLua.Get(item.Value[12]);
                        tmp.Branch3Desc      = CfgStringLua.Get(item.Value[13]);
                        tmp.Branch3OpenDesc  = CfgStringLua.Get(item.Value[14]);
                        tmp.Branch3Skills    = CfgStringLua.Get(item.Value[15]);
                        tmp.Evolution        = item.Value[16];
                        tmp.Id  = item.Value[17];
                        tmp.Occ = item.Value[18];
                        tmp.Pos = item.Value[19];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "PlayerSkill");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclarePlayerSkill>(72);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "PlayerSkill");
                }
            }
        }
Exemple #11
0
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataTaskDaily");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataTaskDaily = require 'Lua/Config/DataTaskDaily'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataTaskDaily");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareTaskDaily>(3276);
                    foreach (var item in dic)
                    {
                        DeclareTaskDaily tmp = new DeclareTaskDaily();
                        tmp.ConditionsNpc  = item.Value[0];
                        tmp.DailyTaskXZ    = CfgStringLua.Get(item.Value[1]);
                        tmp.DoubleCurrency = CfgStringLua.Get(item.Value[2]);
                        tmp.FillStarcost   = CfgStringLua.Get(item.Value[3]);
                        tmp.Id             = item.Value[4];
                        tmp.NpcId          = item.Value[5];
                        tmp.OverCurrency   = CfgStringLua.Get(item.Value[6]);
                        tmp.OverNpc        = item.Value[7];
                        tmp.Rewards0       = CfgStringLua.Get(item.Value[8]);
                        tmp.Rewards1       = CfgStringLua.Get(item.Value[9]);
                        tmp.Rewards2       = CfgStringLua.Get(item.Value[10]);
                        tmp.Rewards3       = CfgStringLua.Get(item.Value[11]);
                        tmp.Rewards4       = CfgStringLua.Get(item.Value[12]);
                        tmp.Rewards5       = CfgStringLua.Get(item.Value[13]);
                        tmp.Star           = CfgStringLua.Get(item.Value[14]);
                        tmp.TaskName       = CfgStringLua.Get(item.Value[15]);
                        tmp.TaskTalkOver   = item.Value[16];
                        tmp.TaskTalkStart  = item.Value[17];
                        tmp.TaskType       = item.Value[18];
                        tmp.TypeName       = CfgStringLua.Get(item.Value[19]);

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "TaskDaily");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareTaskDaily>(3276);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "TaskDaily");
                }
            }
        }
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataBossgodclone");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataBossgodclone = require 'Lua/Config/DataBossgodclone'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataBossgodclone");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareBossgodclone>(15);
                    foreach (var item in dic)
                    {
                        DeclareBossgodclone tmp = new DeclareBossgodclone();
                        tmp.BossLevel     = item.Value[0];
                        tmp.CanShow       = item.Value[1];
                        tmp.CloneID       = item.Value[2];
                        tmp.CrossSever    = item.Value[3];
                        tmp.Drop          = CfgStringLua.Get(item.Value[4]);
                        tmp.DropEquipShow = item.Value[5];
                        tmp.EnterLevel    = item.Value[6];
                        tmp.HeadIcon      = item.Value[7];
                        tmp.ID            = item.Value[8];
                        tmp.Layer         = item.Value[9];
                        tmp.Mapsid        = item.Value[10];
                        tmp.MonsterName   = CfgStringLua.Get(item.Value[11]);
                        tmp.Monsterid     = item.Value[12];
                        tmp.Num           = item.Value[13];
                        tmp.Pos           = CfgStringLua.Get(item.Value[14]);
                        tmp.Scourge       = item.Value[15];
                        tmp.ShowModel     = item.Value[16];
                        tmp.Size          = item.Value[17];
                        tmp.Type          = item.Value[18];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "Bossgodclone");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareBossgodclone>(15);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "Bossgodclone");
                }
            }
        }
Exemple #13
0
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataScuffleLevel");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataScuffleLevel = require 'Lua/Config/DataScuffleLevel'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataScuffleLevel");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareScuffleLevel>(30);
                    foreach (var item in dic)
                    {
                        DeclareScuffleLevel tmp = new DeclareScuffleLevel();
                        tmp.Degree         = item.Value[0];
                        tmp.FirstAward     = CfgStringLua.Get(item.Value[1]);
                        tmp.GetScore       = CfgStringLua.Get(item.Value[2]);
                        tmp.GetTitle       = item.Value[3];
                        tmp.Id             = item.Value[4];
                        tmp.KingExThirdWin = CfgStringLua.Get(item.Value[5]);
                        tmp.KingFirstLose  = CfgStringLua.Get(item.Value[6]);
                        tmp.KingFirstWin   = CfgStringLua.Get(item.Value[7]);
                        tmp.KingSecondWin  = CfgStringLua.Get(item.Value[8]);
                        tmp.KingSeondLose  = CfgStringLua.Get(item.Value[9]);
                        tmp.KingThirdLose  = CfgStringLua.Get(item.Value[10]);
                        tmp.KingThirdWin   = CfgStringLua.Get(item.Value[11]);
                        tmp.Name           = CfgStringLua.Get(item.Value[12]);
                        tmp.NeedScore      = item.Value[13];
                        tmp.ResIcon        = item.Value[14];
                        tmp.ResTex         = CfgStringLua.Get(item.Value[15]);
                        tmp.StarNum        = item.Value[16];
                        tmp.WeekAward      = CfgStringLua.Get(item.Value[17]);

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "ScuffleLevel");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareScuffleLevel>(30);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "ScuffleLevel");
                }
            }
        }
Exemple #14
0
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataTaskEscort");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataTaskEscort = require 'Lua/Config/DataTaskEscort'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataTaskEscort");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareTaskEscort>(60);
                    foreach (var item in dic)
                    {
                        DeclareTaskEscort tmp = new DeclareTaskEscort();
                        tmp.AdditionalRewards = CfgStringLua.Get(item.Value[0]);
                        tmp.Camp = item.Value[1];
                        tmp.ConditionsDescribe = CfgStringLua.Get(item.Value[2]);
                        tmp.Cost        = CfgStringLua.Get(item.Value[3]);
                        tmp.CostDiamond = item.Value[4];
                        tmp.Endpath     = CfgStringLua.Get(item.Value[5]);
                        tmp.MaxLevel    = item.Value[6];
                        tmp.MinLevel    = item.Value[7];
                        tmp.Model       = item.Value[8];
                        tmp.PathMap     = item.Value[9];
                        tmp.Quality     = item.Value[10];
                        tmp.Rewards     = CfgStringLua.Get(item.Value[11]);
                        tmp.Target      = CfgStringLua.Get(item.Value[12]);
                        tmp.TargetType  = item.Value[13];
                        tmp.TaskId      = item.Value[14];
                        tmp.TaskName    = CfgStringLua.Get(item.Value[15]);
                        tmp.Texture     = CfgStringLua.Get(item.Value[16]);
                        tmp.TypeName    = CfgStringLua.Get(item.Value[17]);

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "TaskEscort");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareTaskEscort>(60);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "TaskEscort");
                }
            }
        }
Exemple #15
0
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataTaskGuide");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataTaskGuide = require 'Lua/Config/DataTaskGuide'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataTaskGuide");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareTaskGuide>(24);
                    foreach (var item in dic)
                    {
                        DeclareTaskGuide tmp = new DeclareTaskGuide();
                        tmp.BranchId       = item.Value[0];
                        tmp.Changejob      = item.Value[1];
                        tmp.ConditionsMap  = item.Value[2];
                        tmp.ConditionsNpc  = item.Value[3];
                        tmp.GainConditions = item.Value[4];
                        tmp.GoalNpc        = CfgStringLua.Get(item.Value[5]);
                        tmp.LevelMax       = item.Value[6];
                        tmp.LevelMin       = item.Value[7];
                        tmp.Name           = CfgStringLua.Get(item.Value[8]);
                        tmp.OverMap        = item.Value[9];
                        tmp.OverNpc        = item.Value[10];
                        tmp.Professional   = item.Value[11];
                        tmp.StatueID       = item.Value[12];
                        tmp.TaskTalkOver   = item.Value[13];
                        tmp.TaskTalkStart  = item.Value[14];
                        tmp.TaskType       = item.Value[15];
                        tmp.Type           = item.Value[16];
                        tmp.TypeName       = CfgStringLua.Get(item.Value[17]);

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "TaskGuide");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareTaskGuide>(24);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "TaskGuide");
                }
            }
        }
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataElementRuneSuit");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataElementRuneSuit = require 'Lua/Config/DataElementRuneSuit'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataElementRuneSuit");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareElementRuneSuit>(32);
                    foreach (var item in dic)
                    {
                        DeclareElementRuneSuit tmp = new DeclareElementRuneSuit();
                        tmp.Attribute2        = CfgStringLua.Get(item.Value[0]);
                        tmp.Attribute4        = CfgStringLua.Get(item.Value[1]);
                        tmp.Attribute5        = CfgStringLua.Get(item.Value[2]);
                        tmp.Attribute6        = CfgStringLua.Get(item.Value[3]);
                        tmp.ElementAttribute2 = CfgStringLua.Get(item.Value[4]);
                        tmp.ElementAttribute4 = CfgStringLua.Get(item.Value[5]);
                        tmp.ElementAttribute5 = CfgStringLua.Get(item.Value[6]);
                        tmp.ElementAttribute6 = CfgStringLua.Get(item.Value[7]);
                        tmp.Id          = item.Value[8];
                        tmp.Level       = item.Value[9];
                        tmp.NeedDegree  = item.Value[10];
                        tmp.NeedElement = CfgStringLua.Get(item.Value[11]);
                        tmp.NeedParts   = CfgStringLua.Get(item.Value[12]);
                        tmp.NeedQuality = item.Value[13];
                        tmp.Prefix      = CfgStringLua.Get(item.Value[14]);
                        tmp.Score       = item.Value[15];
                        tmp.Type        = item.Value[16];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "ElementRuneSuit");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareElementRuneSuit>(32);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "ElementRuneSuit");
                }
            }
        }
Exemple #17
0
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataPlayerTitleRune");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataPlayerTitleRune = require 'Lua/Config/DataPlayerTitleRune'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataPlayerTitleRune");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclarePlayerTitleRune>();
                    foreach (var item in dic)
                    {
                        DeclarePlayerTitleRune tmp = new DeclarePlayerTitleRune();
                        tmp.ActiveNeedValue = item.Value[0];
                        tmp.Att             = CfgStringLua.Get(item.Value[1]);
                        tmp.CritGet         = item.Value[2];
                        tmp.CritPer         = item.Value[3];
                        tmp.DecGold         = item.Value[4];
                        tmp.EachAdd         = item.Value[5];
                        tmp.EachCount       = item.Value[6];
                        tmp.FullAtt         = CfgStringLua.Get(item.Value[7]);
                        tmp.Id           = item.Value[8];
                        tmp.LimitDecGold = item.Value[9];
                        tmp.Name         = CfgStringLua.Get(item.Value[10]);
                        tmp.NormalGet    = item.Value[11];
                        tmp.Radio        = item.Value[12];
                        tmp.Res          = item.Value[13];
                        tmp.SuperGet     = item.Value[14];
                        tmp.SuperPer     = item.Value[15];
                        tmp.UpNeedExp    = item.Value[16];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "PlayerTitleRune");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclarePlayerTitleRune>();
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "PlayerTitleRune");
                }
            }
        }
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataRetrieveRes");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataRetrieveRes = require 'Lua/Config/DataRetrieveRes'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataRetrieveRes");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareRetrieveRes>(825);
                    foreach (var item in dic)
                    {
                        DeclareRetrieveRes tmp = new DeclareRetrieveRes();
                        tmp.Arward        = CfgStringLua.Get(item.Value[0]);
                        tmp.ArwardFree    = CfgStringLua.Get(item.Value[1]);
                        tmp.Exp           = item.Value[2];
                        tmp.ExpFree       = item.Value[3];
                        tmp.Gold          = item.Value[4];
                        tmp.Id            = item.Value[5];
                        tmp.Item          = CfgStringLua.Get(item.Value[6]);
                        tmp.Max           = item.Value[7];
                        tmp.MaxLevel      = item.Value[8];
                        tmp.MinLevel      = item.Value[9];
                        tmp.Name          = CfgStringLua.Get(item.Value[10]);
                        tmp.OpenDay       = CfgStringLua.Get(item.Value[11]);
                        tmp.OpenVariables = CfgStringLua.Get(item.Value[12]);
                        tmp.Soul          = CfgStringLua.Get(item.Value[13]);
                        tmp.SoulFree      = CfgStringLua.Get(item.Value[14]);
                        tmp.Type          = item.Value[15];
                        tmp.Update        = item.Value[16];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "RetrieveRes");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareRetrieveRes>(825);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "RetrieveRes");
                }
            }
        }
Exemple #19
0
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataElvesAdvanced");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataElvesAdvanced = require 'Lua/Config/DataElvesAdvanced'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataElvesAdvanced");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareElvesAdvanced>(10);
                    foreach (var item in dic)
                    {
                        DeclareElvesAdvanced tmp = new DeclareElvesAdvanced();
                        tmp.AddAttribute  = CfgStringLua.Get(item.Value[0]);
                        tmp.BlessnumLimit = item.Value[1];
                        tmp.BlessnumMax   = item.Value[2];
                        tmp.BlessnumMin   = item.Value[3];
                        tmp.CatchSelfRes  = item.Value[4];
                        tmp.CatchVfxRes   = item.Value[5];
                        tmp.GoldNum       = item.Value[6];
                        tmp.ItemNum       = item.Value[7];
                        tmp.Layer         = item.Value[8];
                        tmp.Name          = CfgStringLua.Get(item.Value[9]);
                        tmp.Notice        = item.Value[10];
                        tmp.PanelShowId   = item.Value[11];
                        tmp.QNameColor    = CfgStringLua.Get(item.Value[12]);
                        tmp.UpItem        = item.Value[13];
                        tmp.UpNumMax      = item.Value[14];
                        tmp.UpNumMin      = item.Value[15];
                        tmp.UpProbability = item.Value[16];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "ElvesAdvanced");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareElvesAdvanced>(10);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "ElvesAdvanced");
                }
            }
        }
Exemple #20
0
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataWing");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataWing = require 'Lua/Config/DataWing'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataWing");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareWing>(17);
                    foreach (var item in dic)
                    {
                        DeclareWing tmp = new DeclareWing();
                        tmp.ActiveItem    = CfgStringLua.Get(item.Value[0]);
                        tmp.CameraSize    = item.Value[1];
                        tmp.Condition     = CfgStringLua.Get(item.Value[2]);
                        tmp.ConditionInfo = CfgStringLua.Get(item.Value[3]);
                        tmp.Icon          = CfgStringLua.Get(item.Value[4]);
                        tmp.Id            = item.Value[5];
                        tmp.MaxLevel      = item.Value[6];
                        tmp.Model         = CfgStringLua.Get(item.Value[7]);
                        tmp.Name          = CfgStringLua.Get(item.Value[8]);
                        tmp.Notice        = item.Value[9];
                        tmp.QNameColor    = CfgStringLua.Get(item.Value[10]);
                        tmp.RentAtt       = CfgStringLua.Get(item.Value[11]);
                        tmp.RentInfo      = CfgStringLua.Get(item.Value[12]);
                        tmp.RentLanzuan   = item.Value[13];
                        tmp.TrainAttr     = CfgStringLua.Get(item.Value[14]);
                        tmp.TrainItem     = CfgStringLua.Get(item.Value[15]);
                        tmp.UiModel       = CfgStringLua.Get(item.Value[16]);

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "Wing");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareWing>(17);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "Wing");
                }
            }
        }
Exemple #21
0
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataTemple");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataTemple = require 'Lua/Config/DataTemple'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataTemple");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareTemple>(2);
                    foreach (var item in dic)
                    {
                        DeclareTemple tmp = new DeclareTemple();
                        tmp.BackVfx     = item.Value[0];
                        tmp.Boss        = CfgStringLua.Get(item.Value[1]);
                        tmp.CanCutTime  = item.Value[2];
                        tmp.CanDrop     = item.Value[3];
                        tmp.CloneID     = item.Value[4];
                        tmp.CutTime     = item.Value[5];
                        tmp.FirstAward  = CfgStringLua.Get(item.Value[6]);
                        tmp.Integral    = item.Value[7];
                        tmp.Item        = CfgStringLua.Get(item.Value[8]);
                        tmp.ModelVfx    = item.Value[9];
                        tmp.Name        = CfgStringLua.Get(item.Value[10]);
                        tmp.Process     = item.Value[11];
                        tmp.SealTime    = item.Value[12];
                        tmp.Star2       = item.Value[13];
                        tmp.Star3       = item.Value[14];
                        tmp.WeekAreward = CfgStringLua.Get(item.Value[15]);
                        tmp.WorldLevel  = item.Value[16];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "Temple");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareTemple>(2);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "Temple");
                }
            }
        }
Exemple #22
0
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataHorseUp");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataHorseUp = require 'Lua/Config/DataHorseUp'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataHorseUp");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareHorseUp>(11);
                    foreach (var item in dic)
                    {
                        DeclareHorseUp tmp = new DeclareHorseUp();
                        tmp.Attr          = CfgStringLua.Get(item.Value[0]);
                        tmp.BlessnumLimit = item.Value[1];
                        tmp.BlessnumMax   = item.Value[2];
                        tmp.BlessnumMin   = item.Value[3];
                        tmp.CameraDis     = item.Value[4];
                        tmp.CameraSize    = item.Value[5];
                        tmp.CanFly        = item.Value[6];
                        tmp.Layer         = item.Value[7];
                        tmp.Name          = CfgStringLua.Get(item.Value[8]);
                        tmp.Notice        = item.Value[9];
                        tmp.PanelHeadId   = item.Value[10];
                        tmp.QNameColor    = CfgStringLua.Get(item.Value[11]);
                        tmp.UpFigureLevel = item.Value[12];
                        tmp.UpItemInfo    = CfgStringLua.Get(item.Value[13]);
                        tmp.UpNumMax      = item.Value[14];
                        tmp.UpNumMin      = item.Value[15];
                        tmp.UpProbability = item.Value[16];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "HorseUp");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareHorseUp>(11);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "HorseUp");
                }
            }
        }
Exemple #23
0
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataYyHuanJing");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataYyHuanJing = require 'Lua/Config/DataYyHuanJing'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataYyHuanJing");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareYyHuanJing>(8);
                    foreach (var item in dic)
                    {
                        DeclareYyHuanJing tmp = new DeclareYyHuanJing();
                        tmp.BossLevel   = item.Value[0];
                        tmp.CanShow     = item.Value[1];
                        tmp.CloneID     = item.Value[2];
                        tmp.Coordinates = CfgStringLua.Get(item.Value[3]);
                        tmp.Describe    = CfgStringLua.Get(item.Value[4]);
                        tmp.Drop        = CfgStringLua.Get(item.Value[5]);
                        tmp.EnterLevel  = item.Value[6];
                        tmp.HeadIcon    = item.Value[7];
                        tmp.ID          = item.Value[8];
                        tmp.Layer       = item.Value[9];
                        tmp.Mapsid      = item.Value[10];
                        tmp.Monsterid   = item.Value[11];
                        tmp.Pos         = CfgStringLua.Get(item.Value[12]);
                        tmp.Power       = item.Value[13];
                        tmp.ReviveTime  = item.Value[14];
                        tmp.Size        = item.Value[15];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "YyHuanJing");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareYyHuanJing>(8);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "YyHuanJing");
                }
            }
        }
Exemple #24
0
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataEquipSynthesis");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataEquipSynthesis = require 'Lua/Config/DataEquipSynthesis'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataEquipSynthesis");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareEquipSynthesis>(576);
                    foreach (var item in dic)
                    {
                        DeclareEquipSynthesis tmp = new DeclareEquipSynthesis();
                        tmp.DemandItem         = CfgStringLua.Get(item.Value[0]);
                        tmp.DiamondNumber      = item.Value[1];
                        tmp.EquipDiamondNumber = item.Value[2];
                        tmp.EquipID            = item.Value[3];
                        tmp.EquipLevel         = item.Value[4];
                        tmp.EquipPosition      = item.Value[5];
                        tmp.EquipQuality       = item.Value[6];
                        tmp.Id                 = item.Value[7];
                        tmp.JoinItem           = CfgStringLua.Get(item.Value[8]);
                        tmp.JoinLevel          = item.Value[9];
                        tmp.JoinNum            = CfgStringLua.Get(item.Value[10]);
                        tmp.JoinNumProbability = CfgStringLua.Get(item.Value[11]);
                        tmp.Occupation         = item.Value[12];
                        tmp.Quality            = item.Value[13];
                        tmp.Shielding          = item.Value[14];
                        tmp.SynthesisLevel     = item.Value[15];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "EquipSynthesis");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareEquipSynthesis>(576);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "EquipSynthesis");
                }
            }
        }
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataHorseMythical");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataHorseMythical = require 'Lua/Config/DataHorseMythical'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataHorseMythical");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareHorseMythical>(21);
                    foreach (var item in dic)
                    {
                        DeclareHorseMythical tmp = new DeclareHorseMythical();
                        tmp.ActiveAttr = CfgStringLua.Get(item.Value[0]);
                        tmp.ActiveItem = CfgStringLua.Get(item.Value[1]);
                        tmp.CameraSize = item.Value[2];
                        tmp.CanFly     = item.Value[3];
                        tmp.Icon       = item.Value[4];
                        tmp.Id         = item.Value[5];
                        tmp.MaxLevel   = item.Value[6];
                        tmp.Name       = CfgStringLua.Get(item.Value[7]);
                        tmp.Notice     = item.Value[8];
                        tmp.Priority   = item.Value[9];
                        tmp.Res        = item.Value[10];
                        tmp.RideNum    = item.Value[11];
                        tmp.TrainAttr  = CfgStringLua.Get(item.Value[12]);
                        tmp.TrainItem  = CfgStringLua.Get(item.Value[13]);
                        tmp.Type       = item.Value[14];
                        tmp.YNum       = item.Value[15];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "HorseMythical");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareHorseMythical>(21);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "HorseMythical");
                }
            }
        }
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataKuafuAlchemySpirit");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataKuafuAlchemySpirit = require 'Lua/Config/DataKuafuAlchemySpirit'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataKuafuAlchemySpirit");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareKuafuAlchemySpirit>(500);
                    foreach (var item in dic)
                    {
                        DeclareKuafuAlchemySpirit tmp = new DeclareKuafuAlchemySpirit();
                        tmp.Attribute        = CfgStringLua.Get(item.Value[0]);
                        tmp.Colour           = item.Value[1];
                        tmp.Consume          = CfgStringLua.Get(item.Value[2]);
                        tmp.GuardSkill       = item.Value[3];
                        tmp.HideName         = CfgStringLua.Get(item.Value[4]);
                        tmp.ICON             = item.Value[5];
                        tmp.Level            = item.Value[6];
                        tmp.Model            = item.Value[7];
                        tmp.ModelRotate      = item.Value[8];
                        tmp.ModelZoom        = item.Value[9];
                        tmp.Name             = CfgStringLua.Get(item.Value[10]);
                        tmp.SceneModel       = item.Value[11];
                        tmp.SceneZoom        = item.Value[12];
                        tmp.SkillDescription = CfgStringLua.Get(item.Value[13]);
                        tmp.SkillTipe        = item.Value[14];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "KuafuAlchemySpirit");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareKuafuAlchemySpirit>(500);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "KuafuAlchemySpirit");
                }
            }
        }
Exemple #27
0
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataHeraldry");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataHeraldry = require 'Lua/Config/DataHeraldry'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataHeraldry");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareHeraldry>(3);
                    foreach (var item in dic)
                    {
                        DeclareHeraldry tmp = new DeclareHeraldry();
                        tmp.Attribute     = CfgStringLua.Get(item.Value[0]);
                        tmp.AttributeDes  = CfgStringLua.Get(item.Value[1]);
                        tmp.Buff          = CfgStringLua.Get(item.Value[2]);
                        tmp.Des           = CfgStringLua.Get(item.Value[3]);
                        tmp.Effect        = item.Value[4];
                        tmp.EffectiveTime = item.Value[5];
                        tmp.Gender        = item.Value[6];
                        tmp.Icon          = item.Value[7];
                        tmp.Id            = item.Value[8];
                        tmp.ItemId        = item.Value[9];
                        tmp.Name          = CfgStringLua.Get(item.Value[10]);
                        tmp.Part          = item.Value[11];
                        tmp.ProbationTime = item.Value[12];
                        tmp.RenewPrice    = CfgStringLua.Get(item.Value[13]);
                        tmp.Type          = item.Value[14];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "Heraldry");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareHeraldry>(3);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "Heraldry");
                }
            }
        }
Exemple #28
0
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataMasterHoly");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataMasterHoly = require 'Lua/Config/DataMasterHoly'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataMasterHoly");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareMasterHoly>();
                    foreach (var item in dic)
                    {
                        DeclareMasterHoly tmp = new DeclareMasterHoly();
                        tmp.ActiveAttribute = CfgStringLua.Get(item.Value[0]);
                        tmp.ActiveNeedValue = item.Value[1];
                        tmp.ActivePoint     = CfgStringLua.Get(item.Value[2]);
                        tmp.CanFree         = item.Value[3];
                        tmp.CanUpNum        = item.Value[4];
                        tmp.Describe        = CfgStringLua.Get(item.Value[5]);
                        tmp.Frame           = item.Value[6];
                        tmp.Group           = item.Value[7];
                        tmp.Icon            = item.Value[8];
                        tmp.Id           = item.Value[9];
                        tmp.Name         = CfgStringLua.Get(item.Value[10]);
                        tmp.SpecialAtt   = CfgStringLua.Get(item.Value[11]);
                        tmp.Type         = item.Value[12];
                        tmp.UpAttribute  = CfgStringLua.Get(item.Value[13]);
                        tmp.UpNeendValue = item.Value[14];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "MasterHoly");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareMasterHoly>();
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "MasterHoly");
                }
            }
        }
Exemple #29
0
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataElvesRune");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataElvesRune = require 'Lua/Config/DataElvesRune'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataElvesRune");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareElvesRune>(66);
                    foreach (var item in dic)
                    {
                        DeclareElvesRune tmp = new DeclareElvesRune();
                        tmp.AddAttribute  = CfgStringLua.Get(item.Value[0]);
                        tmp.BlessnumLimit = item.Value[1];
                        tmp.BlessnumMax   = item.Value[2];
                        tmp.BlessnumMin   = item.Value[3];
                        tmp.GoldNum       = item.Value[4];
                        tmp.ID            = item.Value[5];
                        tmp.ItemNum       = item.Value[6];
                        tmp.Name          = CfgStringLua.Get(item.Value[7]);
                        tmp.Notice        = item.Value[8];
                        tmp.Type          = item.Value[9];
                        tmp.UpItem        = item.Value[10];
                        tmp.UpNumMax      = item.Value[11];
                        tmp.UpNumMin      = item.Value[12];
                        tmp.UpProbability = item.Value[13];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "ElvesRune");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareElvesRune>(66);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "ElvesRune");
                }
            }
        }
        public static void SetData()
        {
            if (_dataCaches == null && LuaEnv.isLoadLuaCfg)
            {
                long startTime = DateTime.Now.Ticks;
                Dictionary <int, int[]> dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataMarriageRing");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataMarriageRing = require 'Lua/Config/DataMarriageRing'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataMarriageRing");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareMarriageRing>(9);
                    foreach (var item in dic)
                    {
                        DeclareMarriageRing tmp = new DeclareMarriageRing();
                        tmp.AddIntimacy = item.Value[0];
                        tmp.Attributes  = CfgStringLua.Get(item.Value[1]);
                        tmp.AttType     = item.Value[2];
                        tmp.BuffId      = item.Value[3];
                        tmp.Degree      = CfgStringLua.Get(item.Value[4]);
                        tmp.Dis         = CfgStringLua.Get(item.Value[5]);
                        tmp.Icon        = item.Value[6];
                        tmp.Level       = item.Value[7];
                        tmp.ModelId     = item.Value[8];
                        tmp.Name        = CfgStringLua.Get(item.Value[9]);
                        tmp.Radio       = item.Value[10];
                        tmp.SkillId     = item.Value[11];
                        tmp.UpGold      = item.Value[12];
                        tmp.UpNeedItem  = CfgStringLua.Get(item.Value[13]);

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "MarriageRing");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareMarriageRing>(9);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "MarriageRing");
                }
            }
        }