internal static void OnLoad() { if (Player.ChampionName != "Jhin") { return; } LoadSpell(); LoadMenu(); LoadEvents(); LastPosition.Load(); //初始化ping时间 foreach (var enemy in HeroManager.Enemies) { PingList.Add(enemy.NetworkId, 0); } //DamageIndicator.DamageToUnit = GetRDmg; if (IsChinese) { Chat.Print("戏命师—烬 ".ToHtml(25) + "此刻,大美将致!".ToHtml(Color.PowderBlue, FontStlye.Cite)); } else { Chat.Print("Jhin As The Virtuoso ".ToHtml(25) + "Art requires a certain cruelty!".ToHtml(Color.Purple, FontStlye.Cite)); } }
internal static void OnLoad(EventArgs args) { if (Player.ChampionName != "Jhin") { return; } CNLib.MultiLanguage.Load(new Dictionary <string, Dictionary <string, string> >() { { "English", MultiLanguage.EnglishDictionary } }); LoadSpell(); LoadMenu(); LoadEvents(); LastPosition.Load(); //初始化ping时间 foreach (var enemy in HeroManager.Enemies) { PingList.Add(enemy.NetworkId, 0); } DamageIndicator.DamageToUnit = GetRDmg; if (IsChinese) { Game.PrintChat("戏命师—烬 ".ToHtml(25) + "此刻,大美将致!".ToHtml(Color.PowderBlue, FontStlye.Cite)); } else { Game.PrintChat("Jhin As The Virtuoso ".ToHtml(25) + "Art requires a certain cruelty!".ToHtml(Color.Purple, FontStlye.Cite)); } }
private void OnTimedEvent(Object sender, EventArgs e) { foreach (XenaxDeviceConnection con in xenaxDeviceConnections) { if (!con.pingPending) { PingList.Add(PingConnectionAsync(con)); } } }