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[]> >("DataCityWar");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataCityWar = require 'Lua/Config/DataCityWar'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataCityWar");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareCityWar>(4);
                    foreach (var item in dic)
                    {
                        DeclareCityWar tmp = new DeclareCityWar();
                        tmp.CloneID = item.Value[0];
                        tmp.Id      = item.Value[1];
                        tmp.Name    = CfgStringLua.Get(item.Value[2]);
                        tmp.ResTex  = CfgStringLua.Get(item.Value[3]);
                        tmp.Type    = item.Value[4];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "CityWar");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareCityWar>(4);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "CityWar");
                }
            }
        }
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[]> >("DataRechargeDailyTotal");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataRechargeDailyTotal = require 'Lua/Config/DataRechargeDailyTotal'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataRechargeDailyTotal");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareRechargeDailyTotal>(6);
                    foreach (var item in dic)
                    {
                        DeclareRechargeDailyTotal tmp = new DeclareRechargeDailyTotal();
                        tmp.Award    = CfgStringLua.Get(item.Value[0]);
                        tmp.Day      = item.Value[1];
                        tmp.ID       = item.Value[2];
                        tmp.Money    = item.Value[3];
                        tmp.Position = item.Value[4];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "RechargeDailyTotal");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareRechargeDailyTotal>(6);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "RechargeDailyTotal");
                }
            }
        }
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[]> >("DataTimelimitgift");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataTimelimitgift = require 'Lua/Config/DataTimelimitgift'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataTimelimitgift");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareTimelimitgift>(14);
                    foreach (var item in dic)
                    {
                        DeclareTimelimitgift tmp = new DeclareTimelimitgift();
                        tmp.Gold  = item.Value[0];
                        tmp.Id    = item.Value[1];
                        tmp.Info  = CfgStringLua.Get(item.Value[2]);
                        tmp.Name  = CfgStringLua.Get(item.Value[3]);
                        tmp.Title = CfgStringLua.Get(item.Value[4]);

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "Timelimitgift");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareTimelimitgift>(14);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "Timelimitgift");
                }
            }
        }
        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[]> >("DataGuildFightPersonal");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataGuildFightPersonal = require 'Lua/Config/DataGuildFightPersonal'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataGuildFightPersonal");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareGuildFightPersonal>(16);
                    foreach (var item in dic)
                    {
                        DeclareGuildFightPersonal tmp = new DeclareGuildFightPersonal();
                        tmp.Area = item.Value[0];
                        tmp.Num  = item.Value[1];
                        tmp.RankingIntervalMax  = item.Value[2];
                        tmp.RankingIntervalMini = item.Value[3];
                        tmp.RewardItem          = CfgStringLua.Get(item.Value[4]);

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "GuildFightPersonal");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareGuildFightPersonal>(16);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "GuildFightPersonal");
                }
            }
        }
