public void OnLoad() { _list = new CurvyList(); Core.OverlayCanvas.Children.Add(_list); Curvy curvy = new Curvy(_list); GameEvents.OnGameStart.Add(curvy.GameStart); GameEvents.OnInMenu.Add(curvy.InMenu); GameEvents.OnTurnStart.Add(curvy.TurnStart); }
public void OnLoad() { //System.Windows.MessageBox.Show("sadf"); System.Diagnostics.Debug.Write("LOAD HS PLUGIN"); _list = new CurvyList(); _list.Show(); Core.OverlayCanvas.Children.Add(_list); Curvy curvy = new Curvy(_list); kernal.GameAnalyzer gameAnalyzer = new kernal.GameAnalyzer(); //GameEvents.OnGameStart.Add(curvy.GameStart); //GameEvents.OnInMenu.Add(curvy.InMenu); //GameEvents.OnTurnStart.Add(curvy.TurnStart); GameEvents.OnGameStart.Add(gameAnalyzer.OnGameStart); GameEvents.OnOpponentPlay.Add(gameAnalyzer.OnOpponentPlayCard); GameEvents.OnGameEnd.Add(gameAnalyzer.OnGameEnd); GameEvents.OnOpponentDeckDiscard.Add(gameAnalyzer.OnOpponentPlayCard); GameEvents.OnOpponentHandDiscard.Add(gameAnalyzer.OnOpponentPlayCard); GameEvents.OnOpponentSecretTriggered.Add(gameAnalyzer.OnOpponentPlayCard); }