Ejemplo n.º 1
0
        public static DeclareFashionStarStar Create(string in_addAttribute, int in_id, string in_up_item)
        {
            DeclareFashionStarStar tmp = new DeclareFashionStarStar();

            tmp._addAttribute = in_addAttribute;
            tmp._id           = in_id;
            tmp._up_item      = in_up_item;

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

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

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "FashionStarStar");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareFashionStarStar>(110);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "FashionStarStar");
                }
            }
        }
Ejemplo n.º 3
0
 public static void Convert(Dictionary <int, DeclareFashionStarStar> data)
 {
     if (data == null)
     {
         return;
     }
     data.Clear();
     data.Add(100, DeclareFashionStarStar.Create(StringDefines.Key_10472, 100, StringDefines.Key_18379));
     data.Add(101, DeclareFashionStarStar.Create(StringDefines.Key_18380, 101, StringDefines.Key_18381));
     data.Add(102, DeclareFashionStarStar.Create(StringDefines.Key_18382, 102, StringDefines.Key_18383));
     data.Add(103, DeclareFashionStarStar.Create(StringDefines.Key_18384, 103, StringDefines.Key_18383));
     data.Add(104, DeclareFashionStarStar.Create(StringDefines.Key_18385, 104, StringDefines.Key_18386));
     data.Add(105, DeclareFashionStarStar.Create(StringDefines.Key_18387, 105, StringDefines.Key_18388));
     data.Add(106, DeclareFashionStarStar.Create(StringDefines.Key_18389, 106, StringDefines.Key_18390));
     data.Add(107, DeclareFashionStarStar.Create(StringDefines.Key_18391, 107, StringDefines.Key_18390));
     data.Add(108, DeclareFashionStarStar.Create(StringDefines.Key_18392, 108, StringDefines.Key_18393));
     data.Add(109, DeclareFashionStarStar.Create(StringDefines.Key_18394, 109, StringDefines.Key_18395));
     data.Add(110, DeclareFashionStarStar.Create(StringDefines.Key_18396, 110, StringDefines.Key_18397));
     data.Add(200, DeclareFashionStarStar.Create(StringDefines.Key_18396, 200, StringDefines.Key_18398));
     data.Add(201, DeclareFashionStarStar.Create(StringDefines.Key_18399, 201, StringDefines.Key_18398));
     data.Add(202, DeclareFashionStarStar.Create(StringDefines.Key_18400, 202, StringDefines.Key_18401));
     data.Add(203, DeclareFashionStarStar.Create(StringDefines.Key_18402, 203, StringDefines.Key_18403));
     data.Add(204, DeclareFashionStarStar.Create(StringDefines.Key_18404, 204, StringDefines.Key_18403));
     data.Add(205, DeclareFashionStarStar.Create(StringDefines.Key_18405, 205, StringDefines.Key_18406));
     data.Add(206, DeclareFashionStarStar.Create(StringDefines.Key_18407, 206, StringDefines.Key_18408));
     data.Add(207, DeclareFashionStarStar.Create(StringDefines.Key_18409, 207, StringDefines.Key_18408));
     data.Add(208, DeclareFashionStarStar.Create(StringDefines.Key_18410, 208, StringDefines.Key_18411));
     data.Add(209, DeclareFashionStarStar.Create(StringDefines.Key_18412, 209, StringDefines.Key_18413));
     data.Add(210, DeclareFashionStarStar.Create(StringDefines.Key_18414, 210, StringDefines.Key_18397));
     data.Add(300, DeclareFashionStarStar.Create(StringDefines.Key_18414, 300, StringDefines.Key_18413));
     data.Add(301, DeclareFashionStarStar.Create(StringDefines.Key_18415, 301, StringDefines.Key_18416));
     data.Add(302, DeclareFashionStarStar.Create(StringDefines.Key_18417, 302, StringDefines.Key_18418));
     data.Add(303, DeclareFashionStarStar.Create(StringDefines.Key_18419, 303, StringDefines.Key_18418));
     data.Add(304, DeclareFashionStarStar.Create(StringDefines.Key_18420, 304, StringDefines.Key_18421));
     data.Add(305, DeclareFashionStarStar.Create(StringDefines.Key_18422, 305, StringDefines.Key_18423));
     data.Add(306, DeclareFashionStarStar.Create(StringDefines.Key_18424, 306, StringDefines.Key_18423));
     data.Add(307, DeclareFashionStarStar.Create(StringDefines.Key_18425, 307, StringDefines.Key_18426));
     data.Add(308, DeclareFashionStarStar.Create(StringDefines.Key_18427, 308, StringDefines.Key_18428));
     data.Add(309, DeclareFashionStarStar.Create(StringDefines.Key_18429, 309, StringDefines.Key_18428));
     data.Add(310, DeclareFashionStarStar.Create(StringDefines.Key_18430, 310, StringDefines.Key_18397));
     data.Add(400, DeclareFashionStarStar.Create(StringDefines.Key_18430, 400, StringDefines.Key_18431));
     data.Add(401, DeclareFashionStarStar.Create(StringDefines.Key_18432, 401, StringDefines.Key_18433));
     data.Add(402, DeclareFashionStarStar.Create(StringDefines.Key_18434, 402, StringDefines.Key_18433));
     data.Add(403, DeclareFashionStarStar.Create(StringDefines.Key_18435, 403, StringDefines.Key_18436));
     data.Add(404, DeclareFashionStarStar.Create(StringDefines.Key_18437, 404, StringDefines.Key_18438));
     data.Add(405, DeclareFashionStarStar.Create(StringDefines.Key_18439, 405, StringDefines.Key_18438));
     data.Add(406, DeclareFashionStarStar.Create(StringDefines.Key_18440, 406, StringDefines.Key_18441));
     data.Add(407, DeclareFashionStarStar.Create(StringDefines.Key_18442, 407, StringDefines.Key_18441));
     data.Add(408, DeclareFashionStarStar.Create(StringDefines.Key_18443, 408, StringDefines.Key_18444));
     data.Add(409, DeclareFashionStarStar.Create(StringDefines.Key_18445, 409, StringDefines.Key_18446));
     data.Add(410, DeclareFashionStarStar.Create(StringDefines.Key_18447, 410, StringDefines.Key_18397));
     data.Add(500, DeclareFashionStarStar.Create(StringDefines.Key_18447, 500, StringDefines.Key_18446));
     data.Add(501, DeclareFashionStarStar.Create(StringDefines.Key_18448, 501, StringDefines.Key_18449));
     data.Add(502, DeclareFashionStarStar.Create(StringDefines.Key_18450, 502, StringDefines.Key_18451));
     data.Add(503, DeclareFashionStarStar.Create(StringDefines.Key_18452, 503, StringDefines.Key_18451));
     data.Add(504, DeclareFashionStarStar.Create(StringDefines.Key_18453, 504, StringDefines.Key_18454));
     data.Add(505, DeclareFashionStarStar.Create(StringDefines.Key_18455, 505, StringDefines.Key_18454));
     data.Add(506, DeclareFashionStarStar.Create(StringDefines.Key_18456, 506, StringDefines.Key_18457));
     data.Add(507, DeclareFashionStarStar.Create(StringDefines.Key_18458, 507, StringDefines.Key_18459));
     data.Add(508, DeclareFashionStarStar.Create(StringDefines.Key_18460, 508, StringDefines.Key_18459));
     data.Add(509, DeclareFashionStarStar.Create(StringDefines.Key_18461, 509, StringDefines.Key_18462));
     data.Add(510, DeclareFashionStarStar.Create(StringDefines.Key_18463, 510, StringDefines.Key_18397));
     data.Add(600, DeclareFashionStarStar.Create(StringDefines.Key_18463, 600, StringDefines.Key_18462));
     data.Add(601, DeclareFashionStarStar.Create(StringDefines.Key_18464, 601, StringDefines.Key_18465));
     data.Add(602, DeclareFashionStarStar.Create(StringDefines.Key_18466, 602, StringDefines.Key_18467));
     data.Add(603, DeclareFashionStarStar.Create(StringDefines.Key_18468, 603, StringDefines.Key_18467));
     data.Add(604, DeclareFashionStarStar.Create(StringDefines.Key_18469, 604, StringDefines.Key_18470));
     data.Add(605, DeclareFashionStarStar.Create(StringDefines.Key_18471, 605, StringDefines.Key_18470));
     data.Add(606, DeclareFashionStarStar.Create(StringDefines.Key_18472, 606, StringDefines.Key_18473));
     data.Add(607, DeclareFashionStarStar.Create(StringDefines.Key_18474, 607, StringDefines.Key_18475));
     data.Add(608, DeclareFashionStarStar.Create(StringDefines.Key_18476, 608, StringDefines.Key_18475));
     data.Add(609, DeclareFashionStarStar.Create(StringDefines.Key_18477, 609, StringDefines.Key_18478));
     data.Add(610, DeclareFashionStarStar.Create(StringDefines.Key_18479, 610, StringDefines.Key_18397));
     data.Add(700, DeclareFashionStarStar.Create(StringDefines.Key_18479, 700, StringDefines.Key_18478));
     data.Add(701, DeclareFashionStarStar.Create(StringDefines.Key_18480, 701, StringDefines.Key_18481));
     data.Add(702, DeclareFashionStarStar.Create(StringDefines.Key_18482, 702, StringDefines.Key_18483));
     data.Add(703, DeclareFashionStarStar.Create(StringDefines.Key_18484, 703, StringDefines.Key_18483));
     data.Add(704, DeclareFashionStarStar.Create(StringDefines.Key_18485, 704, StringDefines.Key_18486));
     data.Add(705, DeclareFashionStarStar.Create(StringDefines.Key_18487, 705, StringDefines.Key_18486));
     data.Add(706, DeclareFashionStarStar.Create(StringDefines.Key_18488, 706, StringDefines.Key_18489));
     data.Add(707, DeclareFashionStarStar.Create(StringDefines.Key_18490, 707, StringDefines.Key_18491));
     data.Add(708, DeclareFashionStarStar.Create(StringDefines.Key_18492, 708, StringDefines.Key_18491));
     data.Add(709, DeclareFashionStarStar.Create(StringDefines.Key_18493, 709, StringDefines.Key_18494));
     data.Add(710, DeclareFashionStarStar.Create(StringDefines.Key_18495, 710, StringDefines.Key_18397));
     data.Add(800, DeclareFashionStarStar.Create(StringDefines.Key_18495, 800, StringDefines.Key_18494));
     data.Add(801, DeclareFashionStarStar.Create(StringDefines.Key_18496, 801, StringDefines.Key_18497));
     data.Add(802, DeclareFashionStarStar.Create(StringDefines.Key_18498, 802, StringDefines.Key_18499));
     data.Add(803, DeclareFashionStarStar.Create(StringDefines.Key_18500, 803, StringDefines.Key_18499));
     data.Add(804, DeclareFashionStarStar.Create(StringDefines.Key_18501, 804, StringDefines.Key_18502));
     data.Add(805, DeclareFashionStarStar.Create(StringDefines.Key_18503, 805, StringDefines.Key_18502));
     data.Add(806, DeclareFashionStarStar.Create(StringDefines.Key_18504, 806, StringDefines.Key_18505));
     data.Add(807, DeclareFashionStarStar.Create(StringDefines.Key_18506, 807, StringDefines.Key_18505));
     data.Add(808, DeclareFashionStarStar.Create(StringDefines.Key_18507, 808, StringDefines.Key_18508));
     data.Add(809, DeclareFashionStarStar.Create(StringDefines.Key_18509, 809, StringDefines.Key_18510));
     data.Add(810, DeclareFashionStarStar.Create(StringDefines.Key_18511, 810, StringDefines.Key_18397));
     data.Add(900, DeclareFashionStarStar.Create(StringDefines.Key_18511, 900, StringDefines.Key_18510));
     data.Add(901, DeclareFashionStarStar.Create(StringDefines.Key_18512, 901, StringDefines.Key_18513));
     data.Add(902, DeclareFashionStarStar.Create(StringDefines.Key_18514, 902, StringDefines.Key_18513));
     data.Add(903, DeclareFashionStarStar.Create(StringDefines.Key_18515, 903, StringDefines.Key_18516));
     data.Add(904, DeclareFashionStarStar.Create(StringDefines.Key_18517, 904, StringDefines.Key_18518));
     data.Add(905, DeclareFashionStarStar.Create(StringDefines.Key_18519, 905, StringDefines.Key_18518));
     data.Add(906, DeclareFashionStarStar.Create(StringDefines.Key_18520, 906, StringDefines.Key_18521));
     data.Add(907, DeclareFashionStarStar.Create(StringDefines.Key_18522, 907, StringDefines.Key_18521));
     data.Add(908, DeclareFashionStarStar.Create(StringDefines.Key_18523, 908, StringDefines.Key_18524));
     data.Add(909, DeclareFashionStarStar.Create(StringDefines.Key_18525, 909, StringDefines.Key_18524));
     data.Add(910, DeclareFashionStarStar.Create(StringDefines.Key_18526, 910, StringDefines.Key_18397));
     data.Add(1000, DeclareFashionStarStar.Create(StringDefines.Key_18526, 1000, StringDefines.Key_18527));
     data.Add(1001, DeclareFashionStarStar.Create(StringDefines.Key_18528, 1001, StringDefines.Key_18529));
     data.Add(1002, DeclareFashionStarStar.Create(StringDefines.Key_18530, 1002, StringDefines.Key_18529));
     data.Add(1003, DeclareFashionStarStar.Create(StringDefines.Key_18531, 1003, StringDefines.Key_18532));
     data.Add(1004, DeclareFashionStarStar.Create(StringDefines.Key_18533, 1004, StringDefines.Key_18532));
     data.Add(1005, DeclareFashionStarStar.Create(StringDefines.Key_18534, 1005, StringDefines.Key_18535));
     data.Add(1006, DeclareFashionStarStar.Create(StringDefines.Key_18536, 1006, StringDefines.Key_18535));
     data.Add(1007, DeclareFashionStarStar.Create(StringDefines.Key_18537, 1007, StringDefines.Key_18538));
     data.Add(1008, DeclareFashionStarStar.Create(StringDefines.Key_18539, 1008, StringDefines.Key_18540));
     data.Add(1009, DeclareFashionStarStar.Create(StringDefines.Key_18541, 1009, StringDefines.Key_18540));
     data.Add(1010, DeclareFashionStarStar.Create(StringDefines.Key_18542, 1010, StringDefines.Key_20));
 }