Exemple #5
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[]> >("DataSyntheticSuitStone");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataSyntheticSuitStone = require 'Lua/Config/DataSyntheticSuitStone'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataSyntheticSuitStone");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareSyntheticSuitStone>(12);
                    foreach (var item in dic)
                    {
                        DeclareSyntheticSuitStone tmp = new DeclareSyntheticSuitStone();
                        tmp.Id        = item.Value[0];
                        tmp.Name      = CfgStringLua.Get(item.Value[1]);
                        tmp.Need      = CfgStringLua.Get(item.Value[2]);
                        tmp.NeedMoney = item.Value[3];
                        tmp.Type      = item.Value[4];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "SyntheticSuitStone");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareSyntheticSuitStone>(12);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "SyntheticSuitStone");
                }
            }
        }
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[]> >("DataPetSeal");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataPetSeal = require 'Lua/Config/DataPetSeal'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataPetSeal");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclarePetSeal>(1000);
                    foreach (var item in dic)
                    {
                        DeclarePetSeal tmp = new DeclarePetSeal();
                        tmp.SeaAttribute = CfgStringLua.Get(item.Value[0]);
                        tmp.SeaLevel     = item.Value[1];
                        tmp.SeaMaterial  = item.Value[2];
                        tmp.Skill        = item.Value[3];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "PetSeal");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclarePetSeal>(1000);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "PetSeal");
                }
            }
        }
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[]> >("DataUpdateReward");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataUpdateReward = require 'Lua/Config/DataUpdateReward'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataUpdateReward");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareUpdateReward>(1);
                    foreach (var item in dic)
                    {
                        DeclareUpdateReward tmp = new DeclareUpdateReward();
                        tmp.NeedUpdate   = item.Value[0];
                        tmp.Num          = item.Value[1];
                        tmp.UpdateInfo   = CfgStringLua.Get(item.Value[2]);
                        tmp.UpdateReward = CfgStringLua.Get(item.Value[3]);

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "UpdateReward");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareUpdateReward>(1);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "UpdateReward");
                }
            }
        }
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[]> >("DataActiveAttribute");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataActiveAttribute = require 'Lua/Config/DataActiveAttribute'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataActiveAttribute");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareActiveAttribute>();
                    foreach (var item in dic)
                    {
                        DeclareActiveAttribute tmp = new DeclareActiveAttribute();
                        tmp.Att   = CfgStringLua.Get(item.Value[0]);
                        tmp.Level = item.Value[1];
                        tmp.Name  = CfgStringLua.Get(item.Value[2]);
                        tmp.Radio = item.Value[3];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "ActiveAttribute");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareActiveAttribute>();
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "ActiveAttribute");
                }
            }
        }
        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[]> >("DataGmMainFunction");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataGmMainFunction = require 'Lua/Config/DataGmMainFunction'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataGmMainFunction");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareGmMainFunction>(29);
                    foreach (var item in dic)
                    {
                        DeclareGmMainFunction tmp = new DeclareGmMainFunction();
                        tmp.BranchFunction = CfgStringLua.Get(item.Value[0]);
                        tmp.Icon           = item.Value[1];
                        tmp.Id             = item.Value[2];
                        tmp.Name           = CfgStringLua.Get(item.Value[3]);

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "GmMainFunction");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareGmMainFunction>(29);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "GmMainFunction");
                }
            }
        }
Exemple #10
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[]> >("DataHorseStar");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataHorseStar = require 'Lua/Config/DataHorseStar'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataHorseStar");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <string, DeclareHorseStar>(110);
                    foreach (var item in dic)
                    {
                        DeclareHorseStar tmp = new DeclareHorseStar();
                        tmp.Attr       = CfgStringLua.Get(item.Value[0]);
                        tmp.Id         = CfgStringLua.Get(item.Value[1]);
                        tmp.Notice     = item.Value[2];
                        tmp.UpItemInfo = CfgStringLua.Get(item.Value[3]);

                        _dataCaches.Add(CfgStringLua.Get(item.Key), tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "HorseStar");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <string, DeclareHorseStar>(110);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "HorseStar");
                }
            }
        }
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[]> >("DataComboKill");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataComboKill = require 'Lua/Config/DataComboKill'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataComboKill");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareComboKill>(7);
                    foreach (var item in dic)
                    {
                        DeclareComboKill tmp = new DeclareComboKill();
                        tmp.ComboKillScore = item.Value[0];
                        tmp.Count          = item.Value[1];
                        tmp.ShutDownScore  = item.Value[2];
                        tmp.Title          = CfgStringLua.Get(item.Value[3]);

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "ComboKill");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareComboKill>(7);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "ComboKill");
                }
            }
        }
        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[]> >("DataGrowthFundAll");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataGrowthFundAll = require 'Lua/Config/DataGrowthFundAll'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataGrowthFundAll");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareGrowthFundAll>(6);
                    foreach (var item in dic)
                    {
                        DeclareGrowthFundAll tmp = new DeclareGrowthFundAll();
                        tmp.Award         = CfgStringLua.Get(item.Value[0]);
                        tmp.Number        = item.Value[1];
                        tmp.NumberUp      = item.Value[2];
                        tmp.RenovateBegin = item.Value[3];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "GrowthFundAll");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareGrowthFundAll>(6);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "GrowthFundAll");
                }
            }
        }
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[]> >("DataKaifuGuildlStarcraft");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataKaifuGuildlStarcraft = require 'Lua/Config/DataKaifuGuildlStarcraft'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataKaifuGuildlStarcraft");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareKaifuGuildlStarcraft>(3);
                    foreach (var item in dic)
                    {
                        DeclareKaifuGuildlStarcraft tmp = new DeclareKaifuGuildlStarcraft();
                        tmp.ID       = item.Value[0];
                        tmp.Name     = CfgStringLua.Get(item.Value[1]);
                        tmp.Position = item.Value[2];
                        tmp.Reward   = CfgStringLua.Get(item.Value[3]);

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "KaifuGuildlStarcraft");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareKaifuGuildlStarcraft>(3);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "KaifuGuildlStarcraft");
                }
            }
        }
        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[]> >("DataAttributeAdd");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataAttributeAdd = require 'Lua/Config/DataAttributeAdd'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataAttributeAdd");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareAttributeAdd>(80);
                    foreach (var item in dic)
                    {
                        DeclareAttributeAdd tmp = new DeclareAttributeAdd();
                        tmp.Id          = item.Value[0];
                        tmp.Name        = CfgStringLua.Get(item.Value[1]);
                        tmp.ShowPercent = item.Value[2];
                        tmp.Variable    = item.Value[3];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "AttributeAdd");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareAttributeAdd>(80);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "AttributeAdd");
                }
            }
        }
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[]> >("DataFightingSoulLevel");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataFightingSoulLevel = require 'Lua/Config/DataFightingSoulLevel'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataFightingSoulLevel");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareFightingSoulLevel>(250);
                    foreach (var item in dic)
                    {
                        DeclareFightingSoulLevel tmp = new DeclareFightingSoulLevel();
                        tmp.Id              = item.Value[0];
                        tmp.NeedExp         = CfgStringLua.Get(item.Value[1]);
                        tmp.NeedPlayerLevel = item.Value[2];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "FightingSoulLevel");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareFightingSoulLevel>(250);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "FightingSoulLevel");
                }
            }
        }
