public static DeclareChangejob Create(string in_active_branch, string in_attributeValue, string in_carrerValue, string in_condition, string in_conditions, string in_des, int in_gender, int in_genderClass, string in_genderNum, int in_icon, int in_iD, int in_lastLevel, int in_level, int in_levelCap, Int64 in_maxExp, int in_medalid, int in_model, int in_modelID, string in_name, int in_skillID, int in_talentID, string in_task, string in_up_item_info) { DeclareChangejob tmp = new DeclareChangejob(); tmp._active_branch = in_active_branch; tmp._attributeValue = in_attributeValue; tmp._carrerValue = in_carrerValue; tmp._condition = in_condition; tmp._conditions = in_conditions; tmp._des = in_des; tmp._gender = in_gender; tmp._genderClass = in_genderClass; tmp._genderNum = in_genderNum; tmp._icon = in_icon; tmp._iD = in_iD; tmp._lastLevel = in_lastLevel; tmp._level = in_level; tmp._levelCap = in_levelCap; tmp._maxExp = in_maxExp; tmp._medalid = in_medalid; tmp._model = in_model; tmp._modelID = in_modelID; tmp._name = in_name; tmp._skillID = in_skillID; tmp._talentID = in_talentID; tmp._task = in_task; tmp._up_item_info = in_up_item_info; return(tmp); }
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[]> >("DataChangejob"); if (dic == null) { LuaEnv.SharedLuaEnv.DoString("DataChangejob = require 'Lua/Config/DataChangejob'"); dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataChangejob"); } if (dic != null) { _dataCaches = new Dictionary <int, DeclareChangejob>(42); foreach (var item in dic) { DeclareChangejob tmp = new DeclareChangejob(); tmp.ActiveBranch = CfgStringLua.Get(item.Value[0]); tmp.AttributeValue = CfgStringLua.Get(item.Value[1]); tmp.CarrerValue = CfgStringLua.Get(item.Value[2]); tmp.Condition = CfgStringLua.Get(item.Value[3]); tmp.Conditions = CfgStringLua.Get(item.Value[4]); tmp.Des = CfgStringLua.Get(item.Value[5]); tmp.Gender = item.Value[6]; tmp.GenderClass = item.Value[7]; tmp.GenderNum = CfgStringLua.Get(item.Value[8]); tmp.Icon = item.Value[9]; tmp.ID = item.Value[10]; tmp.LastLevel = item.Value[11]; tmp.Level = item.Value[12]; tmp.LevelCap = item.Value[13]; tmp.MaxExp = item.Value[14]; tmp.Medalid = item.Value[15]; tmp.Model = item.Value[16]; tmp.ModelID = item.Value[17]; tmp.Name = CfgStringLua.Get(item.Value[18]); tmp.SkillID = item.Value[19]; tmp.TalentID = item.Value[20]; tmp.Task = CfgStringLua.Get(item.Value[21]); tmp.UpItemInfo = CfgStringLua.Get(item.Value[22]); _dataCaches.Add(item.Key, tmp); } } Record(startTime, DateTime.Now.Ticks, "Changejob"); } if (_dataCaches == null && _fillDataCallBack != null) { if (_dataCaches == null) { long startTime = DateTime.Now.Ticks; _dataCaches = new Dictionary <int, DeclareChangejob>(42); _fillDataCallBack(_dataCaches); Record(startTime, DateTime.Now.Ticks, "Changejob"); } } }
public static void Convert(Dictionary <int, DeclareChangejob> data) { if (data == null) { return; } data.Clear(); data.Add(1000, DeclareChangejob.Create(StringDefines.Key_20, StringDefines.Key_10472, StringDefines.Key_10473, StringDefines.Key_10474, StringDefines.Key_20, StringDefines.Key_20, 0, 0, StringDefines.Key_10475, 314, 1000, 0, 0, 150, 0, 0, 0, 0, StringDefines.Key_10476, 0, 0, StringDefines.Key_10474, StringDefines.Key_20)); data.Add(1150, DeclareChangejob.Create(StringDefines.Key_10477, StringDefines.Key_10478, StringDefines.Key_10473, StringDefines.Key_10479, StringDefines.Key_20, StringDefines.Key_10480, 0, 1, StringDefines.Key_10481, 314, 1150, 0, 150, 220, 0, 0, 3, 400001, StringDefines.Key_10482, 104, 1042, StringDefines.Key_10483, StringDefines.Key_10484)); data.Add(1220, DeclareChangejob.Create(StringDefines.Key_10485, StringDefines.Key_10486, StringDefines.Key_10473, StringDefines.Key_10487, StringDefines.Key_20, StringDefines.Key_10488, 0, 2, StringDefines.Key_10489, 314, 1220, 150, 220, 280, 0, 0, 6, 400002, StringDefines.Key_10490, 105, 1053, StringDefines.Key_10491, StringDefines.Key_10484)); data.Add(1280, DeclareChangejob.Create(StringDefines.Key_10492, StringDefines.Key_10493, StringDefines.Key_10473, StringDefines.Key_10494, StringDefines.Key_20, StringDefines.Key_10495, 0, 3, StringDefines.Key_10496, 314, 1280, 220, 280, 370, 0, 0, 9, 400003, StringDefines.Key_10497, 104, 1043, StringDefines.Key_10498, StringDefines.Key_10484)); data.Add(1370, DeclareChangejob.Create(StringDefines.Key_20, StringDefines.Key_10499, StringDefines.Key_10473, StringDefines.Key_10500, StringDefines.Key_10501, StringDefines.Key_10502, 0, 4, StringDefines.Key_10503, 1458, 1370, 280, 370, 500, 0, 0, 10, 400004, StringDefines.Key_10504, 9999, 9999, StringDefines.Key_10505, StringDefines.Key_20)); data.Add(1500, DeclareChangejob.Create(StringDefines.Key_20, StringDefines.Key_10506, StringDefines.Key_10473, StringDefines.Key_10500, StringDefines.Key_10507, StringDefines.Key_10508, 0, 5, StringDefines.Key_10509, 1458, 1500, 370, 500, 600, 0, 0, 10, 400005, StringDefines.Key_10510, 9999, 9999, StringDefines.Key_10511, StringDefines.Key_20)); data.Add(1600, DeclareChangejob.Create(StringDefines.Key_20, StringDefines.Key_10512, StringDefines.Key_10473, StringDefines.Key_10500, StringDefines.Key_10513, StringDefines.Key_10495, 0, 6, StringDefines.Key_10514, 1458, 1600, 500, 600, 800, 0, 0, 10, 400005, StringDefines.Key_10514, 9999, 9999, StringDefines.Key_10515, StringDefines.Key_20)); data.Add(2000, DeclareChangejob.Create(StringDefines.Key_20, StringDefines.Key_10472, StringDefines.Key_10516, StringDefines.Key_10474, StringDefines.Key_20, StringDefines.Key_20, 1, 0, StringDefines.Key_10475, 315, 2000, 0, 0, 150, 0, 0, 0, 0, StringDefines.Key_10517, 0, 0, StringDefines.Key_10474, StringDefines.Key_20)); data.Add(2150, DeclareChangejob.Create(StringDefines.Key_10518, StringDefines.Key_10519, StringDefines.Key_10516, StringDefines.Key_10479, StringDefines.Key_20, StringDefines.Key_10480, 1, 1, StringDefines.Key_10481, 315, 2150, 0, 150, 220, 0, 0, 3, 401001, StringDefines.Key_10520, 205, 2052, StringDefines.Key_10521, StringDefines.Key_10484)); data.Add(2220, DeclareChangejob.Create(StringDefines.Key_10522, StringDefines.Key_10523, StringDefines.Key_10516, StringDefines.Key_10487, StringDefines.Key_20, StringDefines.Key_10488, 1, 2, StringDefines.Key_10489, 315, 2220, 150, 220, 280, 0, 0, 6, 401002, StringDefines.Key_10524, 208, 2083, StringDefines.Key_10525, StringDefines.Key_10484)); data.Add(2280, DeclareChangejob.Create(StringDefines.Key_10526, StringDefines.Key_10527, StringDefines.Key_10516, StringDefines.Key_10494, StringDefines.Key_20, StringDefines.Key_10528, 1, 3, StringDefines.Key_10496, 315, 2280, 220, 280, 370, 0, 0, 9, 401003, StringDefines.Key_10529, 205, 2053, StringDefines.Key_10530, StringDefines.Key_10484)); data.Add(2370, DeclareChangejob.Create(StringDefines.Key_20, StringDefines.Key_10531, StringDefines.Key_10516, StringDefines.Key_10500, StringDefines.Key_10532, StringDefines.Key_10533, 1, 4, StringDefines.Key_10503, 1459, 2370, 280, 370, 500, 0, 0, 10, 401004, StringDefines.Key_10534, 9999, 9999, StringDefines.Key_10535, StringDefines.Key_20)); data.Add(2500, DeclareChangejob.Create(StringDefines.Key_20, StringDefines.Key_10536, StringDefines.Key_10516, StringDefines.Key_10500, StringDefines.Key_10537, StringDefines.Key_10508, 1, 5, StringDefines.Key_10509, 1459, 2500, 370, 500, 600, 0, 0, 10, 401005, StringDefines.Key_10538, 9999, 9999, StringDefines.Key_10539, StringDefines.Key_20)); data.Add(2600, DeclareChangejob.Create(StringDefines.Key_20, StringDefines.Key_10540, StringDefines.Key_10516, StringDefines.Key_10500, StringDefines.Key_10541, StringDefines.Key_10495, 1, 6, StringDefines.Key_10514, 1459, 2600, 500, 600, 800, 0, 0, 10, 401005, StringDefines.Key_10514, 9999, 9999, StringDefines.Key_10542, StringDefines.Key_20)); data.Add(3000, DeclareChangejob.Create(StringDefines.Key_20, StringDefines.Key_10472, StringDefines.Key_10543, StringDefines.Key_10474, StringDefines.Key_20, StringDefines.Key_20, 2, 0, StringDefines.Key_10475, 316, 3000, 0, 0, 150, 0, 0, 0, 0, StringDefines.Key_10544, 0, 0, StringDefines.Key_10474, StringDefines.Key_20)); data.Add(3150, DeclareChangejob.Create(StringDefines.Key_10545, StringDefines.Key_10546, StringDefines.Key_10543, StringDefines.Key_10479, StringDefines.Key_20, StringDefines.Key_10480, 2, 1, StringDefines.Key_10481, 316, 3150, 0, 150, 220, 0, 0, 3, 402001, StringDefines.Key_10547, 305, 3052, StringDefines.Key_10548, StringDefines.Key_10484)); data.Add(3220, DeclareChangejob.Create(StringDefines.Key_10549, StringDefines.Key_10550, StringDefines.Key_10543, StringDefines.Key_10487, StringDefines.Key_20, StringDefines.Key_10488, 2, 2, StringDefines.Key_10489, 316, 3220, 150, 220, 280, 0, 0, 6, 402002, StringDefines.Key_10551, 308, 3083, StringDefines.Key_10552, StringDefines.Key_10484)); data.Add(3280, DeclareChangejob.Create(StringDefines.Key_10553, StringDefines.Key_10554, StringDefines.Key_10543, StringDefines.Key_10494, StringDefines.Key_20, StringDefines.Key_10495, 2, 3, StringDefines.Key_10496, 316, 3280, 220, 280, 370, 0, 0, 9, 402003, StringDefines.Key_10555, 305, 3053, StringDefines.Key_10556, StringDefines.Key_10484)); data.Add(3370, DeclareChangejob.Create(StringDefines.Key_20, StringDefines.Key_10557, StringDefines.Key_10543, StringDefines.Key_10500, StringDefines.Key_10558, StringDefines.Key_10533, 2, 4, StringDefines.Key_10503, 1460, 3370, 280, 370, 500, 0, 0, 10, 402004, StringDefines.Key_10559, 9999, 9999, StringDefines.Key_10560, StringDefines.Key_20)); data.Add(3500, DeclareChangejob.Create(StringDefines.Key_20, StringDefines.Key_10561, StringDefines.Key_10543, StringDefines.Key_10500, StringDefines.Key_10562, StringDefines.Key_10508, 2, 5, StringDefines.Key_10509, 1460, 3500, 370, 500, 600, 0, 0, 10, 402005, StringDefines.Key_10563, 9999, 9999, StringDefines.Key_10564, StringDefines.Key_20)); data.Add(3600, DeclareChangejob.Create(StringDefines.Key_20, StringDefines.Key_10565, StringDefines.Key_10543, StringDefines.Key_10500, StringDefines.Key_10566, StringDefines.Key_10495, 2, 6, StringDefines.Key_10514, 1460, 3600, 500, 600, 800, 0, 0, 10, 402005, StringDefines.Key_10514, 9999, 9999, StringDefines.Key_10567, StringDefines.Key_20)); data.Add(4000, DeclareChangejob.Create(StringDefines.Key_20, StringDefines.Key_10472, StringDefines.Key_10568, StringDefines.Key_10474, StringDefines.Key_20, StringDefines.Key_20, 3, 0, StringDefines.Key_10475, 317, 4000, 0, 0, 150, 0, 0, 0, 0, StringDefines.Key_10569, 0, 0, StringDefines.Key_10474, StringDefines.Key_20)); data.Add(4150, DeclareChangejob.Create(StringDefines.Key_10570, StringDefines.Key_10571, StringDefines.Key_10568, StringDefines.Key_10479, StringDefines.Key_20, StringDefines.Key_10572, 3, 1, StringDefines.Key_10481, 317, 4150, 0, 150, 220, 0, 0, 3, 403001, StringDefines.Key_10573, 404, 4042, StringDefines.Key_10574, StringDefines.Key_10484)); data.Add(4220, DeclareChangejob.Create(StringDefines.Key_10575, StringDefines.Key_10576, StringDefines.Key_10568, StringDefines.Key_10487, StringDefines.Key_20, StringDefines.Key_10577, 3, 2, StringDefines.Key_10489, 317, 4220, 150, 220, 280, 0, 0, 6, 403002, StringDefines.Key_10578, 408, 4083, StringDefines.Key_10579, StringDefines.Key_10484)); data.Add(4280, DeclareChangejob.Create(StringDefines.Key_10580, StringDefines.Key_10581, StringDefines.Key_10568, StringDefines.Key_10494, StringDefines.Key_20, StringDefines.Key_10495, 3, 3, StringDefines.Key_10496, 317, 4280, 220, 280, 370, 0, 0, 9, 403003, StringDefines.Key_10582, 404, 4043, StringDefines.Key_10583, StringDefines.Key_10484)); data.Add(4370, DeclareChangejob.Create(StringDefines.Key_20, StringDefines.Key_10584, StringDefines.Key_10568, StringDefines.Key_10500, StringDefines.Key_10585, StringDefines.Key_10502, 3, 4, StringDefines.Key_10503, 1461, 4370, 280, 370, 500, 0, 0, 10, 403004, StringDefines.Key_10586, 9999, 9999, StringDefines.Key_10587, StringDefines.Key_20)); data.Add(4500, DeclareChangejob.Create(StringDefines.Key_20, StringDefines.Key_10588, StringDefines.Key_10568, StringDefines.Key_10500, StringDefines.Key_10589, StringDefines.Key_10508, 3, 5, StringDefines.Key_10509, 1461, 4500, 370, 500, 600, 0, 0, 10, 403005, StringDefines.Key_10590, 9999, 9999, StringDefines.Key_10591, StringDefines.Key_20)); data.Add(4600, DeclareChangejob.Create(StringDefines.Key_20, StringDefines.Key_10592, StringDefines.Key_10568, StringDefines.Key_10500, StringDefines.Key_10593, StringDefines.Key_10495, 3, 6, StringDefines.Key_10514, 1461, 4600, 600, 600, 800, 0, 0, 10, 403005, StringDefines.Key_10514, 9999, 9999, StringDefines.Key_10594, StringDefines.Key_20)); data.Add(5000, DeclareChangejob.Create(StringDefines.Key_20, StringDefines.Key_10472, StringDefines.Key_10595, StringDefines.Key_10474, StringDefines.Key_20, StringDefines.Key_20, 4, 0, StringDefines.Key_10475, 318, 5000, 0, 0, 150, 0, 0, 0, 0, StringDefines.Key_10596, 0, 0, StringDefines.Key_10474, StringDefines.Key_20)); data.Add(5150, DeclareChangejob.Create(StringDefines.Key_10597, StringDefines.Key_10598, StringDefines.Key_10595, StringDefines.Key_10479, StringDefines.Key_20, StringDefines.Key_10480, 4, 1, StringDefines.Key_10481, 318, 5150, 0, 150, 220, 0, 0, 3, 404001, StringDefines.Key_10599, 504, 5042, StringDefines.Key_10600, StringDefines.Key_10484)); data.Add(5220, DeclareChangejob.Create(StringDefines.Key_10601, StringDefines.Key_10602, StringDefines.Key_10595, StringDefines.Key_10487, StringDefines.Key_20, StringDefines.Key_10488, 4, 2, StringDefines.Key_10489, 318, 5220, 150, 220, 280, 0, 0, 6, 404002, StringDefines.Key_10603, 505, 5053, StringDefines.Key_10604, StringDefines.Key_10484)); data.Add(5280, DeclareChangejob.Create(StringDefines.Key_10605, StringDefines.Key_10606, StringDefines.Key_10595, StringDefines.Key_10494, StringDefines.Key_20, StringDefines.Key_10495, 4, 3, StringDefines.Key_10496, 318, 5280, 220, 280, 370, 0, 0, 9, 404003, StringDefines.Key_10607, 504, 5043, StringDefines.Key_10608, StringDefines.Key_10484)); data.Add(5370, DeclareChangejob.Create(StringDefines.Key_20, StringDefines.Key_10609, StringDefines.Key_10595, StringDefines.Key_10500, StringDefines.Key_10610, StringDefines.Key_10502, 4, 4, StringDefines.Key_10503, 1462, 5370, 280, 370, 500, 0, 0, 10, 404004, StringDefines.Key_10611, 9999, 9999, StringDefines.Key_10612, StringDefines.Key_20)); data.Add(5500, DeclareChangejob.Create(StringDefines.Key_20, StringDefines.Key_10613, StringDefines.Key_10595, StringDefines.Key_10500, StringDefines.Key_10614, StringDefines.Key_10508, 4, 5, StringDefines.Key_10509, 1462, 5500, 370, 500, 600, 0, 0, 10, 404005, StringDefines.Key_10615, 0, 9999, StringDefines.Key_10616, StringDefines.Key_20)); data.Add(5600, DeclareChangejob.Create(StringDefines.Key_20, StringDefines.Key_10617, StringDefines.Key_10595, StringDefines.Key_10500, StringDefines.Key_10618, StringDefines.Key_10495, 5, 6, StringDefines.Key_10514, 1462, 5600, 500, 600, 800, 0, 0, 10, 404005, StringDefines.Key_10514, 0, 9999, StringDefines.Key_10619, StringDefines.Key_20)); data.Add(6000, DeclareChangejob.Create(StringDefines.Key_20, StringDefines.Key_10472, StringDefines.Key_10620, StringDefines.Key_10474, StringDefines.Key_20, StringDefines.Key_20, 5, 0, StringDefines.Key_10475, 319, 6000, 0, 0, 150, 0, 0, 0, 0, StringDefines.Key_10621, 0, 0, StringDefines.Key_10474, StringDefines.Key_20)); data.Add(6150, DeclareChangejob.Create(StringDefines.Key_10622, StringDefines.Key_10623, StringDefines.Key_10620, StringDefines.Key_10479, StringDefines.Key_20, StringDefines.Key_10480, 5, 1, StringDefines.Key_10481, 319, 6150, 0, 150, 220, 0, 0, 3, 405001, StringDefines.Key_10624, 604, 6042, StringDefines.Key_10625, StringDefines.Key_10484)); data.Add(6220, DeclareChangejob.Create(StringDefines.Key_10626, StringDefines.Key_10627, StringDefines.Key_10620, StringDefines.Key_10487, StringDefines.Key_20, StringDefines.Key_10488, 5, 2, StringDefines.Key_10489, 319, 6220, 150, 220, 280, 0, 0, 6, 405002, StringDefines.Key_10628, 605, 6053, StringDefines.Key_10629, StringDefines.Key_10484)); data.Add(6280, DeclareChangejob.Create(StringDefines.Key_10630, StringDefines.Key_10631, StringDefines.Key_10620, StringDefines.Key_10494, StringDefines.Key_20, StringDefines.Key_10495, 5, 3, StringDefines.Key_10496, 319, 6280, 220, 280, 370, 0, 0, 9, 405003, StringDefines.Key_10632, 604, 6043, StringDefines.Key_10633, StringDefines.Key_10484)); data.Add(6370, DeclareChangejob.Create(StringDefines.Key_20, StringDefines.Key_10634, StringDefines.Key_10620, StringDefines.Key_10500, StringDefines.Key_10635, StringDefines.Key_10502, 5, 4, StringDefines.Key_10503, 1463, 6370, 280, 370, 500, 0, 0, 10, 405004, StringDefines.Key_10636, 9999, 9999, StringDefines.Key_10637, StringDefines.Key_20)); data.Add(6500, DeclareChangejob.Create(StringDefines.Key_20, StringDefines.Key_10638, StringDefines.Key_10620, StringDefines.Key_10500, StringDefines.Key_10639, StringDefines.Key_10508, 5, 5, StringDefines.Key_10509, 1463, 6500, 370, 500, 600, 0, 0, 10, 405005, StringDefines.Key_10640, 0, 9999, StringDefines.Key_10641, StringDefines.Key_20)); data.Add(6600, DeclareChangejob.Create(StringDefines.Key_20, StringDefines.Key_10642, StringDefines.Key_10620, StringDefines.Key_10500, StringDefines.Key_10643, StringDefines.Key_10495, 5, 6, StringDefines.Key_10514, 1463, 6600, 500, 600, 800, 0, 0, 10, 405005, StringDefines.Key_10514, 0, 9999, StringDefines.Key_10644, StringDefines.Key_20)); }