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

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareSoulBeastsEquip>(60);
                    foreach (var item in dic)
                    {
                        DeclareSoulBeastsEquip tmp = new DeclareSoulBeastsEquip();
                        tmp.Attribute1       = CfgStringLua.Get(item.Value[0]);
                        tmp.Bind             = item.Value[1];
                        tmp.BlueSpecialAtt   = CfgStringLua.Get(item.Value[2]);
                        tmp.Confirm          = item.Value[3];
                        tmp.DiamondNumber    = item.Value[4];
                        tmp.Id               = item.Value[5];
                        tmp.Part             = item.Value[6];
                        tmp.PurpleSpecialAtt = CfgStringLua.Get(item.Value[7]);
                        tmp.Quality          = item.Value[8];
                        tmp.RecommendedTips  = CfgStringLua.Get(item.Value[9]);
                        tmp.SealExp          = item.Value[10];
                        tmp.SpecialAttNum    = CfgStringLua.Get(item.Value[11]);

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "SoulBeastsEquip");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareSoulBeastsEquip>(60);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "SoulBeastsEquip");
                }
            }
        }
Beispiel #2
0
        public static DeclareSoulBeastsEquip Create(string in_attribute1, int in_bind, string in_blueSpecialAtt, int in_confirm, int in_diamond_Number, int in_id, int in_part, string in_purpleSpecialAtt, int in_quality, string in_recommended_tips, int in_seal_exp, string in_specialAttNum)
        {
            DeclareSoulBeastsEquip tmp = new DeclareSoulBeastsEquip();

            tmp._attribute1       = in_attribute1;
            tmp._bind             = in_bind;
            tmp._blueSpecialAtt   = in_blueSpecialAtt;
            tmp._confirm          = in_confirm;
            tmp._diamond_Number   = in_diamond_Number;
            tmp._id               = in_id;
            tmp._part             = in_part;
            tmp._purpleSpecialAtt = in_purpleSpecialAtt;
            tmp._quality          = in_quality;
            tmp._recommended_tips = in_recommended_tips;
            tmp._seal_exp         = in_seal_exp;
            tmp._specialAttNum    = in_specialAttNum;

            return(tmp);
        }