Exemple #16
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[]> >("DataSevendayLogin");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataSevendayLogin = require 'Lua/Config/DataSevendayLogin'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataSevendayLogin");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareSevendayLogin>(7);
                    foreach (var item in dic)
                    {
                        DeclareSevendayLogin tmp = new DeclareSevendayLogin();
                        tmp.Award = CfgStringLua.Get(item.Value[0]);
                        tmp.Day   = item.Value[1];
                        tmp.Equip = CfgStringLua.Get(item.Value[2]);

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "SevendayLogin");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareSevendayLogin>(7);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "SevendayLogin");
                }
            }
        }
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[]> >("DataPrayCost");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataPrayCost = require 'Lua/Config/DataPrayCost'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataPrayCost");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclarePrayCost>(30);
                    foreach (var item in dic)
                    {
                        DeclarePrayCost tmp = new DeclarePrayCost();
                        tmp.Num           = item.Value[0];
                        tmp.PrayExpCost   = CfgStringLua.Get(item.Value[1]);
                        tmp.PrayMoneyCost = CfgStringLua.Get(item.Value[2]);

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "PrayCost");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclarePrayCost>(30);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "PrayCost");
                }
            }
        }
Exemple #18
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[]> >("DataMilitaryRankTask");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataMilitaryRankTask = require 'Lua/Config/DataMilitaryRankTask'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataMilitaryRankTask");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareMilitaryRankTask>(10);
                    foreach (var item in dic)
                    {
                        DeclareMilitaryRankTask tmp = new DeclareMilitaryRankTask();
                        tmp.Award    = CfgStringLua.Get(item.Value[0]);
                        tmp.Id       = item.Value[1];
                        tmp.NeedKill = item.Value[2];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "MilitaryRankTask");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareMilitaryRankTask>(10);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "MilitaryRankTask");
                }
            }
        }
        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[]> >("DataHorseMythicalLink");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataHorseMythicalLink = require 'Lua/Config/DataHorseMythicalLink'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataHorseMythicalLink");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareHorseMythicalLink>(1);
                    foreach (var item in dic)
                    {
                        DeclareHorseMythicalLink tmp = new DeclareHorseMythicalLink();
                        tmp.Attribute = CfgStringLua.Get(item.Value[0]);
                        tmp.Id        = item.Value[1];
                        tmp.Link      = CfgStringLua.Get(item.Value[2]);

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "HorseMythicalLink");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareHorseMythicalLink>(1);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "HorseMythicalLink");
                }
            }
        }
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[]> >("DataMelting");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataMelting = require 'Lua/Config/DataMelting'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataMelting");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareMelting>(280);
                    foreach (var item in dic)
                    {
                        DeclareMelting tmp = new DeclareMelting();
                        tmp.ClientShowItem = CfgStringLua.Get(item.Value[0]);
                        tmp.Id             = item.Value[1];
                        tmp.SingleAward    = CfgStringLua.Get(item.Value[2]);

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "Melting");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareMelting>(280);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "Melting");
                }
            }
        }
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[]> >("DataRandomName");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataRandomName = require 'Lua/Config/DataRandomName'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataRandomName");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareRandomName>(386);
                    foreach (var item in dic)
                    {
                        DeclareRandomName tmp = new DeclareRandomName();
                        tmp.QId    = item.Value[0];
                        tmp.QType  = item.Value[1];
                        tmp.QValue = CfgStringLua.Get(item.Value[2]);

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "RandomName");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareRandomName>(386);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "RandomName");
                }
            }
        }
        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[]> >("DataShieldingSymbol");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataShieldingSymbol = require 'Lua/Config/DataShieldingSymbol'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataShieldingSymbol");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareShieldingSymbol>(59);
                    foreach (var item in dic)
                    {
                        DeclareShieldingSymbol tmp = new DeclareShieldingSymbol();
                        tmp.Id   = item.Value[0];
                        tmp.Type = CfgStringLua.Get(item.Value[1]);

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "ShieldingSymbol");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareShieldingSymbol>(59);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "ShieldingSymbol");
                }
            }
        }
        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[]> >("DataChangejobStr");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataChangejobStr = require 'Lua/Config/DataChangejobStr'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataChangejobStr");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareChangejobStr>(12);
                    foreach (var item in dic)
                    {
                        DeclareChangejobStr tmp = new DeclareChangejobStr();
                        tmp.ID       = item.Value[0];
                        tmp.Language = CfgStringLua.Get(item.Value[1]);

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "ChangejobStr");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareChangejobStr>(12);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "ChangejobStr");
                }
            }
        }
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[]> >("DataWingInfo");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataWingInfo = require 'Lua/Config/DataWingInfo'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataWingInfo");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareWingInfo>(14);
                    foreach (var item in dic)
                    {
                        DeclareWingInfo tmp = new DeclareWingInfo();
                        tmp.ConditionInfo = CfgStringLua.Get(item.Value[0]);
                        tmp.Id            = item.Value[1];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "WingInfo");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareWingInfo>(14);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "WingInfo");
                }
            }
        }
