public static DeclareChangeJobFateStar Create(string in_att, int in_icon, int in_id, string in_name, string in_need, int in_parentId, int in_rune, Int64 in_upNeedExp) { DeclareChangeJobFateStar tmp = new DeclareChangeJobFateStar(); tmp._att = in_att; tmp._icon = in_icon; tmp._id = in_id; tmp._name = in_name; tmp._need = in_need; tmp._parentId = in_parentId; tmp._rune = in_rune; tmp._upNeedExp = in_upNeedExp; 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[]> >("DataChangeJobFateStar"); if (dic == null) { LuaEnv.SharedLuaEnv.DoString("DataChangeJobFateStar = require 'Lua/Config/DataChangeJobFateStar'"); dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataChangeJobFateStar"); } if (dic != null) { _dataCaches = new Dictionary <int, DeclareChangeJobFateStar>(12); foreach (var item in dic) { DeclareChangeJobFateStar tmp = new DeclareChangeJobFateStar(); tmp.Att = CfgStringLua.Get(item.Value[0]); tmp.Icon = item.Value[1]; tmp.Id = item.Value[2]; tmp.Name = CfgStringLua.Get(item.Value[3]); tmp.Need = CfgStringLua.Get(item.Value[4]); tmp.ParentId = item.Value[5]; tmp.Rune = item.Value[6]; tmp.UpNeedExp = item.Value[7]; _dataCaches.Add(item.Key, tmp); } } Record(startTime, DateTime.Now.Ticks, "ChangeJobFateStar"); } if (_dataCaches == null && _fillDataCallBack != null) { if (_dataCaches == null) { long startTime = DateTime.Now.Ticks; _dataCaches = new Dictionary <int, DeclareChangeJobFateStar>(12); _fillDataCallBack(_dataCaches); Record(startTime, DateTime.Now.Ticks, "ChangeJobFateStar"); } } }
public static void Convert(Dictionary <int, DeclareChangeJobFateStar> data) { if (data == null) { return; } data.Clear(); data.Add(101, DeclareChangeJobFateStar.Create(StringDefines.Key_18742, 1391, 101, StringDefines.Key_18743, StringDefines.Key_18744, 0, 1, 201924695908)); data.Add(201, DeclareChangeJobFateStar.Create(StringDefines.Key_18742, 1392, 201, StringDefines.Key_18745, StringDefines.Key_18746, 101, 2, 302887043861)); data.Add(301, DeclareChangeJobFateStar.Create(StringDefines.Key_18742, 1393, 301, StringDefines.Key_18747, StringDefines.Key_18748, 201, 3, 363464452634)); data.Add(401, DeclareChangeJobFateStar.Create(StringDefines.Key_18742, 1394, 401, StringDefines.Key_18749, StringDefines.Key_18750, 301, 4, 436157343161)); data.Add(501, DeclareChangeJobFateStar.Create(StringDefines.Key_18742, 1395, 501, StringDefines.Key_18751, StringDefines.Key_18752, 401, 5, 523388811793)); data.Add(601, DeclareChangeJobFateStar.Create(StringDefines.Key_18742, 1396, 601, StringDefines.Key_18609, StringDefines.Key_18753, 501, 6, 575727692972)); data.Add(701, DeclareChangeJobFateStar.Create(StringDefines.Key_18742, 1397, 701, StringDefines.Key_18754, StringDefines.Key_18755, 601, 7, 633300462269)); data.Add(801, DeclareChangeJobFateStar.Create(StringDefines.Key_18742, 1398, 801, StringDefines.Key_18756, StringDefines.Key_18757, 701, 8, 759960554723)); data.Add(901, DeclareChangeJobFateStar.Create(StringDefines.Key_18742, 1399, 901, StringDefines.Key_18758, StringDefines.Key_18759, 801, 9, 911952665667)); data.Add(1001, DeclareChangeJobFateStar.Create(StringDefines.Key_18742, 1400, 1001, StringDefines.Key_18760, StringDefines.Key_18761, 901, 10, 1094343198801)); data.Add(1101, DeclareChangeJobFateStar.Create(StringDefines.Key_18742, 1401, 1101, StringDefines.Key_18762, StringDefines.Key_18763, 1001, 11, 1203777518681)); data.Add(1201, DeclareChangeJobFateStar.Create(StringDefines.Key_18742, 1402, 1201, StringDefines.Key_18764, StringDefines.Key_18765, 1101, 12, 1324155270549)); }