コード例 #1
0
ファイル: Timer.cs プロジェクト: liveinjs/db-bounty-profiles
        protected override Composite CreateBehavior()
        {
            return(new Sequence(
                       new PrioritySelector(

                           new Decorator(ret => Name != null,
                                         new Action(ret => TimeTracker.StopTimer(Name))),

                           new Decorator(ret => Group != null,
                                         new Action(ret => TimeTracker.StopGroup(Group)))

                           ),
                       new Action(ret => _isDone = true)
                       ));
        }