Exemple #25
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[]> >("DataMonster");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataMonster = require 'Lua/Config/DataMonster'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataMonster");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareMonster>(6774);
                    foreach (var item in dic)
                    {
                        DeclareMonster tmp = new DeclareMonster();
                        tmp.Armor          = item.Value[0];
                        tmp.ArmorIf        = item.Value[1];
                        tmp.AttackType     = item.Value[2];
                        tmp.AttributeValue = CfgStringLua.Get(item.Value[3]);
                        tmp.Blood          = item.Value[4];
                        tmp.BrithVfx       = item.Value[5];
                        tmp.Camp           = item.Value[6];
                        tmp.CanBeSelect    = item.Value[7];
                        tmp.DamageInfo     = CfgStringLua.Get(item.Value[8]);
                        tmp.DeadFeature    = item.Value[9];
                        tmp.DeadHitFly     = item.Value[10];
                        tmp.Dialog         = CfgStringLua.Get(item.Value[11]);
                        tmp.DieSoundid     = item.Value[12];
                        tmp.Exp            = item.Value[13];
                        tmp.HitFlyPercent  = item.Value[14];
                        tmp.HPNum          = item.Value[15];
                        tmp.Icon           = item.Value[16];
                        tmp.Id             = item.Value[17];
                        tmp.Level          = item.Value[18];
                        tmp.MaxHp          = item.Value[19];
                        tmp.MonsterType    = item.Value[20];
                        tmp.Name           = CfgStringLua.Get(item.Value[21]);
                        tmp.PlayerModel    = item.Value[22];
                        tmp.PlayerModelRes = CfgStringLua.Get(item.Value[23]);
                        tmp.Res            = item.Value[24];
                        tmp.Score          = item.Value[25];
                        tmp.SizeScale      = item.Value[26];
                        tmp.StrikeDistance = item.Value[27];
                        tmp.TaskCinematic  = CfgStringLua.Get(item.Value[28]);
                        tmp.TaskShow       = CfgStringLua.Get(item.Value[29]);
                        tmp.Title          = CfgStringLua.Get(item.Value[30]);
                        tmp.UseSkills      = CfgStringLua.Get(item.Value[31]);

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "Monster");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareMonster>(6774);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "Monster");
                }
            }
        }
