private void LoadChampionInformation(string champName) { Task.Run(async() => { ChampionInfo = await GetChampionInformation(champName); AddInputHandlers(); ChampionInfoLoaded?.Invoke(ChampionInfo); }); }
private void LoadChampionInformation(string champName) { Task.Run(async() => { ChampionInfo = await GetChampionInformation(champName); KeyboardHookService.Instance.OnMouseClicked += OnMouseClick; // TODO. Abstract this to league of legends module, so it pairs with summoner spells and items. KeyboardHookService.Instance.OnKeyPressed += OnKeyPress; KeyboardHookService.Instance.OnKeyReleased += OnKeyRelease; ChampionInfoLoaded?.Invoke(ChampionInfo); }); }