示例#1
0
 public static void Convert(Dictionary <int, DeclareEquipSuit> data)
 {
     if (data == null)
     {
         return;
     }
     data.Clear();
     data.Add(10001, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5151, StringDefines.Key_5152, StringDefines.Key_5153, 10001, 1, StringDefines.Key_5154, StringDefines.Key_2337, 0, StringDefines.Key_5155, StringDefines.Key_5156, StringDefines.Key_5157, 5, 0, StringDefines.Key_5158));
     data.Add(10002, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5159, StringDefines.Key_5160, StringDefines.Key_5161, 10002, 1, StringDefines.Key_5162, StringDefines.Key_2265, 0, StringDefines.Key_5155, StringDefines.Key_5163, StringDefines.Key_5157, 5, 0, StringDefines.Key_5158));
     data.Add(10003, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5164, StringDefines.Key_5165, StringDefines.Key_5166, 10003, 1, StringDefines.Key_5167, StringDefines.Key_2321, 0, StringDefines.Key_5155, StringDefines.Key_5168, StringDefines.Key_5157, 5, 0, StringDefines.Key_5158));
     data.Add(10004, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5169, StringDefines.Key_5170, StringDefines.Key_5171, 10004, 1, StringDefines.Key_5172, StringDefines.Key_2197, 0, StringDefines.Key_5155, StringDefines.Key_5173, StringDefines.Key_5157, 5, 0, StringDefines.Key_5158));
     data.Add(10005, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5174, StringDefines.Key_5175, StringDefines.Key_5176, 10005, 1, StringDefines.Key_5177, StringDefines.Key_2289, 0, StringDefines.Key_5155, StringDefines.Key_5178, StringDefines.Key_5157, 5, 0, StringDefines.Key_5158));
     data.Add(10006, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5179, StringDefines.Key_5180, StringDefines.Key_5181, 10006, 1, StringDefines.Key_5182, StringDefines.Key_2213, 0, StringDefines.Key_5155, StringDefines.Key_5183, StringDefines.Key_5157, 5, 0, StringDefines.Key_5158));
     data.Add(10007, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5184, StringDefines.Key_5185, StringDefines.Key_5186, 10007, 1, StringDefines.Key_5187, StringDefines.Key_2253, 0, StringDefines.Key_5155, StringDefines.Key_5188, StringDefines.Key_5157, 5, 0, StringDefines.Key_5158));
     data.Add(10008, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5189, StringDefines.Key_5190, StringDefines.Key_5191, 10008, 1, StringDefines.Key_5192, StringDefines.Key_2341, 0, StringDefines.Key_5155, StringDefines.Key_5193, StringDefines.Key_5157, 5, 0, StringDefines.Key_5158));
     data.Add(10009, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5194, StringDefines.Key_5195, StringDefines.Key_5196, 10009, 1, StringDefines.Key_5197, StringDefines.Key_2205, 0, StringDefines.Key_5155, StringDefines.Key_5198, StringDefines.Key_5157, 5, 0, StringDefines.Key_5158));
     data.Add(10010, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5199, StringDefines.Key_5200, StringDefines.Key_5201, 10010, 1, StringDefines.Key_5202, StringDefines.Key_2269, 0, StringDefines.Key_5155, StringDefines.Key_5203, StringDefines.Key_5157, 5, 0, StringDefines.Key_5158));
     data.Add(10011, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5204, StringDefines.Key_5205, StringDefines.Key_5206, 10011, 1, StringDefines.Key_5207, StringDefines.Key_2333, 0, StringDefines.Key_5155, StringDefines.Key_5208, StringDefines.Key_5157, 5, 0, StringDefines.Key_5158));
     data.Add(10012, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5204, StringDefines.Key_5205, StringDefines.Key_5206, 10012, 1, StringDefines.Key_5209, StringDefines.Key_2241, 0, StringDefines.Key_5155, StringDefines.Key_5210, StringDefines.Key_5157, 5, 0, StringDefines.Key_5158));
     data.Add(11001, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5151, StringDefines.Key_5152, StringDefines.Key_5153, 11001, 1, StringDefines.Key_5154, StringDefines.Key_2337, 0, StringDefines.Key_5211, StringDefines.Key_5212, StringDefines.Key_5157, 5, 0, StringDefines.Key_5158));
     data.Add(11002, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5159, StringDefines.Key_5160, StringDefines.Key_5161, 11002, 1, StringDefines.Key_5162, StringDefines.Key_2265, 0, StringDefines.Key_5211, StringDefines.Key_5213, StringDefines.Key_5157, 5, 0, StringDefines.Key_5158));
     data.Add(11003, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5164, StringDefines.Key_5165, StringDefines.Key_5166, 11003, 1, StringDefines.Key_5167, StringDefines.Key_2321, 0, StringDefines.Key_5211, StringDefines.Key_5214, StringDefines.Key_5157, 5, 0, StringDefines.Key_5158));
     data.Add(11004, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5169, StringDefines.Key_5170, StringDefines.Key_5171, 11004, 1, StringDefines.Key_5172, StringDefines.Key_2197, 0, StringDefines.Key_5211, StringDefines.Key_5215, StringDefines.Key_5157, 5, 0, StringDefines.Key_5158));
     data.Add(11005, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5174, StringDefines.Key_5175, StringDefines.Key_5176, 11005, 1, StringDefines.Key_5177, StringDefines.Key_2289, 0, StringDefines.Key_5211, StringDefines.Key_5216, StringDefines.Key_5157, 5, 0, StringDefines.Key_5158));
     data.Add(11006, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5179, StringDefines.Key_5180, StringDefines.Key_5181, 11006, 1, StringDefines.Key_5182, StringDefines.Key_2213, 0, StringDefines.Key_5211, StringDefines.Key_5217, StringDefines.Key_5157, 5, 0, StringDefines.Key_5158));
     data.Add(11007, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5184, StringDefines.Key_5185, StringDefines.Key_5186, 11007, 1, StringDefines.Key_5187, StringDefines.Key_2253, 0, StringDefines.Key_5211, StringDefines.Key_5218, StringDefines.Key_5157, 5, 0, StringDefines.Key_5158));
     data.Add(11008, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5189, StringDefines.Key_5190, StringDefines.Key_5191, 11008, 1, StringDefines.Key_5192, StringDefines.Key_2341, 0, StringDefines.Key_5211, StringDefines.Key_5219, StringDefines.Key_5157, 5, 0, StringDefines.Key_5158));
     data.Add(11009, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5194, StringDefines.Key_5195, StringDefines.Key_5196, 11009, 1, StringDefines.Key_5197, StringDefines.Key_2205, 0, StringDefines.Key_5211, StringDefines.Key_5220, StringDefines.Key_5157, 5, 0, StringDefines.Key_5158));
     data.Add(11010, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5199, StringDefines.Key_5200, StringDefines.Key_5201, 11010, 1, StringDefines.Key_5202, StringDefines.Key_2269, 0, StringDefines.Key_5211, StringDefines.Key_5221, StringDefines.Key_5157, 5, 0, StringDefines.Key_5158));
     data.Add(11011, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5204, StringDefines.Key_5205, StringDefines.Key_5206, 11011, 1, StringDefines.Key_5207, StringDefines.Key_2333, 0, StringDefines.Key_5211, StringDefines.Key_5222, StringDefines.Key_5157, 5, 0, StringDefines.Key_5158));
     data.Add(11012, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5204, StringDefines.Key_5205, StringDefines.Key_5206, 11012, 1, StringDefines.Key_5209, StringDefines.Key_2241, 0, StringDefines.Key_5211, StringDefines.Key_5223, StringDefines.Key_5157, 5, 0, StringDefines.Key_5158));
     data.Add(20001, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5224, StringDefines.Key_5225, StringDefines.Key_5226, 20001, 2, StringDefines.Key_5154, StringDefines.Key_2337, 1, StringDefines.Key_5155, StringDefines.Key_5227, StringDefines.Key_5157, 5, 10001, StringDefines.Key_5228));
     data.Add(20002, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5229, StringDefines.Key_5230, StringDefines.Key_5231, 20002, 2, StringDefines.Key_5162, StringDefines.Key_2265, 1, StringDefines.Key_5155, StringDefines.Key_5232, StringDefines.Key_5157, 5, 10002, StringDefines.Key_5228));
     data.Add(20003, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5233, StringDefines.Key_5234, StringDefines.Key_5235, 20003, 2, StringDefines.Key_5167, StringDefines.Key_2321, 1, StringDefines.Key_5155, StringDefines.Key_5236, StringDefines.Key_5157, 5, 10003, StringDefines.Key_5228));
     data.Add(20004, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5237, StringDefines.Key_5238, StringDefines.Key_5239, 20004, 2, StringDefines.Key_5172, StringDefines.Key_2197, 1, StringDefines.Key_5155, StringDefines.Key_5240, StringDefines.Key_5157, 5, 10004, StringDefines.Key_5228));
     data.Add(20005, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5241, StringDefines.Key_5242, StringDefines.Key_5243, 20005, 2, StringDefines.Key_5177, StringDefines.Key_2289, 1, StringDefines.Key_5155, StringDefines.Key_5244, StringDefines.Key_5157, 5, 10005, StringDefines.Key_5228));
     data.Add(20006, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5245, StringDefines.Key_5246, StringDefines.Key_5247, 20006, 2, StringDefines.Key_5182, StringDefines.Key_2213, 1, StringDefines.Key_5155, StringDefines.Key_5248, StringDefines.Key_5157, 5, 10006, StringDefines.Key_5228));
     data.Add(20007, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5249, StringDefines.Key_5250, StringDefines.Key_5251, 20007, 2, StringDefines.Key_5187, StringDefines.Key_2253, 1, StringDefines.Key_5155, StringDefines.Key_5252, StringDefines.Key_5157, 5, 10007, StringDefines.Key_5228));
     data.Add(20008, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5253, StringDefines.Key_5254, StringDefines.Key_5255, 20008, 2, StringDefines.Key_5192, StringDefines.Key_2341, 1, StringDefines.Key_5155, StringDefines.Key_5256, StringDefines.Key_5157, 5, 10008, StringDefines.Key_5228));
     data.Add(20009, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5257, StringDefines.Key_5258, StringDefines.Key_5259, 20009, 2, StringDefines.Key_5197, StringDefines.Key_2205, 1, StringDefines.Key_5155, StringDefines.Key_5260, StringDefines.Key_5157, 5, 10009, StringDefines.Key_5228));
     data.Add(20010, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5261, StringDefines.Key_5262, StringDefines.Key_5263, 20010, 2, StringDefines.Key_5202, StringDefines.Key_2269, 1, StringDefines.Key_5155, StringDefines.Key_5264, StringDefines.Key_5157, 5, 10010, StringDefines.Key_5228));
     data.Add(20011, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5265, StringDefines.Key_5266, StringDefines.Key_5267, 20011, 2, StringDefines.Key_5207, StringDefines.Key_2333, 1, StringDefines.Key_5155, StringDefines.Key_5268, StringDefines.Key_5157, 5, 10011, StringDefines.Key_5228));
     data.Add(20012, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5265, StringDefines.Key_5266, StringDefines.Key_5267, 20012, 2, StringDefines.Key_5209, StringDefines.Key_2241, 1, StringDefines.Key_5155, StringDefines.Key_5269, StringDefines.Key_5157, 5, 10012, StringDefines.Key_5228));
     data.Add(21001, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5224, StringDefines.Key_5225, StringDefines.Key_5226, 21001, 2, StringDefines.Key_5154, StringDefines.Key_2337, 1, StringDefines.Key_5211, StringDefines.Key_5270, StringDefines.Key_5157, 5, 11001, StringDefines.Key_5228));
     data.Add(21002, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5229, StringDefines.Key_5230, StringDefines.Key_5231, 21002, 2, StringDefines.Key_5162, StringDefines.Key_2265, 1, StringDefines.Key_5211, StringDefines.Key_5271, StringDefines.Key_5157, 5, 11002, StringDefines.Key_5228));
     data.Add(21003, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5233, StringDefines.Key_5234, StringDefines.Key_5235, 21003, 2, StringDefines.Key_5167, StringDefines.Key_2321, 1, StringDefines.Key_5211, StringDefines.Key_5272, StringDefines.Key_5157, 5, 11003, StringDefines.Key_5228));
     data.Add(21004, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5237, StringDefines.Key_5238, StringDefines.Key_5239, 21004, 2, StringDefines.Key_5172, StringDefines.Key_2197, 1, StringDefines.Key_5211, StringDefines.Key_5273, StringDefines.Key_5157, 5, 11004, StringDefines.Key_5228));
     data.Add(21005, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5241, StringDefines.Key_5242, StringDefines.Key_5243, 21005, 2, StringDefines.Key_5177, StringDefines.Key_2289, 1, StringDefines.Key_5211, StringDefines.Key_5274, StringDefines.Key_5157, 5, 11005, StringDefines.Key_5228));
     data.Add(21006, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5245, StringDefines.Key_5246, StringDefines.Key_5247, 21006, 2, StringDefines.Key_5182, StringDefines.Key_2213, 1, StringDefines.Key_5211, StringDefines.Key_5275, StringDefines.Key_5157, 5, 11006, StringDefines.Key_5228));
     data.Add(21007, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5249, StringDefines.Key_5250, StringDefines.Key_5251, 21007, 2, StringDefines.Key_5187, StringDefines.Key_2253, 1, StringDefines.Key_5211, StringDefines.Key_5276, StringDefines.Key_5157, 5, 11007, StringDefines.Key_5228));
     data.Add(21008, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5253, StringDefines.Key_5254, StringDefines.Key_5255, 21008, 2, StringDefines.Key_5192, StringDefines.Key_2341, 1, StringDefines.Key_5211, StringDefines.Key_5277, StringDefines.Key_5157, 5, 11008, StringDefines.Key_5228));
     data.Add(21009, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5257, StringDefines.Key_5258, StringDefines.Key_5259, 21009, 2, StringDefines.Key_5197, StringDefines.Key_2205, 1, StringDefines.Key_5211, StringDefines.Key_5278, StringDefines.Key_5157, 5, 11009, StringDefines.Key_5228));
     data.Add(21010, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5261, StringDefines.Key_5262, StringDefines.Key_5263, 21010, 2, StringDefines.Key_5202, StringDefines.Key_2269, 1, StringDefines.Key_5211, StringDefines.Key_5279, StringDefines.Key_5157, 5, 11010, StringDefines.Key_5228));
     data.Add(21011, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5265, StringDefines.Key_5266, StringDefines.Key_5267, 21011, 2, StringDefines.Key_5207, StringDefines.Key_2333, 1, StringDefines.Key_5211, StringDefines.Key_5280, StringDefines.Key_5157, 5, 11011, StringDefines.Key_5228));
     data.Add(21012, DeclareEquipSuit.Create(StringDefines.Key_20, StringDefines.Key_5265, StringDefines.Key_5266, StringDefines.Key_5267, 21012, 2, StringDefines.Key_5209, StringDefines.Key_2241, 1, StringDefines.Key_5211, StringDefines.Key_5281, StringDefines.Key_5157, 5, 11012, StringDefines.Key_5228));
     data.Add(30001, DeclareEquipSuit.Create(StringDefines.Key_5282, StringDefines.Key_5283, StringDefines.Key_20, StringDefines.Key_20, 30001, 1, StringDefines.Key_5284, StringDefines.Key_5285, 0, StringDefines.Key_5286, StringDefines.Key_5287, StringDefines.Key_5288, 5, 0, StringDefines.Key_5158));
     data.Add(40001, DeclareEquipSuit.Create(StringDefines.Key_5289, StringDefines.Key_5290, StringDefines.Key_20, StringDefines.Key_20, 40001, 2, StringDefines.Key_5284, StringDefines.Key_5285, 1, StringDefines.Key_5286, StringDefines.Key_5291, StringDefines.Key_5288, 5, 30001, StringDefines.Key_5228));
 }
