public static DeclareBossgodclone Create(int in_bossLevel, int in_canShow, int in_cloneID, int in_crossSever, string in_drop, int in_dropEquipShow, int in_enterLevel, int in_head_icon, int in_iD, int in_layer, int in_mapsid, string in_monster_name, int in_monsterid, int in_num, string in_pos, int in_scourge, int in_show_model, int in_size, int in_type) { DeclareBossgodclone tmp = new DeclareBossgodclone(); tmp._bossLevel = in_bossLevel; tmp._canShow = in_canShow; tmp._cloneID = in_cloneID; tmp._crossSever = in_crossSever; 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._monster_name = in_monster_name; tmp._monsterid = in_monsterid; tmp._num = in_num; tmp._pos = in_pos; tmp._scourge = in_scourge; tmp._show_model = in_show_model; tmp._size = in_size; tmp._type = in_type; 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[]> >("DataBossgodclone"); if (dic == null) { LuaEnv.SharedLuaEnv.DoString("DataBossgodclone = require 'Lua/Config/DataBossgodclone'"); dic = LuaEnv.SharedLuaEnv.Global.Get <Dictionary <int, int[]> >("DataBossgodclone"); } if (dic != null) { _dataCaches = new Dictionary <int, DeclareBossgodclone>(15); foreach (var item in dic) { DeclareBossgodclone tmp = new DeclareBossgodclone(); tmp.BossLevel = item.Value[0]; tmp.CanShow = item.Value[1]; tmp.CloneID = item.Value[2]; tmp.CrossSever = item.Value[3]; tmp.Drop = CfgStringLua.Get(item.Value[4]); tmp.DropEquipShow = item.Value[5]; tmp.EnterLevel = item.Value[6]; tmp.HeadIcon = item.Value[7]; tmp.ID = item.Value[8]; tmp.Layer = item.Value[9]; tmp.Mapsid = item.Value[10]; tmp.MonsterName = CfgStringLua.Get(item.Value[11]); tmp.Monsterid = item.Value[12]; tmp.Num = item.Value[13]; tmp.Pos = CfgStringLua.Get(item.Value[14]); tmp.Scourge = item.Value[15]; tmp.ShowModel = item.Value[16]; tmp.Size = item.Value[17]; tmp.Type = item.Value[18]; _dataCaches.Add(item.Key, tmp); } } Record(startTime, DateTime.Now.Ticks, "Bossgodclone"); } if (_dataCaches == null && _fillDataCallBack != null) { if (_dataCaches == null) { long startTime = DateTime.Now.Ticks; _dataCaches = new Dictionary <int, DeclareBossgodclone>(15); _fillDataCallBack(_dataCaches); Record(startTime, DateTime.Now.Ticks, "Bossgodclone"); } } }
public static void Convert(Dictionary <int, DeclareBossgodclone> data) { if (data == null) { return; } data.Clear(); data.Add(50001, DeclareBossgodclone.Create(350, 1, 5601, 0, StringDefines.Key_58072, 0, 350, 1, 50001, 1, 5601, StringDefines.Key_58073, 659001, 20, StringDefines.Key_58074, 10, 699997, 250, 1)); data.Add(50002, DeclareBossgodclone.Create(350, 1, 5601, 0, StringDefines.Key_58072, 0, 350, 1, 50002, 1, 5601, StringDefines.Key_58075, 659002, 5, StringDefines.Key_58076, 25, 500081, 250, 1)); data.Add(50003, DeclareBossgodclone.Create(460, 1, 5601, 0, StringDefines.Key_58072, 0, 350, 39, 50003, 1, 5601, StringDefines.Key_36447, 100001, 25, StringDefines.Key_58077, 10, 500082, 150, 2)); data.Add(50004, DeclareBossgodclone.Create(460, 1, 5601, 0, StringDefines.Key_58078, 8, 350, 11, 50004, 1, 5601, StringDefines.Key_36448, 100002, 1, StringDefines.Key_58079, 50, 500605, 100, 4)); data.Add(50005, DeclareBossgodclone.Create(480, 1, 5601, 0, StringDefines.Key_58078, 9, 350, 24, 50005, 1, 5601, StringDefines.Key_36450, 100003, 1, StringDefines.Key_58080, 53, 500606, 100, 4)); data.Add(50006, DeclareBossgodclone.Create(500, 1, 5601, 0, StringDefines.Key_58078, 9, 350, 17, 50006, 1, 5601, StringDefines.Key_36452, 100004, 1, StringDefines.Key_58081, 56, 500607, 100, 4)); data.Add(50007, DeclareBossgodclone.Create(520, 1, 5601, 0, StringDefines.Key_58078, 9, 350, 23, 50007, 1, 5601, StringDefines.Key_36454, 100005, 1, StringDefines.Key_58082, 59, 500608, 100, 4)); data.Add(50008, DeclareBossgodclone.Create(540, 1, 5601, 0, StringDefines.Key_58072, 9, 350, 15, 50008, 1, 5601, StringDefines.Key_36456, 100006, 1, StringDefines.Key_58083, 61, 500609, 100, 4)); data.Add(50009, DeclareBossgodclone.Create(560, 1, 5601, 0, StringDefines.Key_58072, 10, 350, 18, 50009, 1, 5601, StringDefines.Key_36458, 100007, 1, StringDefines.Key_58084, 64, 500610, 100, 4)); data.Add(50010, DeclareBossgodclone.Create(580, 1, 5601, 0, StringDefines.Key_58072, 10, 350, 28, 50010, 1, 5601, StringDefines.Key_36460, 100008, 1, StringDefines.Key_58085, 67, 500612, 100, 4)); data.Add(50011, DeclareBossgodclone.Create(600, 1, 5601, 0, StringDefines.Key_58072, 10, 350, 14, 50011, 1, 5601, StringDefines.Key_22713, 100009, 1, StringDefines.Key_58086, 70, 500613, 100, 4)); data.Add(50012, DeclareBossgodclone.Create(460, 1, 5601, 0, StringDefines.Key_58072, 9, 350, 37, 50012, 1, 5601, StringDefines.Key_36462, 100010, 1, StringDefines.Key_58087, 50, 500614, 100, 3)); data.Add(50014, DeclareBossgodclone.Create(500, 1, 5601, 0, StringDefines.Key_58072, 9, 350, 27, 50014, 1, 5601, StringDefines.Key_36462, 100012, 1, StringDefines.Key_58088, 56, 500616, 100, 3)); data.Add(50016, DeclareBossgodclone.Create(540, 1, 5601, 0, StringDefines.Key_58072, 10, 350, 31, 50016, 1, 5601, StringDefines.Key_36462, 100014, 1, StringDefines.Key_58089, 61, 500618, 100, 3)); data.Add(50018, DeclareBossgodclone.Create(580, 1, 5601, 0, StringDefines.Key_58072, 10, 350, 33, 50018, 1, 5601, StringDefines.Key_36462, 100016, 1, StringDefines.Key_58090, 67, 500621, 100, 3)); }