Ejemplo n.º 1
0
        public static DeclareHorseStar Create(string in_attr, string in_id, int in_notice, string in_up_item_info)
        {
            DeclareHorseStar tmp = new DeclareHorseStar();

            tmp._attr         = in_attr;
            tmp._id           = in_id;
            tmp._notice       = in_notice;
            tmp._up_item_info = in_up_item_info;

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

                if (dic != null)
                {
                    _dataCaches = new Dictionary <string, DeclareHorseStar>(110);
                    foreach (var item in dic)
                    {
                        DeclareHorseStar tmp = new DeclareHorseStar();
                        tmp.Attr       = CfgStringLua.Get(item.Value[0]);
                        tmp.Id         = CfgStringLua.Get(item.Value[1]);
                        tmp.Notice     = item.Value[2];
                        tmp.UpItemInfo = CfgStringLua.Get(item.Value[3]);

                        _dataCaches.Add(CfgStringLua.Get(item.Key), tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "HorseStar");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <string, DeclareHorseStar>(110);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "HorseStar");
                }
            }
        }
Ejemplo n.º 3
0
 public static void Convert(Dictionary <string, DeclareHorseStar> data)
 {
     if (data == null)
     {
         return;
     }
     data.Clear();
     data.Add(StringDefines.Key_6528, DeclareHorseStar.Create(StringDefines.Key_10472, StringDefines.Key_6528, 0, StringDefines.Key_30811));
     data.Add(StringDefines.Key_72, DeclareHorseStar.Create(StringDefines.Key_30812, StringDefines.Key_72, 0, StringDefines.Key_30813));
     data.Add(StringDefines.Key_3151, DeclareHorseStar.Create(StringDefines.Key_30814, StringDefines.Key_3151, 0, StringDefines.Key_30815));
     data.Add(StringDefines.Key_5102, DeclareHorseStar.Create(StringDefines.Key_30816, StringDefines.Key_5102, 0, StringDefines.Key_30817));
     data.Add(StringDefines.Key_5105, DeclareHorseStar.Create(StringDefines.Key_30818, StringDefines.Key_5105, 0, StringDefines.Key_30817));
     data.Add(StringDefines.Key_5108, DeclareHorseStar.Create(StringDefines.Key_30819, StringDefines.Key_5108, 0, StringDefines.Key_30820));
     data.Add(StringDefines.Key_6552, DeclareHorseStar.Create(StringDefines.Key_30821, StringDefines.Key_6552, 0, StringDefines.Key_30822));
     data.Add(StringDefines.Key_6558, DeclareHorseStar.Create(StringDefines.Key_30823, StringDefines.Key_6558, 0, StringDefines.Key_30824));
     data.Add(StringDefines.Key_6564, DeclareHorseStar.Create(StringDefines.Key_30825, StringDefines.Key_6564, 0, StringDefines.Key_30824));
     data.Add(StringDefines.Key_6570, DeclareHorseStar.Create(StringDefines.Key_30826, StringDefines.Key_6570, 0, StringDefines.Key_30827));
     data.Add(StringDefines.Key_11703, DeclareHorseStar.Create(StringDefines.Key_30828, StringDefines.Key_11703, 0, StringDefines.Key_30829));
     data.Add(StringDefines.Key_6576, DeclareHorseStar.Create(StringDefines.Key_30828, StringDefines.Key_6576, 0, StringDefines.Key_30811));
     data.Add(StringDefines.Key_5111, DeclareHorseStar.Create(StringDefines.Key_30830, StringDefines.Key_5111, 0, StringDefines.Key_30831));
     data.Add(StringDefines.Key_3180, DeclareHorseStar.Create(StringDefines.Key_30832, StringDefines.Key_3180, 0, StringDefines.Key_30831));
     data.Add(StringDefines.Key_5116, DeclareHorseStar.Create(StringDefines.Key_30833, StringDefines.Key_5116, 0, StringDefines.Key_30834));
     data.Add(StringDefines.Key_5119, DeclareHorseStar.Create(StringDefines.Key_30835, StringDefines.Key_5119, 0, StringDefines.Key_30836));
     data.Add(StringDefines.Key_5122, DeclareHorseStar.Create(StringDefines.Key_30837, StringDefines.Key_5122, 0, StringDefines.Key_30836));
     data.Add(StringDefines.Key_6608, DeclareHorseStar.Create(StringDefines.Key_30838, StringDefines.Key_6608, 0, StringDefines.Key_30839));
     data.Add(StringDefines.Key_6614, DeclareHorseStar.Create(StringDefines.Key_30840, StringDefines.Key_6614, 0, StringDefines.Key_30841));
     data.Add(StringDefines.Key_6620, DeclareHorseStar.Create(StringDefines.Key_30842, StringDefines.Key_6620, 0, StringDefines.Key_30841));
     data.Add(StringDefines.Key_96, DeclareHorseStar.Create(StringDefines.Key_30843, StringDefines.Key_96, 0, StringDefines.Key_30844));
     data.Add(StringDefines.Key_12237, DeclareHorseStar.Create(StringDefines.Key_30845, StringDefines.Key_12237, 0, StringDefines.Key_30846));
     data.Add(StringDefines.Key_6631, DeclareHorseStar.Create(StringDefines.Key_30845, StringDefines.Key_6631, 0, StringDefines.Key_30811));
     data.Add(StringDefines.Key_84, DeclareHorseStar.Create(StringDefines.Key_30847, StringDefines.Key_84, 0, StringDefines.Key_30846));
     data.Add(StringDefines.Key_26, DeclareHorseStar.Create(StringDefines.Key_30848, StringDefines.Key_26, 0, StringDefines.Key_30849));
     data.Add(StringDefines.Key_4241, DeclareHorseStar.Create(StringDefines.Key_30850, StringDefines.Key_4241, 0, StringDefines.Key_30851));
     data.Add(StringDefines.Key_5131, DeclareHorseStar.Create(StringDefines.Key_30852, StringDefines.Key_5131, 0, StringDefines.Key_30851));
     data.Add(StringDefines.Key_5134, DeclareHorseStar.Create(StringDefines.Key_30853, StringDefines.Key_5134, 0, StringDefines.Key_30854));
     data.Add(StringDefines.Key_6666, DeclareHorseStar.Create(StringDefines.Key_30855, StringDefines.Key_6666, 0, StringDefines.Key_30856));
     data.Add(StringDefines.Key_5288, DeclareHorseStar.Create(StringDefines.Key_30857, StringDefines.Key_5288, 0, StringDefines.Key_30856));
     data.Add(StringDefines.Key_6673, DeclareHorseStar.Create(StringDefines.Key_30858, StringDefines.Key_6673, 0, StringDefines.Key_30859));
     data.Add(StringDefines.Key_6677, DeclareHorseStar.Create(StringDefines.Key_30860, StringDefines.Key_6677, 0, StringDefines.Key_30861));
     data.Add(StringDefines.Key_28, DeclareHorseStar.Create(StringDefines.Key_30862, StringDefines.Key_28, 0, StringDefines.Key_30861));
     data.Add(StringDefines.Key_6681, DeclareHorseStar.Create(StringDefines.Key_30862, StringDefines.Key_6681, 0, StringDefines.Key_30811));
     data.Add(StringDefines.Key_5137, DeclareHorseStar.Create(StringDefines.Key_30863, StringDefines.Key_5137, 0, StringDefines.Key_30864));
     data.Add(StringDefines.Key_5140, DeclareHorseStar.Create(StringDefines.Key_30865, StringDefines.Key_5140, 0, StringDefines.Key_30866));
     data.Add(StringDefines.Key_5143, DeclareHorseStar.Create(StringDefines.Key_30867, StringDefines.Key_5143, 0, StringDefines.Key_30866));
     data.Add(StringDefines.Key_5146, DeclareHorseStar.Create(StringDefines.Key_30868, StringDefines.Key_5146, 0, StringDefines.Key_30869));
     data.Add(StringDefines.Key_5149, DeclareHorseStar.Create(StringDefines.Key_30870, StringDefines.Key_5149, 0, StringDefines.Key_30871));
     data.Add(StringDefines.Key_6701, DeclareHorseStar.Create(StringDefines.Key_30872, StringDefines.Key_6701, 0, StringDefines.Key_30871));
     data.Add(StringDefines.Key_6705, DeclareHorseStar.Create(StringDefines.Key_30873, StringDefines.Key_6705, 0, StringDefines.Key_30874));
     data.Add(StringDefines.Key_6709, DeclareHorseStar.Create(StringDefines.Key_30875, StringDefines.Key_6709, 0, StringDefines.Key_30874));
     data.Add(StringDefines.Key_6713, DeclareHorseStar.Create(StringDefines.Key_30876, StringDefines.Key_6713, 1, StringDefines.Key_30877));
     data.Add(StringDefines.Key_12422, DeclareHorseStar.Create(StringDefines.Key_30878, StringDefines.Key_12422, 1, StringDefines.Key_30879));
     data.Add(StringDefines.Key_6717, DeclareHorseStar.Create(StringDefines.Key_30878, StringDefines.Key_6717, 0, StringDefines.Key_30811));
     data.Add(StringDefines.Key_6722, DeclareHorseStar.Create(StringDefines.Key_30880, StringDefines.Key_6722, 0, StringDefines.Key_30879));
     data.Add(StringDefines.Key_6726, DeclareHorseStar.Create(StringDefines.Key_30881, StringDefines.Key_6726, 0, StringDefines.Key_30882));
     data.Add(StringDefines.Key_6730, DeclareHorseStar.Create(StringDefines.Key_30883, StringDefines.Key_6730, 0, StringDefines.Key_30884));
     data.Add(StringDefines.Key_6734, DeclareHorseStar.Create(StringDefines.Key_30885, StringDefines.Key_6734, 0, StringDefines.Key_30884));
     data.Add(StringDefines.Key_3166, DeclareHorseStar.Create(StringDefines.Key_30886, StringDefines.Key_3166, 0, StringDefines.Key_30887));
     data.Add(StringDefines.Key_6741, DeclareHorseStar.Create(StringDefines.Key_30888, StringDefines.Key_6741, 0, StringDefines.Key_30887));
     data.Add(StringDefines.Key_6745, DeclareHorseStar.Create(StringDefines.Key_30889, StringDefines.Key_6745, 0, StringDefines.Key_30890));
     data.Add(StringDefines.Key_6749, DeclareHorseStar.Create(StringDefines.Key_30891, StringDefines.Key_6749, 0, StringDefines.Key_30892));
     data.Add(StringDefines.Key_6753, DeclareHorseStar.Create(StringDefines.Key_30893, StringDefines.Key_6753, 1, StringDefines.Key_30892));
     data.Add(StringDefines.Key_12629, DeclareHorseStar.Create(StringDefines.Key_30894, StringDefines.Key_12629, 1, StringDefines.Key_30895));
     data.Add(StringDefines.Key_6757, DeclareHorseStar.Create(StringDefines.Key_30894, StringDefines.Key_6757, 0, StringDefines.Key_30811));
     data.Add(StringDefines.Key_6762, DeclareHorseStar.Create(StringDefines.Key_30896, StringDefines.Key_6762, 0, StringDefines.Key_30895));
     data.Add(StringDefines.Key_6766, DeclareHorseStar.Create(StringDefines.Key_30897, StringDefines.Key_6766, 0, StringDefines.Key_30898));
     data.Add(StringDefines.Key_6770, DeclareHorseStar.Create(StringDefines.Key_30899, StringDefines.Key_6770, 0, StringDefines.Key_30900));
     data.Add(StringDefines.Key_6774, DeclareHorseStar.Create(StringDefines.Key_30901, StringDefines.Key_6774, 0, StringDefines.Key_30900));
     data.Add(StringDefines.Key_6778, DeclareHorseStar.Create(StringDefines.Key_30902, StringDefines.Key_6778, 0, StringDefines.Key_30903));
     data.Add(StringDefines.Key_3176, DeclareHorseStar.Create(StringDefines.Key_30904, StringDefines.Key_3176, 0, StringDefines.Key_30903));
     data.Add(StringDefines.Key_6785, DeclareHorseStar.Create(StringDefines.Key_30905, StringDefines.Key_6785, 0, StringDefines.Key_30906));
     data.Add(StringDefines.Key_6789, DeclareHorseStar.Create(StringDefines.Key_30907, StringDefines.Key_6789, 0, StringDefines.Key_30908));
     data.Add(StringDefines.Key_6793, DeclareHorseStar.Create(StringDefines.Key_30909, StringDefines.Key_6793, 1, StringDefines.Key_30908));
     data.Add(StringDefines.Key_30911, DeclareHorseStar.Create(StringDefines.Key_30910, StringDefines.Key_30911, 1, StringDefines.Key_30912));
     data.Add(StringDefines.Key_6797, DeclareHorseStar.Create(StringDefines.Key_30910, StringDefines.Key_6797, 0, StringDefines.Key_30811));
     data.Add(StringDefines.Key_134, DeclareHorseStar.Create(StringDefines.Key_30913, StringDefines.Key_134, 0, StringDefines.Key_30912));
     data.Add(StringDefines.Key_6805, DeclareHorseStar.Create(StringDefines.Key_30914, StringDefines.Key_6805, 0, StringDefines.Key_30915));
     data.Add(StringDefines.Key_6809, DeclareHorseStar.Create(StringDefines.Key_30916, StringDefines.Key_6809, 0, StringDefines.Key_30917));
     data.Add(StringDefines.Key_6813, DeclareHorseStar.Create(StringDefines.Key_30918, StringDefines.Key_6813, 0, StringDefines.Key_30917));
     data.Add(StringDefines.Key_6817, DeclareHorseStar.Create(StringDefines.Key_30919, StringDefines.Key_6817, 0, StringDefines.Key_30920));
     data.Add(StringDefines.Key_6821, DeclareHorseStar.Create(StringDefines.Key_30921, StringDefines.Key_6821, 0, StringDefines.Key_30920));
     data.Add(StringDefines.Key_3201, DeclareHorseStar.Create(StringDefines.Key_30922, StringDefines.Key_3201, 0, StringDefines.Key_30923));
     data.Add(StringDefines.Key_6828, DeclareHorseStar.Create(StringDefines.Key_30924, StringDefines.Key_6828, 0, StringDefines.Key_30925));
     data.Add(StringDefines.Key_6832, DeclareHorseStar.Create(StringDefines.Key_30926, StringDefines.Key_6832, 1, StringDefines.Key_30925));
     data.Add(StringDefines.Key_9652, DeclareHorseStar.Create(StringDefines.Key_30927, StringDefines.Key_9652, 1, StringDefines.Key_30928));
     data.Add(StringDefines.Key_6836, DeclareHorseStar.Create(StringDefines.Key_30927, StringDefines.Key_6836, 0, StringDefines.Key_30811));
     data.Add(StringDefines.Key_177, DeclareHorseStar.Create(StringDefines.Key_30929, StringDefines.Key_177, 0, StringDefines.Key_30928));
     data.Add(StringDefines.Key_6844, DeclareHorseStar.Create(StringDefines.Key_30930, StringDefines.Key_6844, 0, StringDefines.Key_30931));
     data.Add(StringDefines.Key_6848, DeclareHorseStar.Create(StringDefines.Key_30932, StringDefines.Key_6848, 0, StringDefines.Key_30933));
     data.Add(StringDefines.Key_6852, DeclareHorseStar.Create(StringDefines.Key_30934, StringDefines.Key_6852, 0, StringDefines.Key_30933));
     data.Add(StringDefines.Key_6856, DeclareHorseStar.Create(StringDefines.Key_30935, StringDefines.Key_6856, 0, StringDefines.Key_30936));
     data.Add(StringDefines.Key_6860, DeclareHorseStar.Create(StringDefines.Key_30937, StringDefines.Key_6860, 0, StringDefines.Key_30936));
     data.Add(StringDefines.Key_6864, DeclareHorseStar.Create(StringDefines.Key_30938, StringDefines.Key_6864, 0, StringDefines.Key_30939));
     data.Add(StringDefines.Key_3214, DeclareHorseStar.Create(StringDefines.Key_30940, StringDefines.Key_3214, 0, StringDefines.Key_30939));
     data.Add(StringDefines.Key_6871, DeclareHorseStar.Create(StringDefines.Key_30941, StringDefines.Key_6871, 1, StringDefines.Key_30942));
     data.Add(StringDefines.Key_30944, DeclareHorseStar.Create(StringDefines.Key_30943, StringDefines.Key_30944, 1, StringDefines.Key_30945));
     data.Add(StringDefines.Key_6875, DeclareHorseStar.Create(StringDefines.Key_30943, StringDefines.Key_6875, 0, StringDefines.Key_30811));
     data.Add(StringDefines.Key_6880, DeclareHorseStar.Create(StringDefines.Key_30946, StringDefines.Key_6880, 0, StringDefines.Key_30945));
     data.Add(StringDefines.Key_6884, DeclareHorseStar.Create(StringDefines.Key_30947, StringDefines.Key_6884, 0, StringDefines.Key_30948));
     data.Add(StringDefines.Key_3962, DeclareHorseStar.Create(StringDefines.Key_30949, StringDefines.Key_3962, 0, StringDefines.Key_30948));
     data.Add(StringDefines.Key_6891, DeclareHorseStar.Create(StringDefines.Key_30950, StringDefines.Key_6891, 0, StringDefines.Key_30951));
     data.Add(StringDefines.Key_6895, DeclareHorseStar.Create(StringDefines.Key_30952, StringDefines.Key_6895, 0, StringDefines.Key_30953));
     data.Add(StringDefines.Key_6899, DeclareHorseStar.Create(StringDefines.Key_30954, StringDefines.Key_6899, 0, StringDefines.Key_30953));
     data.Add(StringDefines.Key_6903, DeclareHorseStar.Create(StringDefines.Key_30955, StringDefines.Key_6903, 0, StringDefines.Key_30956));
     data.Add(StringDefines.Key_6907, DeclareHorseStar.Create(StringDefines.Key_30957, StringDefines.Key_6907, 0, StringDefines.Key_30956));
     data.Add(StringDefines.Key_3234, DeclareHorseStar.Create(StringDefines.Key_30958, StringDefines.Key_3234, 1, StringDefines.Key_30959));
     data.Add(StringDefines.Key_30961, DeclareHorseStar.Create(StringDefines.Key_30960, StringDefines.Key_30961, 1, StringDefines.Key_30959));
     data.Add(StringDefines.Key_6914, DeclareHorseStar.Create(StringDefines.Key_30960, StringDefines.Key_6914, 0, StringDefines.Key_30811));
     data.Add(StringDefines.Key_6919, DeclareHorseStar.Create(StringDefines.Key_30962, StringDefines.Key_6919, 0, StringDefines.Key_30963));
     data.Add(StringDefines.Key_6923, DeclareHorseStar.Create(StringDefines.Key_30964, StringDefines.Key_6923, 0, StringDefines.Key_30965));
     data.Add(StringDefines.Key_6927, DeclareHorseStar.Create(StringDefines.Key_30966, StringDefines.Key_6927, 0, StringDefines.Key_30965));
     data.Add(StringDefines.Key_6931, DeclareHorseStar.Create(StringDefines.Key_30967, StringDefines.Key_6931, 0, StringDefines.Key_30968));
     data.Add(StringDefines.Key_6935, DeclareHorseStar.Create(StringDefines.Key_30969, StringDefines.Key_6935, 0, StringDefines.Key_30968));
     data.Add(StringDefines.Key_6939, DeclareHorseStar.Create(StringDefines.Key_30970, StringDefines.Key_6939, 0, StringDefines.Key_30971));
     data.Add(StringDefines.Key_6943, DeclareHorseStar.Create(StringDefines.Key_30972, StringDefines.Key_6943, 0, StringDefines.Key_30971));
     data.Add(StringDefines.Key_6947, DeclareHorseStar.Create(StringDefines.Key_30973, StringDefines.Key_6947, 0, StringDefines.Key_30974));
     data.Add(StringDefines.Key_6951, DeclareHorseStar.Create(StringDefines.Key_30975, StringDefines.Key_6951, 1, StringDefines.Key_30976));
     data.Add(StringDefines.Key_3164, DeclareHorseStar.Create(StringDefines.Key_30977, StringDefines.Key_3164, 1, StringDefines.Key_30976));
 }