示例#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[]> >("DataEquipSuit");
                if (dic == null)
                {
                    LuaEnv.SharedLuaEnv.DoString("DataEquipSuit = require 'Lua/Config/DataEquipSuit'");
                    dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataEquipSuit");
                }

                if (dic != null)
                {
                    _dataCaches = new Dictionary <int, DeclareEquipSuit>(50);
                    foreach (var item in dic)
                    {
                        DeclareEquipSuit tmp = new DeclareEquipSuit();
                        tmp.Attribute1   = CfgStringLua.Get(item.Value[0]);
                        tmp.Attribute2   = CfgStringLua.Get(item.Value[1]);
                        tmp.Attribute4   = CfgStringLua.Get(item.Value[2]);
                        tmp.Attribute6   = CfgStringLua.Get(item.Value[3]);
                        tmp.Id           = item.Value[4];
                        tmp.Level        = item.Value[5];
                        tmp.Name         = CfgStringLua.Get(item.Value[6]);
                        tmp.NeedDegree   = CfgStringLua.Get(item.Value[7]);
                        tmp.NeedDiamonds = item.Value[8];
                        tmp.NeedGender   = CfgStringLua.Get(item.Value[9]);
                        tmp.NeedItems    = CfgStringLua.Get(item.Value[10]);
                        tmp.NeedParts    = CfgStringLua.Get(item.Value[11]);
                        tmp.NeedQuality  = item.Value[12];
                        tmp.ParentID     = item.Value[13];
                        tmp.Prefix       = CfgStringLua.Get(item.Value[14]);

                        _dataCaches.Add(item.Key, tmp);
                    }
                }
                Record(startTime, DateTime.Now.Ticks, "EquipSuit");
            }
            if (_dataCaches == null && _fillDataCallBack != null)
            {
                if (_dataCaches == null)
                {
                    long startTime = DateTime.Now.Ticks;
                    _dataCaches = new Dictionary <int, DeclareEquipSuit>(50);
                    _fillDataCallBack(_dataCaches);
                    Record(startTime, DateTime.Now.Ticks, "EquipSuit");
                }
            }
        }
示例#3
0
        public static DeclareEquipSuit Create(string in_attribute_1, string in_attribute_2, string in_attribute_4, string in_attribute_6, int in_id, int in_level, string in_name, string in_need_degree, int in_need_diamonds, string in_need_gender, string in_need_items, string in_need_parts, int in_need_quality, int in_parent_ID, string in_prefix)
        {
            DeclareEquipSuit tmp = new DeclareEquipSuit();

            tmp._attribute_1   = in_attribute_1;
            tmp._attribute_2   = in_attribute_2;
            tmp._attribute_4   = in_attribute_4;
            tmp._attribute_6   = in_attribute_6;
            tmp._id            = in_id;
            tmp._level         = in_level;
            tmp._name          = in_name;
            tmp._need_degree   = in_need_degree;
            tmp._need_diamonds = in_need_diamonds;
            tmp._need_gender   = in_need_gender;
            tmp._need_items    = in_need_items;
            tmp._need_parts    = in_need_parts;
            tmp._need_quality  = in_need_quality;
            tmp._parent_ID     = in_parent_ID;
            tmp._prefix        = in_prefix;

            return(tmp);
        }