Пример #1
0
        public static DeclareElvesStar Create(string in_addAttribute, int in_gold_num, int in_id, int in_item_num, int in_up_item)
        {
            DeclareElvesStar tmp = new DeclareElvesStar();

            tmp._addAttribute = in_addAttribute;
            tmp._gold_num     = in_gold_num;
            tmp._id           = in_id;
            tmp._item_num     = in_item_num;
            tmp._up_item      = in_up_item;

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

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareElvesStar>(110);
                    foreach (var item in dic)
                    {
                        DeclareElvesStar tmp = new DeclareElvesStar();
                        tmp.AddAttribute = CfgStringLua.Get(item.Value[0]);
                        tmp.GoldNum      = item.Value[1];
                        tmp.Id           = item.Value[2];
                        tmp.ItemNum      = item.Value[3];
                        tmp.UpItem       = item.Value[4];

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "ElvesStar");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareElvesStar>(110);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "ElvesStar");
                }
            }
        }
Пример #3
0
 public static void Convert(Dictionary <int, DeclareElvesStar> data)
 {
     if (data == null)
     {
         return;
     }
     data.Clear();
     data.Add(100, DeclareElvesStar.Create(StringDefines.Key_10474, 10, 100, 1, 50030));
     data.Add(101, DeclareElvesStar.Create(StringDefines.Key_42059, 10, 101, 1, 50030));
     data.Add(102, DeclareElvesStar.Create(StringDefines.Key_42060, 20, 102, 2, 50030));
     data.Add(103, DeclareElvesStar.Create(StringDefines.Key_42061, 30, 103, 3, 50030));
     data.Add(104, DeclareElvesStar.Create(StringDefines.Key_42062, 40, 104, 4, 50030));
     data.Add(105, DeclareElvesStar.Create(StringDefines.Key_42063, 50, 105, 5, 50030));
     data.Add(106, DeclareElvesStar.Create(StringDefines.Key_42064, 50, 106, 5, 50030));
     data.Add(107, DeclareElvesStar.Create(StringDefines.Key_42065, 60, 107, 6, 50030));
     data.Add(108, DeclareElvesStar.Create(StringDefines.Key_42066, 70, 108, 7, 50030));
     data.Add(109, DeclareElvesStar.Create(StringDefines.Key_42067, 80, 109, 8, 50030));
     data.Add(110, DeclareElvesStar.Create(StringDefines.Key_42068, 0, 110, 0, 50030));
     data.Add(200, DeclareElvesStar.Create(StringDefines.Key_42068, 90, 200, 9, 50030));
     data.Add(201, DeclareElvesStar.Create(StringDefines.Key_42069, 90, 201, 9, 50030));
     data.Add(202, DeclareElvesStar.Create(StringDefines.Key_42070, 100, 202, 10, 50030));
     data.Add(203, DeclareElvesStar.Create(StringDefines.Key_42071, 110, 203, 11, 50030));
     data.Add(204, DeclareElvesStar.Create(StringDefines.Key_42072, 120, 204, 12, 50030));
     data.Add(205, DeclareElvesStar.Create(StringDefines.Key_42073, 120, 205, 12, 50030));
     data.Add(206, DeclareElvesStar.Create(StringDefines.Key_42074, 130, 206, 13, 50030));
     data.Add(207, DeclareElvesStar.Create(StringDefines.Key_42075, 140, 207, 14, 50030));
     data.Add(208, DeclareElvesStar.Create(StringDefines.Key_42076, 150, 208, 15, 50030));
     data.Add(209, DeclareElvesStar.Create(StringDefines.Key_42077, 150, 209, 15, 50030));
     data.Add(210, DeclareElvesStar.Create(StringDefines.Key_42078, 0, 210, 0, 50030));
     data.Add(300, DeclareElvesStar.Create(StringDefines.Key_42078, 160, 300, 16, 50030));
     data.Add(301, DeclareElvesStar.Create(StringDefines.Key_42079, 170, 301, 17, 50030));
     data.Add(302, DeclareElvesStar.Create(StringDefines.Key_42080, 170, 302, 17, 50030));
     data.Add(303, DeclareElvesStar.Create(StringDefines.Key_42081, 180, 303, 18, 50030));
     data.Add(304, DeclareElvesStar.Create(StringDefines.Key_42082, 190, 304, 19, 50030));
     data.Add(305, DeclareElvesStar.Create(StringDefines.Key_42083, 200, 305, 20, 50030));
     data.Add(306, DeclareElvesStar.Create(StringDefines.Key_42084, 200, 306, 20, 50030));
     data.Add(307, DeclareElvesStar.Create(StringDefines.Key_42085, 210, 307, 21, 50030));
     data.Add(308, DeclareElvesStar.Create(StringDefines.Key_42086, 220, 308, 22, 50030));
     data.Add(309, DeclareElvesStar.Create(StringDefines.Key_42087, 220, 309, 22, 50030));
     data.Add(310, DeclareElvesStar.Create(StringDefines.Key_42088, 0, 310, 0, 50030));
     data.Add(400, DeclareElvesStar.Create(StringDefines.Key_42088, 230, 400, 23, 50030));
     data.Add(401, DeclareElvesStar.Create(StringDefines.Key_42089, 240, 401, 24, 50030));
     data.Add(402, DeclareElvesStar.Create(StringDefines.Key_42090, 240, 402, 24, 50030));
     data.Add(403, DeclareElvesStar.Create(StringDefines.Key_42091, 250, 403, 25, 50030));
     data.Add(404, DeclareElvesStar.Create(StringDefines.Key_42092, 260, 404, 26, 50030));
     data.Add(405, DeclareElvesStar.Create(StringDefines.Key_42093, 270, 405, 27, 50030));
     data.Add(406, DeclareElvesStar.Create(StringDefines.Key_42094, 270, 406, 27, 50030));
     data.Add(407, DeclareElvesStar.Create(StringDefines.Key_42095, 280, 407, 28, 50030));
     data.Add(408, DeclareElvesStar.Create(StringDefines.Key_42096, 290, 408, 29, 50030));
     data.Add(409, DeclareElvesStar.Create(StringDefines.Key_42097, 290, 409, 29, 50030));
     data.Add(410, DeclareElvesStar.Create(StringDefines.Key_42098, 0, 410, 0, 50030));
     data.Add(500, DeclareElvesStar.Create(StringDefines.Key_42098, 300, 500, 30, 50030));
     data.Add(501, DeclareElvesStar.Create(StringDefines.Key_42099, 310, 501, 31, 50030));
     data.Add(502, DeclareElvesStar.Create(StringDefines.Key_42100, 310, 502, 31, 50030));
     data.Add(503, DeclareElvesStar.Create(StringDefines.Key_42101, 320, 503, 32, 50030));
     data.Add(504, DeclareElvesStar.Create(StringDefines.Key_42102, 330, 504, 33, 50030));
     data.Add(505, DeclareElvesStar.Create(StringDefines.Key_42103, 330, 505, 33, 50030));
     data.Add(506, DeclareElvesStar.Create(StringDefines.Key_42104, 340, 506, 34, 50030));
     data.Add(507, DeclareElvesStar.Create(StringDefines.Key_42105, 350, 507, 35, 50030));
     data.Add(508, DeclareElvesStar.Create(StringDefines.Key_42106, 350, 508, 35, 50030));
     data.Add(509, DeclareElvesStar.Create(StringDefines.Key_42107, 360, 509, 36, 50030));
     data.Add(510, DeclareElvesStar.Create(StringDefines.Key_42108, 0, 510, 0, 50030));
     data.Add(600, DeclareElvesStar.Create(StringDefines.Key_42108, 370, 600, 37, 50030));
     data.Add(601, DeclareElvesStar.Create(StringDefines.Key_42109, 370, 601, 37, 50030));
     data.Add(602, DeclareElvesStar.Create(StringDefines.Key_42110, 380, 602, 38, 50030));
     data.Add(603, DeclareElvesStar.Create(StringDefines.Key_42111, 390, 603, 39, 50030));
     data.Add(604, DeclareElvesStar.Create(StringDefines.Key_42112, 390, 604, 39, 50030));
     data.Add(605, DeclareElvesStar.Create(StringDefines.Key_42113, 400, 605, 40, 50030));
     data.Add(606, DeclareElvesStar.Create(StringDefines.Key_42114, 410, 606, 41, 50030));
     data.Add(607, DeclareElvesStar.Create(StringDefines.Key_42115, 410, 607, 41, 50030));
     data.Add(608, DeclareElvesStar.Create(StringDefines.Key_42116, 420, 608, 42, 50030));
     data.Add(609, DeclareElvesStar.Create(StringDefines.Key_42117, 430, 609, 43, 50030));
     data.Add(610, DeclareElvesStar.Create(StringDefines.Key_42118, 0, 610, 0, 50030));
     data.Add(700, DeclareElvesStar.Create(StringDefines.Key_42118, 430, 700, 43, 50030));
     data.Add(701, DeclareElvesStar.Create(StringDefines.Key_42119, 440, 701, 44, 50030));
     data.Add(702, DeclareElvesStar.Create(StringDefines.Key_42120, 450, 702, 45, 50030));
     data.Add(703, DeclareElvesStar.Create(StringDefines.Key_42121, 450, 703, 45, 50030));
     data.Add(704, DeclareElvesStar.Create(StringDefines.Key_42122, 460, 704, 46, 50030));
     data.Add(705, DeclareElvesStar.Create(StringDefines.Key_42123, 470, 705, 47, 50030));
     data.Add(706, DeclareElvesStar.Create(StringDefines.Key_42124, 470, 706, 47, 50030));
     data.Add(707, DeclareElvesStar.Create(StringDefines.Key_42125, 480, 707, 48, 50030));
     data.Add(708, DeclareElvesStar.Create(StringDefines.Key_42126, 490, 708, 49, 50030));
     data.Add(709, DeclareElvesStar.Create(StringDefines.Key_42127, 490, 709, 49, 50030));
     data.Add(710, DeclareElvesStar.Create(StringDefines.Key_42128, 0, 710, 0, 50030));
     data.Add(800, DeclareElvesStar.Create(StringDefines.Key_42128, 500, 800, 50, 50030));
     data.Add(801, DeclareElvesStar.Create(StringDefines.Key_42129, 510, 801, 51, 50030));
     data.Add(802, DeclareElvesStar.Create(StringDefines.Key_42130, 510, 802, 51, 50030));
     data.Add(803, DeclareElvesStar.Create(StringDefines.Key_42131, 520, 803, 52, 50030));
     data.Add(804, DeclareElvesStar.Create(StringDefines.Key_42132, 530, 804, 53, 50030));
     data.Add(805, DeclareElvesStar.Create(StringDefines.Key_42133, 530, 805, 53, 50030));
     data.Add(806, DeclareElvesStar.Create(StringDefines.Key_42134, 540, 806, 54, 50030));
     data.Add(807, DeclareElvesStar.Create(StringDefines.Key_42135, 550, 807, 55, 50030));
     data.Add(808, DeclareElvesStar.Create(StringDefines.Key_42136, 550, 808, 55, 50030));
     data.Add(809, DeclareElvesStar.Create(StringDefines.Key_42137, 560, 809, 56, 50030));
     data.Add(810, DeclareElvesStar.Create(StringDefines.Key_42138, 0, 810, 0, 50030));
     data.Add(900, DeclareElvesStar.Create(StringDefines.Key_42138, 560, 900, 56, 50030));
     data.Add(901, DeclareElvesStar.Create(StringDefines.Key_42139, 570, 901, 57, 50030));
     data.Add(902, DeclareElvesStar.Create(StringDefines.Key_42140, 580, 902, 58, 50030));
     data.Add(903, DeclareElvesStar.Create(StringDefines.Key_42141, 580, 903, 58, 50030));
     data.Add(904, DeclareElvesStar.Create(StringDefines.Key_42142, 590, 904, 59, 50030));
     data.Add(905, DeclareElvesStar.Create(StringDefines.Key_42143, 600, 905, 60, 50030));
     data.Add(906, DeclareElvesStar.Create(StringDefines.Key_42144, 600, 906, 60, 50030));
     data.Add(907, DeclareElvesStar.Create(StringDefines.Key_42145, 610, 907, 61, 50030));
     data.Add(908, DeclareElvesStar.Create(StringDefines.Key_42146, 620, 908, 62, 50030));
     data.Add(909, DeclareElvesStar.Create(StringDefines.Key_42147, 620, 909, 62, 50030));
     data.Add(910, DeclareElvesStar.Create(StringDefines.Key_42148, 0, 910, 0, 50030));
     data.Add(1000, DeclareElvesStar.Create(StringDefines.Key_42148, 630, 1000, 63, 50030));
     data.Add(1001, DeclareElvesStar.Create(StringDefines.Key_42149, 640, 1001, 64, 50030));
     data.Add(1002, DeclareElvesStar.Create(StringDefines.Key_42150, 640, 1002, 64, 50030));
     data.Add(1003, DeclareElvesStar.Create(StringDefines.Key_42151, 650, 1003, 65, 50030));
     data.Add(1004, DeclareElvesStar.Create(StringDefines.Key_42152, 650, 1004, 65, 50030));
     data.Add(1005, DeclareElvesStar.Create(StringDefines.Key_42153, 660, 1005, 66, 50030));
     data.Add(1006, DeclareElvesStar.Create(StringDefines.Key_42154, 670, 1006, 67, 50030));
     data.Add(1007, DeclareElvesStar.Create(StringDefines.Key_42155, 670, 1007, 67, 50030));
     data.Add(1008, DeclareElvesStar.Create(StringDefines.Key_42156, 680, 1008, 68, 50030));
     data.Add(1009, DeclareElvesStar.Create(StringDefines.Key_42157, 690, 1009, 69, 50030));
     data.Add(1010, DeclareElvesStar.Create(StringDefines.Key_42158, 0, 1010, 0, 50030));
 }