public static void Convert(Dictionary <int, DeclareBossGodRuins> data) { if (data == null) { return; } data.Clear(); data.Add(40001, DeclareBossGodRuins.Create(260, 1, 5160, StringDefines.Key_30614, 6, 260, 16, 40001, 1, 5160, 67009, StringDefines.Key_18288, 670000, 25, 500)); data.Add(40002, DeclareBossGodRuins.Create(280, 1, 5160, StringDefines.Key_30614, 7, 260, 29, 40002, 1, 5160, 67010, StringDefines.Key_18290, 930000, 30, 480)); data.Add(40003, DeclareBossGodRuins.Create(300, 1, 5160, StringDefines.Key_30614, 7, 260, 25, 40003, 1, 5160, 67011, StringDefines.Key_18292, 1230000, 35, 400)); data.Add(40004, DeclareBossGodRuins.Create(320, 1, 5160, StringDefines.Key_30614, 7, 260, 28, 40004, 1, 5160, 67012, StringDefines.Key_18294, 1690000, 40, 340)); data.Add(40005, DeclareBossGodRuins.Create(340, 1, 5160, StringDefines.Key_30614, 8, 260, 34, 40005, 1, 5160, 67013, StringDefines.Key_18296, 2120000, 45, 470)); data.Add(40006, DeclareBossGodRuins.Create(360, 1, 5160, StringDefines.Key_30614, 8, 260, 2, 40006, 1, 5160, 67014, StringDefines.Key_30615, 2740000, 50, 430)); data.Add(40007, DeclareBossGodRuins.Create(380, 1, 5160, StringDefines.Key_30616, 9, 260, 12, 40007, 1, 5160, 67015, StringDefines.Key_18300, 3320000, 55, 310)); data.Add(40008, DeclareBossGodRuins.Create(400, 1, 5160, StringDefines.Key_30616, 9, 260, 22, 40008, 1, 5160, 67016, StringDefines.Key_18302, 3970000, 60, 400)); data.Add(40009, DeclareBossGodRuins.Create(425, 1, 5161, StringDefines.Key_30616, 10, 371, 15, 40009, 2, 5161, 67025, StringDefines.Key_18288, 670000, 50, 320)); data.Add(40010, DeclareBossGodRuins.Create(450, 1, 5161, StringDefines.Key_30616, 10, 371, 24, 40010, 2, 5161, 67026, StringDefines.Key_18290, 930000, 55, 400)); data.Add(40011, DeclareBossGodRuins.Create(475, 1, 5161, StringDefines.Key_30616, 11, 371, 4, 40011, 2, 5161, 67027, StringDefines.Key_18292, 1230000, 60, 370)); data.Add(40012, DeclareBossGodRuins.Create(500, 1, 5161, StringDefines.Key_30616, 11, 371, 13, 40012, 2, 5161, 67028, StringDefines.Key_18294, 1690000, 65, 470)); data.Add(40013, DeclareBossGodRuins.Create(525, 1, 5161, StringDefines.Key_30616, 11, 371, 27, 40013, 2, 5161, 67029, StringDefines.Key_18296, 2120000, 70, 270)); data.Add(40014, DeclareBossGodRuins.Create(550, 1, 5161, StringDefines.Key_30616, 12, 371, 33, 40014, 2, 5161, 67030, StringDefines.Key_30615, 2740000, 75, 300)); data.Add(40015, DeclareBossGodRuins.Create(575, 1, 5161, StringDefines.Key_30616, 12, 371, 14, 40015, 2, 5161, 67031, StringDefines.Key_18300, 3320000, 76, 300)); data.Add(40016, DeclareBossGodRuins.Create(600, 1, 5161, StringDefines.Key_30616, 12, 371, 11, 40016, 2, 5161, 67032, StringDefines.Key_18302, 3970000, 82, 380)); data.Add(40017, DeclareBossGodRuins.Create(610, 0, 5162, StringDefines.Key_30616, 13, 450, 18, 40017, 3, 5162, 67041, StringDefines.Key_18288, 670000, 84, 380)); data.Add(40018, DeclareBossGodRuins.Create(630, 0, 5162, StringDefines.Key_30616, 13, 450, 26, 40018, 3, 5162, 67042, StringDefines.Key_18290, 930000, 88, 350)); data.Add(40019, DeclareBossGodRuins.Create(650, 0, 5162, StringDefines.Key_30616, 14, 450, 3, 40019, 3, 5162, 67043, StringDefines.Key_18292, 1230000, 88, 350)); data.Add(40020, DeclareBossGodRuins.Create(670, 0, 5162, StringDefines.Key_30616, 14, 450, 31, 40020, 3, 5162, 67044, StringDefines.Key_18294, 1690000, 88, 400)); data.Add(40021, DeclareBossGodRuins.Create(690, 0, 5162, StringDefines.Key_30616, 14, 450, 17, 40021, 3, 5162, 67045, StringDefines.Key_18296, 2120000, 88, 350)); data.Add(40022, DeclareBossGodRuins.Create(710, 0, 5162, StringDefines.Key_30616, 15, 450, 9, 40022, 3, 5162, 67046, StringDefines.Key_30615, 2740000, 88, 460)); data.Add(40023, DeclareBossGodRuins.Create(730, 0, 5162, StringDefines.Key_30616, 15, 450, 21, 40023, 3, 5162, 67047, StringDefines.Key_18300, 3320000, 88, 600)); data.Add(40024, DeclareBossGodRuins.Create(750, 0, 5162, StringDefines.Key_30616, 15, 450, 30, 40024, 3, 5162, 67048, StringDefines.Key_18302, 3970000, 88, 480)); }
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[]> >("DataBossGodRuins"); if (dic == null) { LuaEnv.SharedLuaEnv.DoString("DataBossGodRuins = require 'Lua/Config/DataBossGodRuins'"); dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataBossGodRuins"); } if (dic != null) { _dataCaches = new Dictionary <int, DeclareBossGodRuins>(24); foreach (var item in dic) { DeclareBossGodRuins tmp = new DeclareBossGodRuins(); tmp.BossLevel = item.Value[0]; tmp.CanShow = item.Value[1]; tmp.CloneID = item.Value[2]; tmp.Drop = CfgStringLua.Get(item.Value[3]); tmp.DropEquipShow = item.Value[4]; tmp.EnterLevel = item.Value[5]; tmp.HeadIcon = item.Value[6]; tmp.ID = item.Value[7]; tmp.Layer = item.Value[8]; tmp.Mapsid = item.Value[9]; tmp.Monsterid = item.Value[10]; tmp.Pos = CfgStringLua.Get(item.Value[11]); tmp.Power = item.Value[12]; tmp.Scourge = item.Value[13]; tmp.Size = item.Value[14]; _dataCaches.Add(item.Key, tmp); } } Record(startTime, DateTime.Now.Ticks, "BossGodRuins"); } if (_dataCaches == null && _fillDataCallBack != null) { if (_dataCaches == null) { long startTime = DateTime.Now.Ticks; _dataCaches = new Dictionary <int, DeclareBossGodRuins>(24); _fillDataCallBack(_dataCaches); Record(startTime, DateTime.Now.Ticks, "BossGodRuins"); } } }
public static DeclareBossGodRuins Create(int in_bossLevel, int in_canShow, int in_cloneID, string in_drop, int in_dropEquipShow, int in_enterLevel, int in_head_icon, int in_iD, int in_layer, int in_mapsid, int in_monsterid, string in_pos, int in_power, int in_scourge, int in_size) { DeclareBossGodRuins tmp = new DeclareBossGodRuins(); tmp._bossLevel = in_bossLevel; tmp._canShow = in_canShow; tmp._cloneID = in_cloneID; tmp._drop = in_drop; tmp._dropEquipShow = in_dropEquipShow; tmp._enterLevel = in_enterLevel; tmp._head_icon = in_head_icon; tmp._iD = in_iD; tmp._layer = in_layer; tmp._mapsid = in_mapsid; tmp._monsterid = in_monsterid; tmp._pos = in_pos; tmp._power = in_power; tmp._scourge = in_scourge; tmp._size = in_size; return(tmp); }