Beispiel #3
0
 public static void Convert(Dictionary <int, DeclareSoulBeastsEquip> data)
 {
     if (data == null)
     {
         return;
     }
     data.Clear();
     data.Add(2000001, DeclareSoulBeastsEquip.Create(StringDefines.Key_34552, 0, StringDefines.Key_34553, 1, 0, 2000001, 1, StringDefines.Key_34554, 3, StringDefines.Key_20, 37, StringDefines.Key_6631));
     data.Add(2000002, DeclareSoulBeastsEquip.Create(StringDefines.Key_34555, 0, StringDefines.Key_34553, 1, 0, 2000002, 2, StringDefines.Key_34554, 3, StringDefines.Key_20, 38, StringDefines.Key_6631));
     data.Add(2000003, DeclareSoulBeastsEquip.Create(StringDefines.Key_34556, 0, StringDefines.Key_34553, 1, 0, 2000003, 3, StringDefines.Key_34554, 3, StringDefines.Key_20, 40, StringDefines.Key_6631));
     data.Add(2000004, DeclareSoulBeastsEquip.Create(StringDefines.Key_34557, 0, StringDefines.Key_34553, 1, 0, 2000004, 4, StringDefines.Key_34554, 3, StringDefines.Key_20, 42, StringDefines.Key_6631));
     data.Add(2000005, DeclareSoulBeastsEquip.Create(StringDefines.Key_34558, 0, StringDefines.Key_34553, 1, 0, 2000005, 5, StringDefines.Key_34554, 3, StringDefines.Key_20, 44, StringDefines.Key_6631));
     data.Add(2000006, DeclareSoulBeastsEquip.Create(StringDefines.Key_34559, 0, StringDefines.Key_34553, 1, 0, 2000006, 1, StringDefines.Key_34554, 4, StringDefines.Key_20, 162, StringDefines.Key_6631));
     data.Add(2000007, DeclareSoulBeastsEquip.Create(StringDefines.Key_34560, 0, StringDefines.Key_34553, 1, 0, 2000007, 2, StringDefines.Key_34554, 4, StringDefines.Key_20, 171, StringDefines.Key_6631));
     data.Add(2000008, DeclareSoulBeastsEquip.Create(StringDefines.Key_34561, 0, StringDefines.Key_34553, 1, 0, 2000008, 3, StringDefines.Key_34554, 4, StringDefines.Key_20, 180, StringDefines.Key_6631));
     data.Add(2000009, DeclareSoulBeastsEquip.Create(StringDefines.Key_34562, 0, StringDefines.Key_34553, 1, 0, 2000009, 4, StringDefines.Key_34554, 4, StringDefines.Key_20, 189, StringDefines.Key_6631));
     data.Add(2000010, DeclareSoulBeastsEquip.Create(StringDefines.Key_34563, 0, StringDefines.Key_34553, 1, 0, 2000010, 5, StringDefines.Key_34554, 4, StringDefines.Key_20, 198, StringDefines.Key_6631));
     data.Add(2000011, DeclareSoulBeastsEquip.Create(StringDefines.Key_34559, 0, StringDefines.Key_34553, 1, 1, 2000011, 1, StringDefines.Key_34554, 4, StringDefines.Key_20, 162, StringDefines.Key_5111));
     data.Add(2000012, DeclareSoulBeastsEquip.Create(StringDefines.Key_34560, 0, StringDefines.Key_34553, 1, 1, 2000012, 2, StringDefines.Key_34554, 4, StringDefines.Key_20, 171, StringDefines.Key_5111));
     data.Add(2000013, DeclareSoulBeastsEquip.Create(StringDefines.Key_34561, 0, StringDefines.Key_34553, 1, 1, 2000013, 3, StringDefines.Key_34554, 4, StringDefines.Key_20, 180, StringDefines.Key_5111));
     data.Add(2000014, DeclareSoulBeastsEquip.Create(StringDefines.Key_34562, 0, StringDefines.Key_34553, 1, 1, 2000014, 4, StringDefines.Key_34554, 4, StringDefines.Key_20, 189, StringDefines.Key_5111));
     data.Add(2000015, DeclareSoulBeastsEquip.Create(StringDefines.Key_34563, 0, StringDefines.Key_34553, 1, 1, 2000015, 5, StringDefines.Key_34554, 4, StringDefines.Key_20, 198, StringDefines.Key_5111));
     data.Add(2000016, DeclareSoulBeastsEquip.Create(StringDefines.Key_34559, 0, StringDefines.Key_34553, 1, 2, 2000016, 1, StringDefines.Key_34554, 4, StringDefines.Key_20, 162, StringDefines.Key_3151));
     data.Add(2000017, DeclareSoulBeastsEquip.Create(StringDefines.Key_34560, 0, StringDefines.Key_34553, 1, 2, 2000017, 2, StringDefines.Key_34554, 4, StringDefines.Key_20, 171, StringDefines.Key_3151));
     data.Add(2000018, DeclareSoulBeastsEquip.Create(StringDefines.Key_34561, 0, StringDefines.Key_34553, 1, 2, 2000018, 3, StringDefines.Key_34554, 4, StringDefines.Key_20, 180, StringDefines.Key_3151));
     data.Add(2000019, DeclareSoulBeastsEquip.Create(StringDefines.Key_34562, 0, StringDefines.Key_34553, 1, 2, 2000019, 4, StringDefines.Key_34554, 4, StringDefines.Key_20, 189, StringDefines.Key_3151));
     data.Add(2000020, DeclareSoulBeastsEquip.Create(StringDefines.Key_34563, 0, StringDefines.Key_34553, 1, 2, 2000020, 5, StringDefines.Key_34554, 4, StringDefines.Key_20, 198, StringDefines.Key_3151));
     data.Add(2000021, DeclareSoulBeastsEquip.Create(StringDefines.Key_34564, 0, StringDefines.Key_34565, 1, 1, 2000021, 1, StringDefines.Key_34566, 5, StringDefines.Key_20, 429, StringDefines.Key_5111));
     data.Add(2000022, DeclareSoulBeastsEquip.Create(StringDefines.Key_34567, 0, StringDefines.Key_34565, 1, 1, 2000022, 2, StringDefines.Key_34566, 5, StringDefines.Key_20, 453, StringDefines.Key_5111));
     data.Add(2000023, DeclareSoulBeastsEquip.Create(StringDefines.Key_34568, 0, StringDefines.Key_34565, 1, 1, 2000023, 3, StringDefines.Key_34566, 5, StringDefines.Key_20, 477, StringDefines.Key_5111));
     data.Add(2000024, DeclareSoulBeastsEquip.Create(StringDefines.Key_34569, 0, StringDefines.Key_34565, 1, 1, 2000024, 4, StringDefines.Key_34566, 5, StringDefines.Key_20, 500, StringDefines.Key_5111));
     data.Add(2000025, DeclareSoulBeastsEquip.Create(StringDefines.Key_34570, 0, StringDefines.Key_34565, 1, 1, 2000025, 5, StringDefines.Key_34566, 5, StringDefines.Key_20, 524, StringDefines.Key_5111));
     data.Add(2000026, DeclareSoulBeastsEquip.Create(StringDefines.Key_34564, 0, StringDefines.Key_34565, 1, 2, 2000026, 1, StringDefines.Key_34566, 5, StringDefines.Key_20, 429, StringDefines.Key_3151));
     data.Add(2000027, DeclareSoulBeastsEquip.Create(StringDefines.Key_34567, 0, StringDefines.Key_34565, 1, 2, 2000027, 2, StringDefines.Key_34566, 5, StringDefines.Key_20, 453, StringDefines.Key_3151));
     data.Add(2000028, DeclareSoulBeastsEquip.Create(StringDefines.Key_34568, 0, StringDefines.Key_34565, 1, 2, 2000028, 3, StringDefines.Key_34566, 5, StringDefines.Key_20, 477, StringDefines.Key_3151));
     data.Add(2000029, DeclareSoulBeastsEquip.Create(StringDefines.Key_34569, 0, StringDefines.Key_34565, 1, 2, 2000029, 4, StringDefines.Key_34566, 5, StringDefines.Key_20, 500, StringDefines.Key_3151));
     data.Add(2000030, DeclareSoulBeastsEquip.Create(StringDefines.Key_34570, 0, StringDefines.Key_34565, 1, 2, 2000030, 5, StringDefines.Key_34566, 5, StringDefines.Key_20, 524, StringDefines.Key_3151));
     data.Add(2000031, DeclareSoulBeastsEquip.Create(StringDefines.Key_34564, 0, StringDefines.Key_34565, 1, 3, 2000031, 1, StringDefines.Key_34566, 5, StringDefines.Key_20, 429, StringDefines.Key_34571));
     data.Add(2000032, DeclareSoulBeastsEquip.Create(StringDefines.Key_34567, 0, StringDefines.Key_34565, 1, 3, 2000032, 2, StringDefines.Key_34566, 5, StringDefines.Key_20, 453, StringDefines.Key_34571));
     data.Add(2000033, DeclareSoulBeastsEquip.Create(StringDefines.Key_34568, 0, StringDefines.Key_34565, 1, 3, 2000033, 3, StringDefines.Key_34566, 5, StringDefines.Key_20, 477, StringDefines.Key_34571));
     data.Add(2000034, DeclareSoulBeastsEquip.Create(StringDefines.Key_34569, 0, StringDefines.Key_34565, 1, 3, 2000034, 4, StringDefines.Key_34566, 5, StringDefines.Key_20, 500, StringDefines.Key_34571));
     data.Add(2000035, DeclareSoulBeastsEquip.Create(StringDefines.Key_34570, 0, StringDefines.Key_34565, 1, 3, 2000035, 5, StringDefines.Key_34566, 5, StringDefines.Key_20, 524, StringDefines.Key_34571));
     data.Add(2000036, DeclareSoulBeastsEquip.Create(StringDefines.Key_34572, 0, StringDefines.Key_34573, 1, 2, 2000036, 1, StringDefines.Key_34574, 6, StringDefines.Key_20, 1502, StringDefines.Key_3151));
     data.Add(2000037, DeclareSoulBeastsEquip.Create(StringDefines.Key_34575, 0, StringDefines.Key_34573, 1, 2, 2000037, 2, StringDefines.Key_34574, 6, StringDefines.Key_20, 1586, StringDefines.Key_3151));
     data.Add(2000038, DeclareSoulBeastsEquip.Create(StringDefines.Key_34576, 0, StringDefines.Key_34573, 1, 2, 2000038, 3, StringDefines.Key_34574, 6, StringDefines.Key_20, 1669, StringDefines.Key_3151));
     data.Add(2000039, DeclareSoulBeastsEquip.Create(StringDefines.Key_34577, 0, StringDefines.Key_34573, 1, 2, 2000039, 4, StringDefines.Key_34574, 6, StringDefines.Key_20, 1752, StringDefines.Key_3151));
     data.Add(2000040, DeclareSoulBeastsEquip.Create(StringDefines.Key_34578, 0, StringDefines.Key_34573, 1, 2, 2000040, 5, StringDefines.Key_34574, 6, StringDefines.Key_20, 1836, StringDefines.Key_3151));
     data.Add(2000041, DeclareSoulBeastsEquip.Create(StringDefines.Key_34572, 0, StringDefines.Key_34573, 1, 3, 2000041, 1, StringDefines.Key_34574, 6, StringDefines.Key_20, 1502, StringDefines.Key_34571));
     data.Add(2000042, DeclareSoulBeastsEquip.Create(StringDefines.Key_34575, 0, StringDefines.Key_34573, 1, 3, 2000042, 2, StringDefines.Key_34574, 6, StringDefines.Key_20, 1586, StringDefines.Key_34571));
     data.Add(2000043, DeclareSoulBeastsEquip.Create(StringDefines.Key_34576, 0, StringDefines.Key_34573, 1, 3, 2000043, 3, StringDefines.Key_34574, 6, StringDefines.Key_20, 1669, StringDefines.Key_34571));
     data.Add(2000044, DeclareSoulBeastsEquip.Create(StringDefines.Key_34577, 0, StringDefines.Key_34573, 1, 3, 2000044, 4, StringDefines.Key_34574, 6, StringDefines.Key_20, 1752, StringDefines.Key_34571));
     data.Add(2000045, DeclareSoulBeastsEquip.Create(StringDefines.Key_34578, 0, StringDefines.Key_34573, 1, 3, 2000045, 5, StringDefines.Key_34574, 6, StringDefines.Key_20, 1836, StringDefines.Key_34571));
     data.Add(2000046, DeclareSoulBeastsEquip.Create(StringDefines.Key_34579, 0, StringDefines.Key_34580, 1, 2, 2000046, 1, StringDefines.Key_34581, 7, StringDefines.Key_20, 5258, StringDefines.Key_3151));
     data.Add(2000047, DeclareSoulBeastsEquip.Create(StringDefines.Key_34582, 0, StringDefines.Key_34580, 1, 2, 2000047, 2, StringDefines.Key_34581, 7, StringDefines.Key_20, 5551, StringDefines.Key_3151));
     data.Add(2000048, DeclareSoulBeastsEquip.Create(StringDefines.Key_34583, 0, StringDefines.Key_34580, 1, 2, 2000048, 3, StringDefines.Key_34581, 7, StringDefines.Key_20, 5843, StringDefines.Key_3151));
     data.Add(2000049, DeclareSoulBeastsEquip.Create(StringDefines.Key_34584, 0, StringDefines.Key_34580, 1, 2, 2000049, 4, StringDefines.Key_34581, 7, StringDefines.Key_20, 6135, StringDefines.Key_3151));
     data.Add(2000050, DeclareSoulBeastsEquip.Create(StringDefines.Key_34585, 0, StringDefines.Key_34580, 1, 2, 2000050, 5, StringDefines.Key_34581, 7, StringDefines.Key_20, 6427, StringDefines.Key_3151));
     data.Add(2000051, DeclareSoulBeastsEquip.Create(StringDefines.Key_34579, 0, StringDefines.Key_34580, 1, 3, 2000051, 1, StringDefines.Key_34581, 7, StringDefines.Key_20, 5258, StringDefines.Key_34571));
     data.Add(2000052, DeclareSoulBeastsEquip.Create(StringDefines.Key_34582, 0, StringDefines.Key_34580, 1, 3, 2000052, 2, StringDefines.Key_34581, 7, StringDefines.Key_20, 5551, StringDefines.Key_34571));
     data.Add(2000053, DeclareSoulBeastsEquip.Create(StringDefines.Key_34583, 0, StringDefines.Key_34580, 1, 3, 2000053, 3, StringDefines.Key_34581, 7, StringDefines.Key_20, 5843, StringDefines.Key_34571));
     data.Add(2000054, DeclareSoulBeastsEquip.Create(StringDefines.Key_34584, 0, StringDefines.Key_34580, 1, 3, 2000054, 4, StringDefines.Key_34581, 7, StringDefines.Key_20, 6135, StringDefines.Key_34571));
     data.Add(2000055, DeclareSoulBeastsEquip.Create(StringDefines.Key_34585, 0, StringDefines.Key_34580, 1, 3, 2000055, 5, StringDefines.Key_34581, 7, StringDefines.Key_20, 6427, StringDefines.Key_34571));
     data.Add(2000056, DeclareSoulBeastsEquip.Create(StringDefines.Key_34586, 0, StringDefines.Key_34580, 1, 3, 2000056, 1, StringDefines.Key_34587, 8, StringDefines.Key_20, 15776, StringDefines.Key_34571));
     data.Add(2000057, DeclareSoulBeastsEquip.Create(StringDefines.Key_34588, 0, StringDefines.Key_34580, 1, 3, 2000057, 2, StringDefines.Key_34587, 8, StringDefines.Key_20, 16653, StringDefines.Key_34571));
     data.Add(2000058, DeclareSoulBeastsEquip.Create(StringDefines.Key_34589, 0, StringDefines.Key_34580, 1, 3, 2000058, 3, StringDefines.Key_34587, 8, StringDefines.Key_20, 17529, StringDefines.Key_34571));
     data.Add(2000059, DeclareSoulBeastsEquip.Create(StringDefines.Key_34590, 0, StringDefines.Key_34580, 1, 3, 2000059, 4, StringDefines.Key_34587, 8, StringDefines.Key_20, 18406, StringDefines.Key_34571));
     data.Add(2000060, DeclareSoulBeastsEquip.Create(StringDefines.Key_34591, 0, StringDefines.Key_34580, 1, 3, 2000060, 5, StringDefines.Key_34587, 8, StringDefines.Key_20, 19282, StringDefines.Key_34571));
 }