/// <summary> /// Receives notification that expedition deck was updated /// </summary> /// <param name="cards">Updated set</param> public void OnExpeditionDeckUpdated(List <CardWithCount> cards) { if (CurrentExpedition.State == "Picking" || CurrentExpedition.State == "Swapping" || CurrentExpedition.State == "Other") { PlayerActiveDeckWindow.Title = string.Format("Expedition {0}-{1}{2}", CurrentExpedition.NumberOfWins, CurrentExpedition.NumberOfLosses, CurrentExpedition.IsEliminationGame ? "*" : ""); PlayerActiveDeckWindow.SetFullDeck(CurrentExpedition.Cards); PlayerActiveDeckWindow.SetCurrentDeck(CurrentExpedition.Cards); } else if (CurrentPlayState.GameState != "InProgress") { PlayerActiveDeckWindow.Title = string.Format("No Active Deck"); PlayerActiveDeckWindow.SetFullDeck(new List <CardWithCount>()); } }
/// <summary> /// Callback for when opponent graveyard has been changed /// </summary> /// <param name="cards">Cards in the set</param> public void OnOpponentGraveyardChanged(List <CardWithCount> cards) { OpponentGraveyardWindow.SetCurrentDeck(Utilities.Clone(cards)); }
/// <summary> /// Callback for when player hand has been changed /// </summary> /// <param name="cards">Cards in the set</param> public void OnPlayerDrawnAndPlayedChanged(List <CardWithCount> cards) { PlayerDrawnCardsWindow.SetCurrentDeck(Utilities.Clone(cards)); }