コード例 #1
0
ファイル: THHEffect.cs プロジェクト: hbn2020/TouhouHeartstone
 /// <summary>
 /// 简化的构造器
 /// </summary>
 /// <param name="buff">光环添加的buff</param>
 /// <param name="range"></param>
 /// <param name="pile"></param>
 /// <param name="filter"></param>
 public Halo(Buff buff, PileFlag range, PileFlag pile = PileFlag.self | PileFlag.field, Func <THHGame, Card, bool> filter = null)
 {
     this.buff   = buff;
     piles       = PileName.getPiles(pile);
     getRange    = (game, card) => range.getPiles(game, card.getOwner());
     this.filter = filter;
 }
コード例 #2
0
ファイル: THHEffect.cs プロジェクト: hbn2020/TouhouHeartstone
 public LambdaSingleTargetEffect(ExecuteDelegate onExecute,
                                 PileFlag ranges = PileFlag.none,
                                 CheckConditionDelegate onCheckCondition = null,
                                 CheckTargetDelegate onCheckTarget       = null)
 {
     if (ranges != PileFlag.none)
     {
         this.ranges = PileName.getPiles(ranges);
     }
     _onCheckCondition = onCheckCondition;
     _onCheckTarget    = onCheckTarget;
     _onExecute        = onExecute;
 }