Exemple #1
0
        public static DeclareScuffleLevel Create(int in_degree, string in_first_award, string in_get_score, int in_get_title, int in_id, string in_king_ex_third_win, string in_king_first_lose, string in_king_first_win, string in_king_second_win, string in_king_seond_lose, string in_king_third_lose, string in_king_third_win, string in_name, int in_need_score, int in_res_icon, string in_res_tex, int in_star_num, string in_week_award)
        {
            DeclareScuffleLevel tmp = new DeclareScuffleLevel();

            tmp._degree            = in_degree;
            tmp._first_award       = in_first_award;
            tmp._get_score         = in_get_score;
            tmp._get_title         = in_get_title;
            tmp._id                = in_id;
            tmp._king_ex_third_win = in_king_ex_third_win;
            tmp._king_first_lose   = in_king_first_lose;
            tmp._king_first_win    = in_king_first_win;
            tmp._king_second_win   = in_king_second_win;
            tmp._king_seond_lose   = in_king_seond_lose;
            tmp._king_third_lose   = in_king_third_lose;
            tmp._king_third_win    = in_king_third_win;
            tmp._name              = in_name;
            tmp._need_score        = in_need_score;
            tmp._res_icon          = in_res_icon;
            tmp._res_tex           = in_res_tex;
            tmp._star_num          = in_star_num;
            tmp._week_award        = in_week_award;

            return(tmp);
        }
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[]> >("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 #3
0
 public static void Convert(Dictionary <int, DeclareScuffleLevel> data)
 {
     if (data == null)
     {
         return;
     }
     data.Clear();
     data.Add(1, DeclareScuffleLevel.Create(1, StringDefines.Key_20, StringDefines.Key_56190, 7, 1, StringDefines.Key_56191, StringDefines.Key_56192, StringDefines.Key_50002, StringDefines.Key_50002, StringDefines.Key_56192, StringDefines.Key_56192, StringDefines.Key_50002, StringDefines.Key_50084, 0, 1117, StringDefines.Key_11604, 1, StringDefines.Key_56193));
     data.Add(2, DeclareScuffleLevel.Create(1, StringDefines.Key_20, StringDefines.Key_56194, 7, 2, StringDefines.Key_56191, StringDefines.Key_56192, StringDefines.Key_50002, StringDefines.Key_50002, StringDefines.Key_56192, StringDefines.Key_56192, StringDefines.Key_50002, StringDefines.Key_50082, 65, 1117, StringDefines.Key_11604, 2, StringDefines.Key_56195));
     data.Add(3, DeclareScuffleLevel.Create(1, StringDefines.Key_20, StringDefines.Key_56196, 7, 3, StringDefines.Key_56191, StringDefines.Key_56192, StringDefines.Key_50002, StringDefines.Key_50002, StringDefines.Key_56192, StringDefines.Key_56192, StringDefines.Key_50002, StringDefines.Key_50080, 135, 1117, StringDefines.Key_11604, 3, StringDefines.Key_56197));
     data.Add(4, DeclareScuffleLevel.Create(1, StringDefines.Key_20, StringDefines.Key_56198, 7, 4, StringDefines.Key_56191, StringDefines.Key_56192, StringDefines.Key_50002, StringDefines.Key_50002, StringDefines.Key_56192, StringDefines.Key_56192, StringDefines.Key_50002, StringDefines.Key_50078, 235, 1117, StringDefines.Key_11604, 4, StringDefines.Key_56199));
     data.Add(5, DeclareScuffleLevel.Create(1, StringDefines.Key_20, StringDefines.Key_56200, 7, 5, StringDefines.Key_56191, StringDefines.Key_56192, StringDefines.Key_50002, StringDefines.Key_50002, StringDefines.Key_56192, StringDefines.Key_56192, StringDefines.Key_50002, StringDefines.Key_50076, 365, 1117, StringDefines.Key_11604, 5, StringDefines.Key_56201));
     data.Add(6, DeclareScuffleLevel.Create(2, StringDefines.Key_56202, StringDefines.Key_56203, 8, 6, StringDefines.Key_50023, StringDefines.Key_13650, StringDefines.Key_56204, StringDefines.Key_56204, StringDefines.Key_13650, StringDefines.Key_13650, StringDefines.Key_56204, StringDefines.Key_50094, 515, 1118, StringDefines.Key_11610, 1, StringDefines.Key_56205));
     data.Add(7, DeclareScuffleLevel.Create(2, StringDefines.Key_20, StringDefines.Key_56206, 8, 7, StringDefines.Key_50023, StringDefines.Key_13650, StringDefines.Key_56204, StringDefines.Key_56204, StringDefines.Key_13650, StringDefines.Key_13650, StringDefines.Key_56204, StringDefines.Key_50092, 695, 1118, StringDefines.Key_11610, 2, StringDefines.Key_56207));
     data.Add(8, DeclareScuffleLevel.Create(2, StringDefines.Key_20, StringDefines.Key_56208, 8, 8, StringDefines.Key_50023, StringDefines.Key_13650, StringDefines.Key_56204, StringDefines.Key_56204, StringDefines.Key_13650, StringDefines.Key_13650, StringDefines.Key_56204, StringDefines.Key_50090, 900, 1118, StringDefines.Key_11610, 3, StringDefines.Key_50013));
     data.Add(9, DeclareScuffleLevel.Create(2, StringDefines.Key_20, StringDefines.Key_56209, 8, 9, StringDefines.Key_50023, StringDefines.Key_13650, StringDefines.Key_56204, StringDefines.Key_56204, StringDefines.Key_13650, StringDefines.Key_13650, StringDefines.Key_56204, StringDefines.Key_50088, 1135, 1118, StringDefines.Key_11610, 4, StringDefines.Key_56210));
     data.Add(10, DeclareScuffleLevel.Create(2, StringDefines.Key_20, StringDefines.Key_56211, 8, 10, StringDefines.Key_50023, StringDefines.Key_13650, StringDefines.Key_56204, StringDefines.Key_56204, StringDefines.Key_13650, StringDefines.Key_13650, StringDefines.Key_56204, StringDefines.Key_50086, 1395, 1118, StringDefines.Key_11610, 5, StringDefines.Key_56212));
     data.Add(11, DeclareScuffleLevel.Create(3, StringDefines.Key_56213, StringDefines.Key_56214, 9, 11, StringDefines.Key_56215, StringDefines.Key_56216, StringDefines.Key_56217, StringDefines.Key_56217, StringDefines.Key_56216, StringDefines.Key_56216, StringDefines.Key_56217, StringDefines.Key_50104, 1680, 1119, StringDefines.Key_11616, 1, StringDefines.Key_56218));
     data.Add(12, DeclareScuffleLevel.Create(3, StringDefines.Key_20, StringDefines.Key_56219, 9, 12, StringDefines.Key_56215, StringDefines.Key_56216, StringDefines.Key_56217, StringDefines.Key_56217, StringDefines.Key_56216, StringDefines.Key_56216, StringDefines.Key_56217, StringDefines.Key_50102, 1995, 1119, StringDefines.Key_11616, 2, StringDefines.Key_56220));
     data.Add(13, DeclareScuffleLevel.Create(3, StringDefines.Key_20, StringDefines.Key_56221, 9, 13, StringDefines.Key_56215, StringDefines.Key_56216, StringDefines.Key_56217, StringDefines.Key_56217, StringDefines.Key_56216, StringDefines.Key_56216, StringDefines.Key_56217, StringDefines.Key_50100, 2330, 1119, StringDefines.Key_11616, 3, StringDefines.Key_56222));
     data.Add(14, DeclareScuffleLevel.Create(3, StringDefines.Key_20, StringDefines.Key_56223, 9, 14, StringDefines.Key_56215, StringDefines.Key_56216, StringDefines.Key_56217, StringDefines.Key_56217, StringDefines.Key_56216, StringDefines.Key_56216, StringDefines.Key_56217, StringDefines.Key_50098, 2700, 1119, StringDefines.Key_11616, 4, StringDefines.Key_56224));
     data.Add(15, DeclareScuffleLevel.Create(3, StringDefines.Key_20, StringDefines.Key_56225, 9, 15, StringDefines.Key_56215, StringDefines.Key_56216, StringDefines.Key_56217, StringDefines.Key_56217, StringDefines.Key_56216, StringDefines.Key_56216, StringDefines.Key_56217, StringDefines.Key_50096, 3090, 1119, StringDefines.Key_11616, 5, StringDefines.Key_56226));
     data.Add(16, DeclareScuffleLevel.Create(4, StringDefines.Key_56212, StringDefines.Key_56227, 10, 16, StringDefines.Key_56228, StringDefines.Key_56229, StringDefines.Key_50006, StringDefines.Key_50006, StringDefines.Key_56229, StringDefines.Key_56229, StringDefines.Key_50006, StringDefines.Key_50114, 3510, 1120, StringDefines.Key_11622, 1, StringDefines.Key_56230));
     data.Add(17, DeclareScuffleLevel.Create(4, StringDefines.Key_20, StringDefines.Key_56231, 10, 17, StringDefines.Key_56228, StringDefines.Key_56229, StringDefines.Key_50006, StringDefines.Key_50006, StringDefines.Key_56229, StringDefines.Key_56229, StringDefines.Key_50006, StringDefines.Key_50112, 3955, 1120, StringDefines.Key_11622, 2, StringDefines.Key_56232));
     data.Add(18, DeclareScuffleLevel.Create(4, StringDefines.Key_20, StringDefines.Key_56233, 10, 18, StringDefines.Key_56228, StringDefines.Key_56229, StringDefines.Key_50006, StringDefines.Key_50006, StringDefines.Key_56229, StringDefines.Key_56229, StringDefines.Key_50006, StringDefines.Key_50110, 4425, 1120, StringDefines.Key_11622, 3, StringDefines.Key_56234));
     data.Add(19, DeclareScuffleLevel.Create(4, StringDefines.Key_20, StringDefines.Key_56235, 10, 19, StringDefines.Key_56228, StringDefines.Key_56229, StringDefines.Key_50006, StringDefines.Key_50006, StringDefines.Key_56229, StringDefines.Key_56229, StringDefines.Key_50006, StringDefines.Key_50108, 4925, 1120, StringDefines.Key_11622, 4, StringDefines.Key_56236));
     data.Add(20, DeclareScuffleLevel.Create(4, StringDefines.Key_20, StringDefines.Key_56237, 10, 20, StringDefines.Key_56228, StringDefines.Key_56229, StringDefines.Key_50006, StringDefines.Key_50006, StringDefines.Key_56229, StringDefines.Key_56229, StringDefines.Key_50006, StringDefines.Key_50106, 5450, 1120, StringDefines.Key_11622, 5, StringDefines.Key_56238));
     data.Add(21, DeclareScuffleLevel.Create(5, StringDefines.Key_56239, StringDefines.Key_56240, 11, 21, StringDefines.Key_56241, StringDefines.Key_56242, StringDefines.Key_56243, StringDefines.Key_56243, StringDefines.Key_56242, StringDefines.Key_56242, StringDefines.Key_56243, StringDefines.Key_50124, 6005, 1121, StringDefines.Key_11628, 1, StringDefines.Key_56244));
     data.Add(22, DeclareScuffleLevel.Create(5, StringDefines.Key_20, StringDefines.Key_56245, 11, 22, StringDefines.Key_56241, StringDefines.Key_56242, StringDefines.Key_56243, StringDefines.Key_56243, StringDefines.Key_56242, StringDefines.Key_56242, StringDefines.Key_56243, StringDefines.Key_50122, 6580, 1121, StringDefines.Key_11628, 2, StringDefines.Key_56246));
     data.Add(23, DeclareScuffleLevel.Create(5, StringDefines.Key_20, StringDefines.Key_56247, 11, 23, StringDefines.Key_56241, StringDefines.Key_56242, StringDefines.Key_56243, StringDefines.Key_56243, StringDefines.Key_56242, StringDefines.Key_56242, StringDefines.Key_56243, StringDefines.Key_50120, 7185, 1121, StringDefines.Key_11628, 3, StringDefines.Key_56248));
     data.Add(24, DeclareScuffleLevel.Create(5, StringDefines.Key_20, StringDefines.Key_56249, 11, 24, StringDefines.Key_56241, StringDefines.Key_56242, StringDefines.Key_56243, StringDefines.Key_56243, StringDefines.Key_56242, StringDefines.Key_56242, StringDefines.Key_56243, StringDefines.Key_50118, 7820, 1121, StringDefines.Key_11628, 4, StringDefines.Key_56250));
     data.Add(25, DeclareScuffleLevel.Create(5, StringDefines.Key_20, StringDefines.Key_56251, 11, 25, StringDefines.Key_56241, StringDefines.Key_56242, StringDefines.Key_56243, StringDefines.Key_56243, StringDefines.Key_56242, StringDefines.Key_56242, StringDefines.Key_56243, StringDefines.Key_50116, 8475, 1121, StringDefines.Key_11628, 5, StringDefines.Key_56252));
     data.Add(26, DeclareScuffleLevel.Create(6, StringDefines.Key_56253, StringDefines.Key_56254, 12, 26, StringDefines.Key_56255, StringDefines.Key_50002, StringDefines.Key_56256, StringDefines.Key_56256, StringDefines.Key_50002, StringDefines.Key_50002, StringDefines.Key_56256, StringDefines.Key_56257, 9160, 1122, StringDefines.Key_11634, 1, StringDefines.Key_56258));
     data.Add(27, DeclareScuffleLevel.Create(6, StringDefines.Key_20, StringDefines.Key_56259, 12, 27, StringDefines.Key_56255, StringDefines.Key_50002, StringDefines.Key_56256, StringDefines.Key_56256, StringDefines.Key_50002, StringDefines.Key_50002, StringDefines.Key_56256, StringDefines.Key_56260, 9875, 1122, StringDefines.Key_11634, 2, StringDefines.Key_56261));
     data.Add(28, DeclareScuffleLevel.Create(6, StringDefines.Key_20, StringDefines.Key_56262, 12, 28, StringDefines.Key_56255, StringDefines.Key_50002, StringDefines.Key_56256, StringDefines.Key_56256, StringDefines.Key_50002, StringDefines.Key_50002, StringDefines.Key_56256, StringDefines.Key_56263, 10610, 1122, StringDefines.Key_11634, 3, StringDefines.Key_56264));
     data.Add(29, DeclareScuffleLevel.Create(6, StringDefines.Key_20, StringDefines.Key_56265, 12, 29, StringDefines.Key_56255, StringDefines.Key_50002, StringDefines.Key_56256, StringDefines.Key_56256, StringDefines.Key_50002, StringDefines.Key_50002, StringDefines.Key_56256, StringDefines.Key_56266, 11375, 1122, StringDefines.Key_11634, 4, StringDefines.Key_56267));
     data.Add(30, DeclareScuffleLevel.Create(6, StringDefines.Key_20, StringDefines.Key_56268, 12, 30, StringDefines.Key_56255, StringDefines.Key_50002, StringDefines.Key_56256, StringDefines.Key_56256, StringDefines.Key_50002, StringDefines.Key_50002, StringDefines.Key_56256, StringDefines.Key_56269, 12165, 1122, StringDefines.Key_11634, 5, StringDefines.Key_50023));
 }