Exemplo n.º 1
0
Arquivo: Game.cs Projeto: maplegh/sgs
 public void PlayerDiscardedCard(Player p, List<Card> cards, DiscardReason reason)
 {
     try
     {
         var arg = new DiscardCardEventArgs();
         arg.Source = p;
         arg.Targets = null;
         arg.Cards = cards;
         arg.Reason = reason;
         Emit(GameEvent.CardsEnteredDiscardDeck, arg);
     }
     catch (TriggerResultException)
     {
         throw new NotImplementedException();
     }
 }
Exemplo n.º 2
0
Arquivo: Game.cs Projeto: maplegh/sgs
 public void PlayerAboutToDiscardCard(Player p, List<Card> cards, DiscardReason reason)
 {
     SyncCardsAll(cards);
     try
     {
         var arg = new DiscardCardEventArgs();
         arg.Source = p;
         arg.Targets = null;
         arg.Cards = cards;
         arg.Reason = reason;
         Emit(GameEvent.CardsEnteringDiscardDeck, arg, true);
     }
     catch (TriggerResultException)
     {
         throw new NotImplementedException();
     }
 }