Exemple #26
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[]> >("DataEquip");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataEquip = require 'Lua/Config/DataEquip'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataEquip");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareEquip>(5910);
                    foreach (var item in dic)
                    {
                        DeclareEquip tmp = new DeclareEquip();
                        tmp.Attribute1       = CfgStringLua.Get(item.Value[0]);
                        tmp.Bind             = item.Value[1];
                        tmp.Classlevel       = item.Value[2];
                        tmp.Confirm          = item.Value[3];
                        tmp.Describe         = CfgStringLua.Get(item.Value[4]);
                        tmp.DiamondNumber    = item.Value[5];
                        tmp.DropModel        = item.Value[6];
                        tmp.Effect           = item.Value[7];
                        tmp.EquipDismantling = item.Value[8];
                        tmp.Gender           = item.Value[9];
                        tmp.Grade            = item.Value[10];
                        tmp.Icon             = item.Value[11];
                        tmp.Id                  = item.Value[12];
                        tmp.IfCommon            = item.Value[13];
                        tmp.IsCheck             = item.Value[14];
                        tmp.Level               = item.Value[15];
                        tmp.Levelmax            = item.Value[16];
                        tmp.MilitaryRank        = item.Value[17];
                        tmp.ModelId             = item.Value[18];
                        tmp.Name                = CfgStringLua.Get(item.Value[19]);
                        tmp.Part                = item.Value[20];
                        tmp.Price               = CfgStringLua.Get(item.Value[21]);
                        tmp.PvpProduceEquip     = item.Value[22];
                        tmp.Quality             = item.Value[23];
                        tmp.Quality1            = CfgStringLua.Get(item.Value[24]);
                        tmp.Quality2            = CfgStringLua.Get(item.Value[25]);
                        tmp.Quality3            = CfgStringLua.Get(item.Value[26]);
                        tmp.Quality4            = CfgStringLua.Get(item.Value[27]);
                        tmp.RecommendedTips     = CfgStringLua.Get(item.Value[28]);
                        tmp.RefiningConsumption = CfgStringLua.Get(item.Value[29]);
                        tmp.RefiningProbability = item.Value[30];
                        tmp.ResetProps          = CfgStringLua.Get(item.Value[31]);
                        tmp.Score               = item.Value[32];
                        tmp.SealExp             = item.Value[33];
                        tmp.SkillBandom         = CfgStringLua.Get(item.Value[34]);
                        tmp.SkillLock           = CfgStringLua.Get(item.Value[35]);
                        tmp.SkillNumber         = item.Value[36];
                        tmp.Strengthening       = CfgStringLua.Get(item.Value[37]);
                        tmp.TechnicalQuality    = CfgStringLua.Get(item.Value[38]);
                        tmp.Type                = item.Value[39];
                        tmp.Type1               = item.Value[40];
                        tmp.WarehouseIntegral   = item.Value[41];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "Equip");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareEquip>(5910);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "Equip");
                }
            }
        }
        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[]> >("DataActiveBehavior");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataActiveBehavior = require 'Lua/Config/DataActiveBehavior'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataActiveBehavior");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareActiveBehavior>(31);
                    foreach (var item in dic)
                    {
                        DeclareActiveBehavior tmp = new DeclareActiveBehavior();
                        tmp.ActiveValue = item.Value[0];
                        tmp.Canshow     = item.Value[1];
                        tmp.CloneID     = item.Value[2];
                        tmp.Condition   = CfgStringLua.Get(item.Value[3]);
                        tmp.Conditions  = item.Value[4];
                        tmp.Description = CfgStringLua.Get(item.Value[5]);
                        tmp.FoundTeam   = CfgStringLua.Get(item.Value[6]);
                        tmp.Icon        = item.Value[7];
                        tmp.Id          = item.Value[8];
                        tmp.Level       = CfgStringLua.Get(item.Value[9]);
                        tmp.MaxValue    = item.Value[10];
                        tmp.Name        = CfgStringLua.Get(item.Value[11]);
                        tmp.NpcID       = CfgStringLua.Get(item.Value[12]);
                        tmp.OpenLevel   = item.Value[13];
                        tmp.OpenTime    = CfgStringLua.Get(item.Value[14]);
                        tmp.OpenTimeDes = CfgStringLua.Get(item.Value[15]);
                        tmp.OpenType    = item.Value[16];
                        tmp.OpenUI      = item.Value[17];
                        tmp.Production  = CfgStringLua.Get(item.Value[18]);
                        tmp.Refresh     = item.Value[19];
                        tmp.Reward      = CfgStringLua.Get(item.Value[20]);
                        tmp.Sort        = item.Value[21];
                        tmp.Star        = item.Value[22];
                        tmp.Task        = CfgStringLua.Get(item.Value[23]);
                        tmp.Team        = CfgStringLua.Get(item.Value[24]);
                        tmp.Time        = CfgStringLua.Get(item.Value[25]);
                        tmp.Type        = CfgStringLua.Get(item.Value[26]);

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "ActiveBehavior");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareActiveBehavior>(31);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "ActiveBehavior");
                }
            }
        }
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[]> >("DataClientDrop");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataClientDrop = require 'Lua/Config/DataClientDrop'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataClientDrop");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareClientDrop>(143);
                    foreach (var item in dic)
                    {
                        DeclareClientDrop tmp = new DeclareClientDrop();
                        tmp.Distribution1     = item.Value[0];
                        tmp.Distribution10    = item.Value[1];
                        tmp.Distribution11    = item.Value[2];
                        tmp.Distribution2     = item.Value[3];
                        tmp.Distribution3     = item.Value[4];
                        tmp.Distribution4     = item.Value[5];
                        tmp.Distribution5     = item.Value[6];
                        tmp.Distribution6     = item.Value[7];
                        tmp.Distribution7     = item.Value[8];
                        tmp.Distribution8     = item.Value[9];
                        tmp.Distribution9     = item.Value[10];
                        tmp.DropId1           = CfgStringLua.Get(item.Value[11]);
                        tmp.DropId10          = CfgStringLua.Get(item.Value[12]);
                        tmp.DropId11          = CfgStringLua.Get(item.Value[13]);
                        tmp.DropId2           = CfgStringLua.Get(item.Value[14]);
                        tmp.DropId3           = CfgStringLua.Get(item.Value[15]);
                        tmp.DropId4           = CfgStringLua.Get(item.Value[16]);
                        tmp.DropId5           = CfgStringLua.Get(item.Value[17]);
                        tmp.DropId6           = CfgStringLua.Get(item.Value[18]);
                        tmp.DropId7           = CfgStringLua.Get(item.Value[19]);
                        tmp.DropId8           = CfgStringLua.Get(item.Value[20]);
                        tmp.DropId9           = CfgStringLua.Get(item.Value[21]);
                        tmp.DropProbability1  = item.Value[22];
                        tmp.DropProbability10 = item.Value[23];
                        tmp.DropProbability11 = item.Value[24];
                        tmp.DropProbability2  = item.Value[25];
                        tmp.DropProbability3  = item.Value[26];
                        tmp.DropProbability4  = item.Value[27];
                        tmp.DropProbability5  = item.Value[28];
                        tmp.DropProbability6  = item.Value[29];
                        tmp.DropProbability7  = item.Value[30];
                        tmp.DropProbability8  = item.Value[31];
                        tmp.DropProbability9  = item.Value[32];
                        tmp.DropType1         = item.Value[33];
                        tmp.DropType10        = item.Value[34];
                        tmp.DropType11        = item.Value[35];
                        tmp.DropType2         = item.Value[36];
                        tmp.DropType3         = item.Value[37];
                        tmp.DropType4         = item.Value[38];
                        tmp.DropType5         = item.Value[39];
                        tmp.DropType6         = item.Value[40];
                        tmp.DropType7         = item.Value[41];
                        tmp.DropType8         = item.Value[42];
                        tmp.DropType9         = item.Value[43];
                        tmp.Id             = item.Value[44];
                        tmp.Money          = CfgStringLua.Get(item.Value[45]);
                        tmp.ReduceActLevel = item.Value[46];
                        tmp.SharedDrop     = item.Value[47];
                        tmp.Task           = CfgStringLua.Get(item.Value[48]);
                        tmp.Type           = item.Value[49];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "ClientDrop");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareClientDrop>(143);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "ClientDrop");
                }
            }
        }
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[]> >("DataVipLevel");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataVipLevel = require 'Lua/Config/DataVipLevel'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataVipLevel");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareVipLevel>(10);
                    foreach (var item in dic)
                    {
                        DeclareVipLevel tmp = new DeclareVipLevel();
                        tmp.AddBuyCount        = CfgStringLua.Get(item.Value[0]);
                        tmp.AddItemUseCount    = CfgStringLua.Get(item.Value[1]);
                        tmp.BossElementsTemple = item.Value[2];
                        tmp.BossGodCloneNum    = item.Value[3];
                        tmp.BossGodRuinsNum    = item.Value[4];
                        tmp.BossHome           = item.Value[5];
                        tmp.BossPersonalNum    = item.Value[6];
                        tmp.BuffID             = item.Value[7];
                        tmp.CanFreeTranspot    = item.Value[8];
                        tmp.CanSell            = item.Value[9];
                        tmp.CanSkipCloneStory  = item.Value[10];
                        tmp.CloneBombing       = item.Value[11];
                        tmp.CloneExpNum        = item.Value[12];
                        tmp.CloneManyPeople    = item.Value[13];
                        tmp.CloneStoryNum      = item.Value[14];
                        tmp.CloneTrial         = item.Value[15];
                        tmp.Des                 = CfgStringLua.Get(item.Value[16]);
                        tmp.Equip               = CfgStringLua.Get(item.Value[17]);
                        tmp.Gift                = CfgStringLua.Get(item.Value[18]);
                        tmp.HearseDiftNum       = item.Value[19];
                        tmp.Level               = item.Value[20];
                        tmp.NeedSpend           = item.Value[21];
                        tmp.PrayExpNum          = item.Value[22];
                        tmp.PrayMoneyCritChance = item.Value[23];
                        tmp.PrayMoneyNum        = item.Value[24];
                        tmp.TitleID             = item.Value[25];
                        tmp.TitleIDtime         = item.Value[26];
                        tmp.VipOverTime         = item.Value[27];
                        tmp.YingLingDianNum     = item.Value[28];
                        tmp.YyHuanJingNum       = item.Value[29];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "VipLevel");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareVipLevel>(10);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "VipLevel");
                }
            }
        }
