C# Class TreeSharp.Action

The base Action class. A simple, easy to use, way to execute actions, and return their status of execution. These are normally considered 'atoms' in that they are executed in their entirety.
Inheritance: Composite
Afficher le fichier Open project: lances101/BoringHeroes Class Usage Examples

Méthodes publiques

Méthode Description
Action ( ) : System.Collections.Generic
Action ( ActionDelegate action = null ) : System.Collections.Generic
Action ( ActionSucceedDelegate action = null ) : System.Collections.Generic
Execute ( object context ) : IEnumerable

Méthodes protégées

Méthode Description
Run ( object context ) : RunStatus

Runs this action, and returns a RunStatus describing it's current state of execution. If this method is not overriden, it returns RunStatus.Failure.

Method Details

Action() public méthode

public Action ( ) : System.Collections.Generic
Résultat System.Collections.Generic

Action() public méthode

public Action ( ActionDelegate action = null ) : System.Collections.Generic
action ActionDelegate
Résultat System.Collections.Generic

Action() public méthode

public Action ( ActionSucceedDelegate action = null ) : System.Collections.Generic
action ActionSucceedDelegate
Résultat System.Collections.Generic

Execute() public final méthode

public final Execute ( object context ) : IEnumerable
context object
Résultat IEnumerable

Run() protected méthode

Runs this action, and returns a RunStatus describing it's current state of execution. If this method is not overriden, it returns RunStatus.Failure.
protected Run ( object context ) : RunStatus
context object
Résultat RunStatus