示例#1
0
文件: Cost.cs 项目: shtonki/cardstone
 public override GameEvent[] pay(Card c, GameInterface gi, int[] i)
 {
     return i.Select(n => new MoveCardEvent(gi.getCardById(n), to)).ToArray();
 }
示例#2
0
文件: Cost.cs 项目: shtonki/cardstone
 public override GameEvent[] pay(Card c, GameInterface gi, int[] i)
 {
     GameEvent[] r = new GameEvent[i.Length];
     for (int v = 0; v < r.Length; v++)
     {
         r[v] = new ExhaustEvent(gi.getCardById(i[v]));
     }
     return r;
 }