示例#1
0
        public static DeclarePictureTitle Create(string in_active_desc, int in_canShow, int in_id, string in_name, int in_open_func, int in_open_func_param, string in_property, int in_textrue)
        {
            DeclarePictureTitle tmp = new DeclarePictureTitle();

            tmp._active_desc     = in_active_desc;
            tmp._canShow         = in_canShow;
            tmp._id              = in_id;
            tmp._name            = in_name;
            tmp._open_func       = in_open_func;
            tmp._open_func_param = in_open_func_param;
            tmp._property        = in_property;
            tmp._textrue         = in_textrue;

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

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclarePictureTitle>(83);
                    foreach (var item in dic)
                    {
                        DeclarePictureTitle tmp = new DeclarePictureTitle();
                        tmp.ActiveDesc    = CfgStringLua.Get(item.Value[0]);
                        tmp.CanShow       = item.Value[1];
                        tmp.Id            = item.Value[2];
                        tmp.Name          = CfgStringLua.Get(item.Value[3]);
                        tmp.OpenFunc      = item.Value[4];
                        tmp.OpenFuncParam = item.Value[5];
                        tmp.Property      = CfgStringLua.Get(item.Value[6]);
                        tmp.Textrue       = item.Value[7];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "PictureTitle");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclarePictureTitle>(83);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "PictureTitle");
                }
            }
        }
