C# 클래스 TreeSharp.DecoratorContinue

A decorator that allows you to execute code only if some condition is met. It does not 'break' the current tree if the condition fails, or children fail. This is useful for "if I need to, go ahead, otherwise, ignore" in sequences. It can be thought of as an optional execution.
Created 1/13/2011.
상속: Decorator
파일 보기 프로젝트 열기: lances101/BoringHeroes

공개 메소드들

메소드 설명
DecoratorContinue ( CanRunDecoratorDelegate func, Composite decorated ) : System.Collections.Generic
DecoratorContinue ( Composite child ) : System.Collections.Generic
Execute ( object context ) : IEnumerable

비공개 메소드들

메소드 설명
GetContinuationStatus ( ) : RunStatus

메소드 상세

DecoratorContinue() 공개 메소드

public DecoratorContinue ( CanRunDecoratorDelegate func, Composite decorated ) : System.Collections.Generic
func CanRunDecoratorDelegate
decorated Composite
리턴 System.Collections.Generic

DecoratorContinue() 공개 메소드

public DecoratorContinue ( Composite child ) : System.Collections.Generic
child Composite
리턴 System.Collections.Generic

Execute() 공개 메소드

public Execute ( object context ) : IEnumerable
context object
리턴 IEnumerable