public static CardSelectionEventArgs Create(Card c, TargetableObject target) { CardSelectionEventArgs cardSelectionEventArgs = ReferencePool.Acquire <CardSelectionEventArgs>(); cardSelectionEventArgs.selectCard = c; cardSelectionEventArgs.selectTarget = target; return(cardSelectionEventArgs); }
private void CardOut(object sender, GameEventArgs e) { CardSelectionEventArgs ne = (CardSelectionEventArgs)e; var card = ne.selectCard; RearrangeHand(card); RemoveCardFromHand(card); MoveCardToDiscardPile(card); }
protected virtual void PlaySelectedCard() { var card = SelectedCard as Card; card.SetInteractable(false); // HandPresentationSystem.RearrangeHand(card); // HandPresentationSystem.RemoveCardFromHand(card); // HandPresentationSystem.MoveCardToDiscardPile(card); // DeckDrawingSystem.MoveCardToDiscardPile(card.Id); // effectResolutionSystem.ResolveCardEffects(card,selectEnemy); GameEntry.Event.Fire(this, CardSelectionEventArgs.Create(card, selectEnemy)); }
private void MoveCardToDiscardPile(object sender, GameEventArgs e) { CardSelectionEventArgs ne = (CardSelectionEventArgs)e; MoveCardToDiscardPile(ne.selectCard.CardData.CardId); }
private void CardOut(object sender, GameEventArgs e) { CardSelectionEventArgs ne = (CardSelectionEventArgs)e; ResolveCardEffects(ne.selectCard, ne.selectTarget); }