Beispiel #1
0
        /// <summary>
        /// Called when [game start].
        /// </summary>
        private static void OnGameStart()
        {
            var playerChampionName = ObjectManager.GetLocalPlayer().ChampionName;

            switch (playerChampionName)
            {
            default:
                Console.WriteLine($"{playerChampionName} is currently not supported");
                break;

            case "Ashe":
                try
                {
                    IChampion championAshe = new Ashe($"{playerChampionName} | {ProjectName} - {ProjectVersion}");
                    championAshe.Bootstrap();
                }
                catch (Exception ex)
                {
                    Console.WriteLine($"Some exception just got throw: {ex}");
                    Console.WriteLine($"Stacktrace: {ex.StackTrace}");
                }
                break;

            case "Annie":
                break;
            }
        }