Exemplo n.º 1
0
        public static DeclareFightingSoul Create(int in_base_exp, string in_base_pro, int in_icon, int in_id, int in_max_level, string in_name, int in_quality, int in_type)
        {
            DeclareFightingSoul tmp = new DeclareFightingSoul();

            tmp._base_exp  = in_base_exp;
            tmp._base_pro  = in_base_pro;
            tmp._icon      = in_icon;
            tmp._id        = in_id;
            tmp._max_level = in_max_level;
            tmp._name      = in_name;
            tmp._quality   = in_quality;
            tmp._type      = in_type;

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

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareFightingSoul>(86);
                    foreach (var item in dic)
                    {
                        DeclareFightingSoul tmp = new DeclareFightingSoul();
                        tmp.BaseExp  = item.Value[0];
                        tmp.BasePro  = CfgStringLua.Get(item.Value[1]);
                        tmp.Icon     = item.Value[2];
                        tmp.Id       = item.Value[3];
                        tmp.MaxLevel = item.Value[4];
                        tmp.Name     = CfgStringLua.Get(item.Value[5]);
                        tmp.Quality  = item.Value[6];
                        tmp.Type     = item.Value[7];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "FightingSoul");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareFightingSoul>(86);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "FightingSoul");
                }
            }
        }