示例#3
0
 public static void Convert(Dictionary <int, DeclarePictureTitle> data)
 {
     if (data == null)
     {
         return;
     }
     data.Clear();
     data.Add(1, DeclarePictureTitle.Create(StringDefines.Key_41908, 1, 1, StringDefines.Key_15598, 2265000, 0, StringDefines.Key_41909, 40));
     data.Add(2, DeclarePictureTitle.Create(StringDefines.Key_41910, 1, 2, StringDefines.Key_15600, 2265000, 0, StringDefines.Key_41911, 41));
     data.Add(3, DeclarePictureTitle.Create(StringDefines.Key_41912, 1, 3, StringDefines.Key_15602, 2265000, 0, StringDefines.Key_41913, 42));
     data.Add(4, DeclarePictureTitle.Create(StringDefines.Key_41914, 1, 4, StringDefines.Key_15604, 2265000, 0, StringDefines.Key_41915, 43));
     data.Add(5, DeclarePictureTitle.Create(StringDefines.Key_41916, 1, 5, StringDefines.Key_15606, 2265000, 0, StringDefines.Key_41917, 44));
     data.Add(6, DeclarePictureTitle.Create(StringDefines.Key_41918, 0, 6, StringDefines.Key_15594, 1053000, 0, StringDefines.Key_41919, 28));
     data.Add(7, DeclarePictureTitle.Create(StringDefines.Key_41920, 0, 7, StringDefines.Key_15566, 1053000, 0, StringDefines.Key_41921, 8));
     data.Add(8, DeclarePictureTitle.Create(StringDefines.Key_41922, 0, 8, StringDefines.Key_15569, 1053000, 0, StringDefines.Key_41923, 19));
     data.Add(9, DeclarePictureTitle.Create(StringDefines.Key_41924, 0, 9, StringDefines.Key_15572, 1053000, 0, StringDefines.Key_41925, 13));
     data.Add(10, DeclarePictureTitle.Create(StringDefines.Key_41926, 0, 10, StringDefines.Key_15575, 1053000, 0, StringDefines.Key_41927, 17));
     data.Add(11, DeclarePictureTitle.Create(StringDefines.Key_41928, 0, 11, StringDefines.Key_15581, 1053000, 0, StringDefines.Key_41929, 10));
     data.Add(12, DeclarePictureTitle.Create(StringDefines.Key_41930, 1, 12, StringDefines.Key_15584, 54400, 0, StringDefines.Key_41931, 1));
     data.Add(13, DeclarePictureTitle.Create(StringDefines.Key_41932, 1, 13, StringDefines.Key_41933, 54400, 0, StringDefines.Key_41934, 20));
     data.Add(14, DeclarePictureTitle.Create(StringDefines.Key_41935, 1, 14, StringDefines.Key_15578, 54400, 0, StringDefines.Key_41936, 31));
     data.Add(15, DeclarePictureTitle.Create(StringDefines.Key_41937, 1, 15, StringDefines.Key_15592, 1080000, 0, StringDefines.Key_41938, 38));
     data.Add(16, DeclarePictureTitle.Create(StringDefines.Key_41939, 0, 16, StringDefines.Key_15596, 1080000, 0, StringDefines.Key_41938, 39));
     data.Add(17, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 17, StringDefines.Key_15586, 0, 0, StringDefines.Key_34411, 25));
     data.Add(18, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 18, StringDefines.Key_15588, 1056000, 0, StringDefines.Key_41941, 16));
     data.Add(19, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 19, StringDefines.Key_15590, 0, 0, StringDefines.Key_41942, 35));
     data.Add(20, DeclarePictureTitle.Create(StringDefines.Key_41943, 1, 20, StringDefines.Key_41944, 1175300, 0, StringDefines.Key_41945, 36));
     data.Add(21, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 21, StringDefines.Key_41946, 0, 0, StringDefines.Key_41947, 11));
     data.Add(22, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 22, StringDefines.Key_41948, 0, 0, StringDefines.Key_41949, 37));
     data.Add(23, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 23, StringDefines.Key_41950, 0, 0, StringDefines.Key_41951, 4));
     data.Add(24, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 24, StringDefines.Key_41952, 0, 0, StringDefines.Key_41953, 6));
     data.Add(25, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 25, StringDefines.Key_41954, 0, 0, StringDefines.Key_41955, 14));
     data.Add(26, DeclarePictureTitle.Create(StringDefines.Key_41956, 1, 26, StringDefines.Key_41957, 1054000, 0, StringDefines.Key_41911, 22));
     data.Add(27, DeclarePictureTitle.Create(StringDefines.Key_41958, 1, 27, StringDefines.Key_41959, 1054000, 0, StringDefines.Key_41960, 24));
     data.Add(28, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 28, StringDefines.Key_41961, 0, 0, StringDefines.Key_41962, 29));
     data.Add(29, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 29, StringDefines.Key_41963, 0, 0, StringDefines.Key_41964, 21));
     data.Add(30, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 30, StringDefines.Key_41965, 0, 0, StringDefines.Key_41966, 9));
     data.Add(31, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 31, StringDefines.Key_41967, 0, 0, StringDefines.Key_41968, 27));
     data.Add(32, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 32, StringDefines.Key_41969, 0, 0, StringDefines.Key_41970, 3));
     data.Add(33, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 33, StringDefines.Key_41971, 0, 0, StringDefines.Key_41972, 18));
     data.Add(34, DeclarePictureTitle.Create(StringDefines.Key_41973, 1, 34, StringDefines.Key_41974, 1174000, 0, StringDefines.Key_41975, 2));
     data.Add(35, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 35, StringDefines.Key_41976, 0, 0, StringDefines.Key_41964, 33));
     data.Add(36, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 36, StringDefines.Key_41977, 0, 0, StringDefines.Key_41966, 32));
     data.Add(37, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 37, StringDefines.Key_41978, 0, 0, StringDefines.Key_41968, 26));
     data.Add(38, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 38, StringDefines.Key_41979, 0, 0, StringDefines.Key_41970, 7));
     data.Add(39, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 39, StringDefines.Key_41980, 0, 0, StringDefines.Key_41972, 34));
     data.Add(40, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 40, StringDefines.Key_41981, 0, 0, StringDefines.Key_41962, 30));
     data.Add(41, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 41, StringDefines.Key_41982, 0, 0, StringDefines.Key_41964, 15));
     data.Add(42, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 42, StringDefines.Key_41983, 0, 0, StringDefines.Key_41966, 5));
     data.Add(43, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 43, StringDefines.Key_41984, 0, 0, StringDefines.Key_41968, 12));
     data.Add(44, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 44, StringDefines.Key_41985, 0, 0, StringDefines.Key_41970, 23));
     data.Add(45, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 45, StringDefines.Key_41986, 0, 0, StringDefines.Key_41938, 45));
     data.Add(46, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 46, StringDefines.Key_41987, 0, 0, StringDefines.Key_41988, 46));
     data.Add(47, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 47, StringDefines.Key_41989, 0, 0, StringDefines.Key_41962, 47));
     data.Add(48, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 48, StringDefines.Key_41990, 0, 0, StringDefines.Key_41964, 48));
     data.Add(49, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 49, StringDefines.Key_41991, 0, 0, StringDefines.Key_41966, 49));
     data.Add(50, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 50, StringDefines.Key_41992, 0, 0, StringDefines.Key_41968, 50));
     data.Add(51, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 51, StringDefines.Key_41993, 0, 0, StringDefines.Key_41970, 51));
     data.Add(52, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 52, StringDefines.Key_41994, 0, 0, StringDefines.Key_41972, 52));
     data.Add(53, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 53, StringDefines.Key_41995, 0, 0, StringDefines.Key_41938, 53));
     data.Add(54, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 54, StringDefines.Key_41996, 0, 0, StringDefines.Key_41997, 54));
     data.Add(55, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 55, StringDefines.Key_41998, 0, 0, StringDefines.Key_41999, 55));
     data.Add(56, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 56, StringDefines.Key_42000, 0, 0, StringDefines.Key_42001, 56));
     data.Add(57, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 57, StringDefines.Key_42002, 0, 0, StringDefines.Key_42003, 57));
     data.Add(58, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 58, StringDefines.Key_42004, 0, 0, StringDefines.Key_42005, 58));
     data.Add(59, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 59, StringDefines.Key_42006, 0, 0, StringDefines.Key_42007, 59));
     data.Add(60, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 60, StringDefines.Key_42008, 0, 0, StringDefines.Key_42009, 60));
     data.Add(61, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 61, StringDefines.Key_42010, 0, 0, StringDefines.Key_42011, 61));
     data.Add(62, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 62, StringDefines.Key_42012, 0, 0, StringDefines.Key_42013, 62));
     data.Add(63, DeclarePictureTitle.Create(StringDefines.Key_42014, 1, 63, StringDefines.Key_42015, 1080000, 0, StringDefines.Key_42016, 63));
     data.Add(64, DeclarePictureTitle.Create(StringDefines.Key_42017, 0, 64, StringDefines.Key_42018, 1080000, 0, StringDefines.Key_42016, 64));
     data.Add(65, DeclarePictureTitle.Create(StringDefines.Key_42019, 0, 65, StringDefines.Key_42020, 1080000, 0, StringDefines.Key_42016, 65));
     data.Add(66, DeclarePictureTitle.Create(StringDefines.Key_42021, 1, 66, StringDefines.Key_42022, 1080000, 0, StringDefines.Key_42023, 66));
     data.Add(67, DeclarePictureTitle.Create(StringDefines.Key_42024, 1, 67, StringDefines.Key_42025, 1080000, 0, StringDefines.Key_42023, 67));
     data.Add(68, DeclarePictureTitle.Create(StringDefines.Key_42026, 1, 68, StringDefines.Key_42027, 1056000, 0, StringDefines.Key_42028, 68));
     data.Add(69, DeclarePictureTitle.Create(StringDefines.Key_42029, 1, 69, StringDefines.Key_42030, 1057000, 0, StringDefines.Key_42031, 69));
     data.Add(70, DeclarePictureTitle.Create(StringDefines.Key_42032, 0, 70, StringDefines.Key_42033, 0, 0, StringDefines.Key_42034, 70));
     data.Add(71, DeclarePictureTitle.Create(StringDefines.Key_42032, 0, 71, StringDefines.Key_15581, 0, 0, StringDefines.Key_42035, 71));
     data.Add(72, DeclarePictureTitle.Create(StringDefines.Key_42032, 0, 72, StringDefines.Key_42036, 0, 0, StringDefines.Key_41942, 72));
     data.Add(73, DeclarePictureTitle.Create(StringDefines.Key_42037, 0, 73, StringDefines.Key_42038, 1080000, 0, StringDefines.Key_42023, 73));
     data.Add(74, DeclarePictureTitle.Create(StringDefines.Key_42039, 0, 74, StringDefines.Key_42040, 1080000, 0, StringDefines.Key_42023, 74));
     data.Add(75, DeclarePictureTitle.Create(StringDefines.Key_42041, 0, 75, StringDefines.Key_42042, 1080000, 0, StringDefines.Key_42023, 75));
     data.Add(76, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 76, StringDefines.Key_42043, 0, 0, StringDefines.Key_42044, 76));
     data.Add(77, DeclarePictureTitle.Create(StringDefines.Key_42045, 0, 77, StringDefines.Key_42046, 1184000, 0, StringDefines.Key_42047, 77));
     data.Add(78, DeclarePictureTitle.Create(StringDefines.Key_42048, 0, 78, StringDefines.Key_42049, 1184000, 0, StringDefines.Key_42050, 78));
     data.Add(79, DeclarePictureTitle.Create(StringDefines.Key_42051, 0, 79, StringDefines.Key_42052, 1184000, 0, StringDefines.Key_42053, 79));
     data.Add(80, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 80, StringDefines.Key_42054, 0, 0, StringDefines.Key_41988, 80));
     data.Add(81, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 81, StringDefines.Key_42055, 0, 0, StringDefines.Key_41966, 81));
     data.Add(82, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 82, StringDefines.Key_42056, 0, 0, StringDefines.Key_41968, 82));
     data.Add(83, DeclarePictureTitle.Create(StringDefines.Key_41940, 0, 83, StringDefines.Key_42057, 0, 0, StringDefines.Key_42058, 83));
 }