Exemple #30
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[]> >("DataTaskLine");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataTaskLine = require 'Lua/Config/DataTaskLine'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataTaskLine");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareTaskLine>(43);
                    foreach (var item in dic)
                    {
                        DeclareTaskLine tmp = new DeclareTaskLine();
                        tmp.ConditionsDescribe     = CfgStringLua.Get(item.Value[0]);
                        tmp.ConditionsDescribeOver = CfgStringLua.Get(item.Value[1]);
                        tmp.ConditionsValue        = CfgStringLua.Get(item.Value[2]);
                        tmp.Endpath        = CfgStringLua.Get(item.Value[3]);
                        tmp.Equip          = CfgStringLua.Get(item.Value[4]);
                        tmp.EquipHide      = CfgStringLua.Get(item.Value[5]);
                        tmp.GainConditions = item.Value[6];
                        tmp.Loop           = item.Value[7];
                        tmp.Name           = CfgStringLua.Get(item.Value[8]);
                        tmp.OpenPanel      = item.Value[9];
                        tmp.OpenPanelParam = item.Value[10];
                        tmp.PathMap        = item.Value[11];
                        tmp.PostTaskId     = item.Value[12];
                        tmp.PromptIcon     = item.Value[13];
                        tmp.Rewards        = CfgStringLua.Get(item.Value[14]);
                        tmp.RewardsHide    = CfgStringLua.Get(item.Value[15]);
                        tmp.SetActBranch   = CfgStringLua.Get(item.Value[16]);
                        tmp.SetActSkill    = CfgStringLua.Get(item.Value[17]);
                        tmp.TapeName       = CfgStringLua.Get(item.Value[18]);
                        tmp.TapeID         = item.Value[19];
                        tmp.Target         = CfgStringLua.Get(item.Value[20]);
                        tmp.TaskTalkEnd    = item.Value[21];
                        tmp.TaskTalkStart  = item.Value[22];
                        tmp.TaskID         = item.Value[23];
                        tmp.TsakDescribe   = CfgStringLua.Get(item.Value[24]);
                        tmp.Type           = item.Value[25];

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