public static DeclareGodTools Create(int in_ack_type, string in_active_cost, string in_base_property, string in_fuling_1, string in_fuling_2, string in_fuling_3, string in_fuling_4, string in_fuling_cost, int in_fuling_first1, int in_fuling_first2, int in_fuling_first3, int in_fuling_first4, int in_fuling_max1, int in_fuling_max2, int in_fuling_max3, int in_fuling_max4, int in_fuling_min1, int in_fuling_min2, int in_fuling_min3, int in_fuling_min4, int in_id, string in_level_up_cost, string in_level_up_property, int in_model, string in_name, int in_quality, int in_suofang_size, string in_tupo_cost) { DeclareGodTools tmp = new DeclareGodTools(); tmp._ack_type = in_ack_type; tmp._active_cost = in_active_cost; tmp._base_property = in_base_property; tmp._fuling_1 = in_fuling_1; tmp._fuling_2 = in_fuling_2; tmp._fuling_3 = in_fuling_3; tmp._fuling_4 = in_fuling_4; tmp._fuling_cost = in_fuling_cost; tmp._fuling_first1 = in_fuling_first1; tmp._fuling_first2 = in_fuling_first2; tmp._fuling_first3 = in_fuling_first3; tmp._fuling_first4 = in_fuling_first4; tmp._fuling_max1 = in_fuling_max1; tmp._fuling_max2 = in_fuling_max2; tmp._fuling_max3 = in_fuling_max3; tmp._fuling_max4 = in_fuling_max4; tmp._fuling_min1 = in_fuling_min1; tmp._fuling_min2 = in_fuling_min2; tmp._fuling_min3 = in_fuling_min3; tmp._fuling_min4 = in_fuling_min4; tmp._id = in_id; tmp._level_up_cost = in_level_up_cost; tmp._level_up_property = in_level_up_property; tmp._model = in_model; tmp._name = in_name; tmp._quality = in_quality; tmp._suofang_size = in_suofang_size; tmp._tupo_cost = in_tupo_cost; return(tmp); }
public static void Convert(Dictionary <int, DeclareGodTools> data) { if (data == null) { return; } data.Clear(); data.Add(1, DeclareGodTools.Create(1, StringDefines.Key_41628, StringDefines.Key_41629, StringDefines.Key_41630, StringDefines.Key_41631, StringDefines.Key_41632, StringDefines.Key_41633, StringDefines.Key_41634, 88447, 300, 2000, 300, 26532, 90, 600, 90, 8844, 30, 200, 30, 1, StringDefines.Key_41635, StringDefines.Key_41636, 52001, StringDefines.Key_41637, 0, 320, StringDefines.Key_41638)); data.Add(2, DeclareGodTools.Create(1, StringDefines.Key_41639, StringDefines.Key_41640, StringDefines.Key_41641, StringDefines.Key_41642, StringDefines.Key_41632, StringDefines.Key_41643, StringDefines.Key_41634, 44201, 10353, 2000, 1000, 13260, 3105, 600, 300, 4420, 1035, 200, 100, 2, StringDefines.Key_41644, StringDefines.Key_41645, 52002, StringDefines.Key_41646, 0, 320, StringDefines.Key_41638)); data.Add(3, DeclareGodTools.Create(1, StringDefines.Key_41647, StringDefines.Key_41648, StringDefines.Key_41649, StringDefines.Key_41650, StringDefines.Key_41632, StringDefines.Key_41651, StringDefines.Key_41634, 44201, 1000, 2000, 300, 13260, 300, 600, 90, 4420, 100, 200, 30, 3, StringDefines.Key_41652, StringDefines.Key_41653, 52003, StringDefines.Key_41654, 0, 320, StringDefines.Key_41638)); data.Add(4, DeclareGodTools.Create(1, StringDefines.Key_41655, StringDefines.Key_41656, StringDefines.Key_41657, StringDefines.Key_41658, StringDefines.Key_41632, StringDefines.Key_41659, StringDefines.Key_41634, 132670, 15530, 2000, 1000, 39801, 4659, 600, 300, 13267, 1553, 200, 100, 4, StringDefines.Key_41660, StringDefines.Key_41661, 52004, StringDefines.Key_41662, 0, 320, StringDefines.Key_41638)); data.Add(101, DeclareGodTools.Create(1, StringDefines.Key_41663, StringDefines.Key_41664, StringDefines.Key_41665, StringDefines.Key_41666, StringDefines.Key_41632, StringDefines.Key_41643, StringDefines.Key_41667, 1769813, 1000, 2000, 1000, 530943, 300, 600, 300, 176981, 100, 200, 100, 101, StringDefines.Key_41668, StringDefines.Key_41669, 52005, StringDefines.Key_41670, 1, 320, StringDefines.Key_41671)); data.Add(102, DeclareGodTools.Create(1, StringDefines.Key_41672, StringDefines.Key_41673, StringDefines.Key_41674, StringDefines.Key_41651, StringDefines.Key_41632, StringDefines.Key_41675, StringDefines.Key_41667, 300, 300, 2000, 100, 90, 90, 600, 30, 30, 30, 200, 10, 102, StringDefines.Key_41676, StringDefines.Key_41677, 52006, StringDefines.Key_41678, 1, 320, StringDefines.Key_41671)); data.Add(103, DeclareGodTools.Create(1, StringDefines.Key_41679, StringDefines.Key_41680, StringDefines.Key_41681, StringDefines.Key_41682, StringDefines.Key_41632, StringDefines.Key_41633, StringDefines.Key_41667, 20707, 1000, 2000, 300, 6210, 300, 600, 90, 2070, 100, 200, 30, 103, StringDefines.Key_41683, StringDefines.Key_41684, 52007, StringDefines.Key_41685, 1, 320, StringDefines.Key_41671)); data.Add(104, DeclareGodTools.Create(1, StringDefines.Key_41686, StringDefines.Key_41687, StringDefines.Key_41688, StringDefines.Key_41650, StringDefines.Key_41632, StringDefines.Key_41633, StringDefines.Key_41667, 2654720, 1000, 2000, 300, 796416, 300, 600, 90, 265472, 100, 200, 30, 104, StringDefines.Key_41689, StringDefines.Key_41690, 52008, StringDefines.Key_41691, 1, 320, StringDefines.Key_41671)); data.Add(201, DeclareGodTools.Create(1, StringDefines.Key_41692, StringDefines.Key_41693, StringDefines.Key_41694, StringDefines.Key_41631, StringDefines.Key_41632, StringDefines.Key_41695, StringDefines.Key_41696, 176894, 300, 2000, 100, 53067, 90, 600, 30, 17689, 30, 200, 10, 201, StringDefines.Key_41697, StringDefines.Key_41698, 52009, StringDefines.Key_41699, 2, 320, StringDefines.Key_41700)); data.Add(202, DeclareGodTools.Create(1, StringDefines.Key_41701, StringDefines.Key_41702, StringDefines.Key_41703, StringDefines.Key_41704, StringDefines.Key_41632, StringDefines.Key_41705, StringDefines.Key_41696, 3539626, 66302, 2000, 66302, 1061886, 19890, 600, 19890, 353962, 6630, 200, 6630, 202, StringDefines.Key_41706, StringDefines.Key_41707, 52010, StringDefines.Key_41708, 2, 320, StringDefines.Key_41700)); data.Add(203, DeclareGodTools.Create(1, StringDefines.Key_41709, StringDefines.Key_41710, StringDefines.Key_41711, StringDefines.Key_41712, StringDefines.Key_41632, StringDefines.Key_41713, StringDefines.Key_41696, 31061, 300, 2000, 100, 9318, 90, 600, 30, 3106, 30, 200, 10, 203, StringDefines.Key_41714, StringDefines.Key_41715, 52011, StringDefines.Key_41716, 2, 320, StringDefines.Key_41700)); data.Add(204, DeclareGodTools.Create(1, StringDefines.Key_41717, StringDefines.Key_41718, StringDefines.Key_41719, StringDefines.Key_41720, StringDefines.Key_41632, StringDefines.Key_41674, StringDefines.Key_41696, 88403, 88403, 2000, 300, 26520, 26520, 600, 90, 8840, 8840, 200, 30, 204, StringDefines.Key_41721, StringDefines.Key_41722, 52012, StringDefines.Key_41723, 2, 320, StringDefines.Key_41700)); data.Add(301, DeclareGodTools.Create(1, StringDefines.Key_41724, StringDefines.Key_41725, StringDefines.Key_41726, StringDefines.Key_41695, StringDefines.Key_41632, StringDefines.Key_41675, StringDefines.Key_41727, 300, 100, 2000, 100, 90, 30, 600, 30, 30, 10, 200, 10, 301, StringDefines.Key_41728, StringDefines.Key_41729, 52013, StringDefines.Key_41730, 3, 320, StringDefines.Key_41731)); data.Add(302, DeclareGodTools.Create(1, StringDefines.Key_41732, StringDefines.Key_41733, StringDefines.Key_41666, StringDefines.Key_41712, StringDefines.Key_41632, StringDefines.Key_41734, StringDefines.Key_41727, 1000, 300, 2000, 100, 300, 90, 600, 30, 100, 30, 200, 10, 302, StringDefines.Key_41735, StringDefines.Key_41736, 52014, StringDefines.Key_41737, 3, 320, StringDefines.Key_41731)); data.Add(303, DeclareGodTools.Create(1, StringDefines.Key_41738, StringDefines.Key_41739, StringDefines.Key_41659, StringDefines.Key_41633, StringDefines.Key_41632, StringDefines.Key_41713, StringDefines.Key_41727, 1000, 300, 2000, 100, 300, 90, 600, 30, 100, 30, 200, 10, 303, StringDefines.Key_41740, StringDefines.Key_41741, 52015, StringDefines.Key_41742, 3, 320, StringDefines.Key_41731)); data.Add(304, DeclareGodTools.Create(1, StringDefines.Key_41743, StringDefines.Key_41744, StringDefines.Key_41682, StringDefines.Key_41651, StringDefines.Key_41632, StringDefines.Key_41734, StringDefines.Key_41727, 1000, 300, 2000, 100, 300, 90, 600, 30, 100, 30, 200, 10, 304, StringDefines.Key_41745, StringDefines.Key_41746, 52016, StringDefines.Key_41747, 3, 320, StringDefines.Key_41731)); data.Add(1001, DeclareGodTools.Create(0, StringDefines.Key_41628, StringDefines.Key_41748, StringDefines.Key_41749, StringDefines.Key_41631, StringDefines.Key_41632, StringDefines.Key_41633, StringDefines.Key_41634, 88447, 300, 2000, 300, 26532, 90, 600, 90, 8844, 30, 200, 30, 1001, StringDefines.Key_41635, StringDefines.Key_41750, 52001, StringDefines.Key_41637, 0, 320, StringDefines.Key_41638)); data.Add(1002, DeclareGodTools.Create(0, StringDefines.Key_41639, StringDefines.Key_41751, StringDefines.Key_41641, StringDefines.Key_41642, StringDefines.Key_41632, StringDefines.Key_41643, StringDefines.Key_41634, 44201, 10353, 2000, 1000, 13260, 3105, 600, 300, 4420, 1035, 200, 100, 1002, StringDefines.Key_41644, StringDefines.Key_41752, 52002, StringDefines.Key_41646, 0, 320, StringDefines.Key_41638)); data.Add(1003, DeclareGodTools.Create(0, StringDefines.Key_41647, StringDefines.Key_41753, StringDefines.Key_41649, StringDefines.Key_41650, StringDefines.Key_41632, StringDefines.Key_41651, StringDefines.Key_41634, 44201, 1000, 2000, 300, 13260, 300, 600, 90, 4420, 100, 200, 30, 1003, StringDefines.Key_41652, StringDefines.Key_41754, 52003, StringDefines.Key_41654, 0, 320, StringDefines.Key_41638)); data.Add(1004, DeclareGodTools.Create(0, StringDefines.Key_41655, StringDefines.Key_41755, StringDefines.Key_41756, StringDefines.Key_41658, StringDefines.Key_41632, StringDefines.Key_41659, StringDefines.Key_41634, 132670, 15530, 2000, 1000, 39801, 4659, 600, 300, 13267, 1553, 200, 100, 1004, StringDefines.Key_41660, StringDefines.Key_41757, 52004, StringDefines.Key_41662, 0, 320, StringDefines.Key_41638)); data.Add(1101, DeclareGodTools.Create(0, StringDefines.Key_41663, StringDefines.Key_41758, StringDefines.Key_41665, StringDefines.Key_41666, StringDefines.Key_41632, StringDefines.Key_41643, StringDefines.Key_41667, 1769813, 1000, 2000, 1000, 530943, 300, 600, 300, 176981, 100, 200, 100, 1101, StringDefines.Key_41668, StringDefines.Key_41759, 52005, StringDefines.Key_41670, 1, 320, StringDefines.Key_41671)); data.Add(1102, DeclareGodTools.Create(0, StringDefines.Key_41672, StringDefines.Key_41760, StringDefines.Key_41674, StringDefines.Key_41651, StringDefines.Key_41632, StringDefines.Key_41675, StringDefines.Key_41667, 300, 300, 2000, 100, 90, 90, 600, 30, 30, 30, 200, 10, 1102, StringDefines.Key_41676, StringDefines.Key_41761, 52006, StringDefines.Key_41678, 1, 320, StringDefines.Key_41671)); data.Add(1103, DeclareGodTools.Create(0, StringDefines.Key_41679, StringDefines.Key_41762, StringDefines.Key_41681, StringDefines.Key_41763, StringDefines.Key_41632, StringDefines.Key_41633, StringDefines.Key_41667, 20707, 1000, 2000, 300, 6210, 300, 600, 90, 2070, 100, 200, 30, 1103, StringDefines.Key_41683, StringDefines.Key_41764, 52007, StringDefines.Key_41685, 1, 320, StringDefines.Key_41671)); data.Add(1104, DeclareGodTools.Create(0, StringDefines.Key_41686, StringDefines.Key_41765, StringDefines.Key_41688, StringDefines.Key_41650, StringDefines.Key_41632, StringDefines.Key_41633, StringDefines.Key_41667, 2654720, 1000, 2000, 300, 796416, 300, 600, 90, 265472, 100, 200, 30, 1104, StringDefines.Key_41689, StringDefines.Key_41766, 52008, StringDefines.Key_41691, 1, 320, StringDefines.Key_41671)); data.Add(1201, DeclareGodTools.Create(0, StringDefines.Key_41692, StringDefines.Key_41767, StringDefines.Key_41768, StringDefines.Key_41631, StringDefines.Key_41632, StringDefines.Key_41695, StringDefines.Key_41696, 176894, 300, 2000, 100, 53067, 90, 600, 30, 17689, 30, 200, 10, 1201, StringDefines.Key_41697, StringDefines.Key_41769, 52009, StringDefines.Key_41699, 2, 320, StringDefines.Key_41700)); data.Add(1202, DeclareGodTools.Create(0, StringDefines.Key_41701, StringDefines.Key_41770, StringDefines.Key_41703, StringDefines.Key_41704, StringDefines.Key_41632, StringDefines.Key_41705, StringDefines.Key_41696, 3539626, 66302, 2000, 66302, 1061886, 19890, 600, 19890, 353962, 6630, 200, 6630, 1202, StringDefines.Key_41706, StringDefines.Key_41771, 52010, StringDefines.Key_41708, 2, 320, StringDefines.Key_41700)); data.Add(1203, DeclareGodTools.Create(0, StringDefines.Key_41709, StringDefines.Key_41772, StringDefines.Key_41711, StringDefines.Key_41712, StringDefines.Key_41632, StringDefines.Key_41713, StringDefines.Key_41696, 31061, 300, 2000, 100, 9318, 90, 600, 30, 3106, 30, 200, 10, 1203, StringDefines.Key_41714, StringDefines.Key_41773, 52011, StringDefines.Key_41716, 2, 320, StringDefines.Key_41700)); data.Add(1204, DeclareGodTools.Create(0, StringDefines.Key_41717, StringDefines.Key_41774, StringDefines.Key_41719, StringDefines.Key_41720, StringDefines.Key_41632, StringDefines.Key_41674, StringDefines.Key_41696, 88403, 88403, 2000, 300, 26520, 26520, 600, 90, 8840, 8840, 200, 30, 1204, StringDefines.Key_41721, StringDefines.Key_41775, 52012, StringDefines.Key_41723, 2, 320, StringDefines.Key_41700)); data.Add(1301, DeclareGodTools.Create(0, StringDefines.Key_41724, StringDefines.Key_41776, StringDefines.Key_41726, StringDefines.Key_41695, StringDefines.Key_41632, StringDefines.Key_41675, StringDefines.Key_41727, 300, 100, 2000, 100, 90, 30, 600, 30, 30, 10, 200, 10, 1301, StringDefines.Key_41728, StringDefines.Key_41777, 52013, StringDefines.Key_41730, 3, 320, StringDefines.Key_41731)); data.Add(1302, DeclareGodTools.Create(0, StringDefines.Key_41732, StringDefines.Key_41778, StringDefines.Key_41666, StringDefines.Key_41712, StringDefines.Key_41632, StringDefines.Key_41734, StringDefines.Key_41727, 1000, 300, 2000, 100, 300, 90, 600, 30, 100, 30, 200, 10, 1302, StringDefines.Key_41735, StringDefines.Key_41779, 52014, StringDefines.Key_41737, 3, 320, StringDefines.Key_41731)); data.Add(1303, DeclareGodTools.Create(0, StringDefines.Key_41738, StringDefines.Key_41780, StringDefines.Key_41659, StringDefines.Key_41633, StringDefines.Key_41632, StringDefines.Key_41713, StringDefines.Key_41727, 1000, 300, 2000, 100, 300, 90, 600, 30, 100, 30, 200, 10, 1303, StringDefines.Key_41740, StringDefines.Key_41781, 52015, StringDefines.Key_41742, 3, 320, StringDefines.Key_41731)); data.Add(1304, DeclareGodTools.Create(0, StringDefines.Key_41743, StringDefines.Key_41782, StringDefines.Key_41763, StringDefines.Key_41651, StringDefines.Key_41632, StringDefines.Key_41734, StringDefines.Key_41727, 1000, 300, 2000, 100, 300, 90, 600, 30, 100, 30, 200, 10, 1304, StringDefines.Key_41745, StringDefines.Key_41783, 52016, StringDefines.Key_41747, 3, 320, StringDefines.Key_41731)); }
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[]> >("DataGodTools"); if (dic == null) { LuaEnv.SharedLuaEnv.DoString("DataGodTools = require 'Lua/Config/DataGodTools'"); dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataGodTools"); } if (dic != null) { _dataCaches = new Dictionary <int, DeclareGodTools>(32); foreach (var item in dic) { DeclareGodTools tmp = new DeclareGodTools(); tmp.AckType = item.Value[0]; tmp.ActiveCost = CfgStringLua.Get(item.Value[1]); tmp.BaseProperty = CfgStringLua.Get(item.Value[2]); tmp.Fuling1 = CfgStringLua.Get(item.Value[3]); tmp.Fuling2 = CfgStringLua.Get(item.Value[4]); tmp.Fuling3 = CfgStringLua.Get(item.Value[5]); tmp.Fuling4 = CfgStringLua.Get(item.Value[6]); tmp.FulingCost = CfgStringLua.Get(item.Value[7]); tmp.FulingFirst1 = item.Value[8]; tmp.FulingFirst2 = item.Value[9]; tmp.FulingFirst3 = item.Value[10]; tmp.FulingFirst4 = item.Value[11]; tmp.FulingMax1 = item.Value[12]; tmp.FulingMax2 = item.Value[13]; tmp.FulingMax3 = item.Value[14]; tmp.FulingMax4 = item.Value[15]; tmp.FulingMin1 = item.Value[16]; tmp.FulingMin2 = item.Value[17]; tmp.FulingMin3 = item.Value[18]; tmp.FulingMin4 = item.Value[19]; tmp.Id = item.Value[20]; tmp.LevelUpCost = CfgStringLua.Get(item.Value[21]); tmp.LevelUpProperty = CfgStringLua.Get(item.Value[22]); tmp.Model = item.Value[23]; tmp.Name = CfgStringLua.Get(item.Value[24]); tmp.Quality = item.Value[25]; tmp.SuofangSize = item.Value[26]; tmp.TupoCost = CfgStringLua.Get(item.Value[27]); _dataCaches.Add(item.Key, tmp); } } Record(startTime, DateTime.Now.Ticks, "GodTools"); } if (_dataCaches == null && _fillDataCallBack != null) { if (_dataCaches == null) { long startTime = DateTime.Now.Ticks; _dataCaches = new Dictionary <int, DeclareGodTools>(32); _fillDataCallBack(_dataCaches); Record(startTime, DateTime.Now.Ticks, "GodTools"); } } }