BetterNerfIrelia.ModeManager.OnTick C# (CSharp) Метод

OnTick() приватный статический Метод

private static OnTick ( EventArgs args ) : void
args System.EventArgs
Результат void
        private static void OnTick(EventArgs args)
        {
            //if (Player.Instance.ChampionsKilled > kills)
            //{
            //    kills = Player.Instance.ChampionsKilled;
            //    if (Environment.TickCount - lastEmote > 10000)
            //    {
            //        lastEmote = Environment.TickCount;
            //        Player.DoMasteryBadge();
            //    }
            //}

            Modes.ForEach(
                mode =>
                    {
                        try
                        {
                            if (mode.ShouldBeExecuted())
                            {
                                mode.Execute();
                            }
                        }
                        catch (Exception e)
                        {
                            Logger.Log(LogLevel.Error, "Error in mode '{0}'\n{1}", mode.GetType().Name, e);
                        }
                    });
        }