Exemplo n.º 3
0
 public static void Convert(Dictionary <int, DeclareFightingSoul> data)
 {
     if (data == null)
     {
         return;
     }
     data.Clear();
     data.Add(101, DeclareFightingSoul.Create(60, StringDefines.Key_10900, 823, 101, 100, StringDefines.Key_10901, 1, 1));
     data.Add(102, DeclareFightingSoul.Create(120, StringDefines.Key_10902, 320, 102, 100, StringDefines.Key_10903, 2, 1));
     data.Add(103, DeclareFightingSoul.Create(240, StringDefines.Key_10904, 321, 103, 100, StringDefines.Key_10905, 3, 1));
     data.Add(104, DeclareFightingSoul.Create(480, StringDefines.Key_10906, 322, 104, 100, StringDefines.Key_10907, 4, 1));
     data.Add(105, DeclareFightingSoul.Create(960, StringDefines.Key_10908, 323, 105, 100, StringDefines.Key_10909, 5, 1));
     data.Add(106, DeclareFightingSoul.Create(1920, StringDefines.Key_10910, 324, 106, 100, StringDefines.Key_10911, 6, 1));
     data.Add(201, DeclareFightingSoul.Create(60, StringDefines.Key_10912, 824, 201, 100, StringDefines.Key_10913, 1, 2));
     data.Add(202, DeclareFightingSoul.Create(120, StringDefines.Key_10914, 325, 202, 100, StringDefines.Key_10915, 2, 2));
     data.Add(203, DeclareFightingSoul.Create(240, StringDefines.Key_10916, 326, 203, 100, StringDefines.Key_10917, 3, 2));
     data.Add(204, DeclareFightingSoul.Create(480, StringDefines.Key_10918, 327, 204, 100, StringDefines.Key_10919, 4, 2));
     data.Add(205, DeclareFightingSoul.Create(960, StringDefines.Key_10920, 328, 205, 100, StringDefines.Key_10921, 5, 2));
     data.Add(206, DeclareFightingSoul.Create(1920, StringDefines.Key_10922, 329, 206, 100, StringDefines.Key_10923, 6, 2));
     data.Add(301, DeclareFightingSoul.Create(60, StringDefines.Key_10924, 825, 301, 100, StringDefines.Key_10925, 1, 3));
     data.Add(302, DeclareFightingSoul.Create(120, StringDefines.Key_10926, 330, 302, 100, StringDefines.Key_10927, 2, 3));
     data.Add(303, DeclareFightingSoul.Create(240, StringDefines.Key_10928, 331, 303, 100, StringDefines.Key_10929, 3, 3));
     data.Add(304, DeclareFightingSoul.Create(480, StringDefines.Key_10930, 332, 304, 100, StringDefines.Key_10931, 4, 3));
     data.Add(305, DeclareFightingSoul.Create(960, StringDefines.Key_10932, 333, 305, 100, StringDefines.Key_10933, 5, 3));
     data.Add(306, DeclareFightingSoul.Create(1920, StringDefines.Key_10934, 334, 306, 100, StringDefines.Key_10935, 6, 3));
     data.Add(401, DeclareFightingSoul.Create(60, StringDefines.Key_10936, 826, 401, 100, StringDefines.Key_10937, 1, 4));
     data.Add(402, DeclareFightingSoul.Create(120, StringDefines.Key_10938, 335, 402, 100, StringDefines.Key_10939, 2, 4));
     data.Add(403, DeclareFightingSoul.Create(240, StringDefines.Key_10940, 336, 403, 100, StringDefines.Key_10941, 3, 4));
     data.Add(404, DeclareFightingSoul.Create(480, StringDefines.Key_10942, 337, 404, 100, StringDefines.Key_10943, 4, 4));
     data.Add(405, DeclareFightingSoul.Create(960, StringDefines.Key_10944, 338, 405, 100, StringDefines.Key_10945, 5, 4));
     data.Add(406, DeclareFightingSoul.Create(1920, StringDefines.Key_10946, 339, 406, 100, StringDefines.Key_10947, 6, 4));
     data.Add(501, DeclareFightingSoul.Create(60, StringDefines.Key_10948, 827, 501, 100, StringDefines.Key_10949, 1, 5));
     data.Add(502, DeclareFightingSoul.Create(120, StringDefines.Key_10950, 340, 502, 100, StringDefines.Key_10951, 2, 5));
     data.Add(503, DeclareFightingSoul.Create(240, StringDefines.Key_10952, 341, 503, 100, StringDefines.Key_10953, 3, 5));
     data.Add(504, DeclareFightingSoul.Create(480, StringDefines.Key_10954, 342, 504, 100, StringDefines.Key_10955, 4, 5));
     data.Add(505, DeclareFightingSoul.Create(960, StringDefines.Key_10956, 343, 505, 100, StringDefines.Key_10957, 5, 5));
     data.Add(506, DeclareFightingSoul.Create(1920, StringDefines.Key_10958, 344, 506, 100, StringDefines.Key_10959, 6, 5));
     data.Add(601, DeclareFightingSoul.Create(60, StringDefines.Key_10960, 828, 601, 100, StringDefines.Key_10961, 1, 6));
     data.Add(602, DeclareFightingSoul.Create(120, StringDefines.Key_10962, 345, 602, 100, StringDefines.Key_10963, 2, 6));
     data.Add(603, DeclareFightingSoul.Create(240, StringDefines.Key_10964, 346, 603, 100, StringDefines.Key_10965, 3, 6));
     data.Add(604, DeclareFightingSoul.Create(480, StringDefines.Key_10966, 347, 604, 100, StringDefines.Key_10967, 4, 6));
     data.Add(605, DeclareFightingSoul.Create(960, StringDefines.Key_10968, 348, 605, 100, StringDefines.Key_10969, 5, 6));
     data.Add(606, DeclareFightingSoul.Create(1920, StringDefines.Key_10970, 349, 606, 100, StringDefines.Key_10971, 6, 6));
     data.Add(701, DeclareFightingSoul.Create(60, StringDefines.Key_10972, 829, 701, 100, StringDefines.Key_10973, 1, 7));
     data.Add(702, DeclareFightingSoul.Create(120, StringDefines.Key_10974, 350, 702, 100, StringDefines.Key_10975, 2, 7));
     data.Add(703, DeclareFightingSoul.Create(240, StringDefines.Key_10976, 351, 703, 100, StringDefines.Key_10977, 3, 7));
     data.Add(704, DeclareFightingSoul.Create(480, StringDefines.Key_10978, 352, 704, 100, StringDefines.Key_10979, 4, 7));
     data.Add(705, DeclareFightingSoul.Create(960, StringDefines.Key_10980, 353, 705, 100, StringDefines.Key_10981, 5, 7));
     data.Add(706, DeclareFightingSoul.Create(1920, StringDefines.Key_10982, 354, 706, 100, StringDefines.Key_10983, 6, 7));
     data.Add(801, DeclareFightingSoul.Create(60, StringDefines.Key_10984, 830, 801, 100, StringDefines.Key_10985, 1, 8));
     data.Add(802, DeclareFightingSoul.Create(120, StringDefines.Key_10986, 355, 802, 100, StringDefines.Key_10987, 2, 8));
     data.Add(803, DeclareFightingSoul.Create(240, StringDefines.Key_10988, 356, 803, 100, StringDefines.Key_10989, 3, 8));
     data.Add(804, DeclareFightingSoul.Create(480, StringDefines.Key_10990, 357, 804, 100, StringDefines.Key_10991, 4, 8));
     data.Add(805, DeclareFightingSoul.Create(960, StringDefines.Key_10992, 358, 805, 100, StringDefines.Key_10993, 5, 8));
     data.Add(806, DeclareFightingSoul.Create(1920, StringDefines.Key_10994, 359, 806, 100, StringDefines.Key_10995, 6, 8));
     data.Add(901, DeclareFightingSoul.Create(100, StringDefines.Key_10474, 395, 901, 1, StringDefines.Key_10996, 1, 9));
     data.Add(902, DeclareFightingSoul.Create(2000, StringDefines.Key_10474, 396, 902, 1, StringDefines.Key_10997, 2, 9));
     data.Add(1001, DeclareFightingSoul.Create(60, StringDefines.Key_10998, 831, 1001, 100, StringDefines.Key_10999, 1, 10));
     data.Add(1002, DeclareFightingSoul.Create(120, StringDefines.Key_11000, 360, 1002, 100, StringDefines.Key_11001, 2, 10));
     data.Add(1003, DeclareFightingSoul.Create(240, StringDefines.Key_11002, 361, 1003, 100, StringDefines.Key_11003, 3, 10));
     data.Add(1004, DeclareFightingSoul.Create(480, StringDefines.Key_11004, 362, 1004, 100, StringDefines.Key_11005, 4, 10));
     data.Add(1005, DeclareFightingSoul.Create(960, StringDefines.Key_11006, 363, 1005, 100, StringDefines.Key_11007, 5, 10));
     data.Add(1006, DeclareFightingSoul.Create(1920, StringDefines.Key_11008, 364, 1006, 100, StringDefines.Key_11009, 6, 10));
     data.Add(1101, DeclareFightingSoul.Create(60, StringDefines.Key_11010, 832, 1101, 100, StringDefines.Key_11011, 1, 11));
     data.Add(1102, DeclareFightingSoul.Create(120, StringDefines.Key_11012, 365, 1102, 100, StringDefines.Key_11013, 2, 11));
     data.Add(1103, DeclareFightingSoul.Create(240, StringDefines.Key_11014, 366, 1103, 100, StringDefines.Key_11015, 3, 11));
     data.Add(1104, DeclareFightingSoul.Create(480, StringDefines.Key_11016, 367, 1104, 100, StringDefines.Key_11017, 4, 11));
     data.Add(1105, DeclareFightingSoul.Create(960, StringDefines.Key_11018, 368, 1105, 100, StringDefines.Key_11019, 5, 11));
     data.Add(1106, DeclareFightingSoul.Create(1920, StringDefines.Key_11020, 369, 1106, 100, StringDefines.Key_11021, 6, 11));
     data.Add(1201, DeclareFightingSoul.Create(60, StringDefines.Key_11022, 833, 1201, 100, StringDefines.Key_11023, 1, 12));
     data.Add(1202, DeclareFightingSoul.Create(120, StringDefines.Key_11024, 370, 1202, 100, StringDefines.Key_11025, 2, 12));
     data.Add(1203, DeclareFightingSoul.Create(240, StringDefines.Key_11026, 371, 1203, 100, StringDefines.Key_11027, 3, 12));
     data.Add(1204, DeclareFightingSoul.Create(480, StringDefines.Key_11028, 372, 1204, 100, StringDefines.Key_11029, 4, 12));
     data.Add(1205, DeclareFightingSoul.Create(960, StringDefines.Key_11030, 373, 1205, 100, StringDefines.Key_11031, 5, 12));
     data.Add(1206, DeclareFightingSoul.Create(1920, StringDefines.Key_11032, 374, 1206, 100, StringDefines.Key_11033, 6, 12));
     data.Add(1301, DeclareFightingSoul.Create(60, StringDefines.Key_11034, 834, 1301, 100, StringDefines.Key_11035, 1, 13));
     data.Add(1302, DeclareFightingSoul.Create(120, StringDefines.Key_11036, 375, 1302, 100, StringDefines.Key_11037, 2, 13));
     data.Add(1303, DeclareFightingSoul.Create(240, StringDefines.Key_11038, 376, 1303, 100, StringDefines.Key_11039, 3, 13));
     data.Add(1304, DeclareFightingSoul.Create(480, StringDefines.Key_11040, 377, 1304, 100, StringDefines.Key_11041, 4, 13));
     data.Add(1305, DeclareFightingSoul.Create(960, StringDefines.Key_11042, 378, 1305, 100, StringDefines.Key_11043, 5, 13));
     data.Add(1306, DeclareFightingSoul.Create(1920, StringDefines.Key_11044, 379, 1306, 100, StringDefines.Key_11045, 6, 13));
     data.Add(1401, DeclareFightingSoul.Create(60, StringDefines.Key_11046, 835, 1401, 100, StringDefines.Key_11047, 1, 14));
     data.Add(1402, DeclareFightingSoul.Create(120, StringDefines.Key_11048, 380, 1402, 100, StringDefines.Key_11049, 2, 14));
     data.Add(1403, DeclareFightingSoul.Create(240, StringDefines.Key_11050, 381, 1403, 100, StringDefines.Key_11051, 3, 14));
     data.Add(1404, DeclareFightingSoul.Create(480, StringDefines.Key_11052, 382, 1404, 100, StringDefines.Key_11053, 4, 14));
     data.Add(1405, DeclareFightingSoul.Create(960, StringDefines.Key_11054, 383, 1405, 100, StringDefines.Key_11055, 5, 14));
     data.Add(1406, DeclareFightingSoul.Create(1920, StringDefines.Key_11056, 384, 1406, 100, StringDefines.Key_11057, 6, 14));
     data.Add(1501, DeclareFightingSoul.Create(60, StringDefines.Key_11058, 836, 1501, 100, StringDefines.Key_11059, 1, 15));
     data.Add(1502, DeclareFightingSoul.Create(120, StringDefines.Key_11060, 385, 1502, 100, StringDefines.Key_11061, 2, 15));
     data.Add(1503, DeclareFightingSoul.Create(240, StringDefines.Key_11062, 386, 1503, 100, StringDefines.Key_11063, 3, 15));
     data.Add(1504, DeclareFightingSoul.Create(480, StringDefines.Key_11064, 387, 1504, 100, StringDefines.Key_11065, 4, 15));
     data.Add(1505, DeclareFightingSoul.Create(960, StringDefines.Key_11066, 388, 1505, 100, StringDefines.Key_11067, 5, 15));
     data.Add(1506, DeclareFightingSoul.Create(1920, StringDefines.Key_11068, 389, 1506, 100, StringDefines.Key_11069, 6, 15));
 }