C# Class Moe.StateMachine.Extensions.StateDelegate.StateDelegatePlugIn

Plugin allows for adding delegate objects that follow a convention for state entry/exit notification. A delegate, to receive notification of a state entered/exited, must provide a public method that is named like this: public void OnEnter(object event) or no parameters. Exit notifications work the same. In the example above, the "StateString" is the state object ToString() result.
Inheritance: IPlugIn
Afficher le fichier Open project: sstuddard/Moe.StateMachine

Méthodes publiques

Méthode Description
AddDelegate ( object target ) : void
Initialize ( StateMachine sm ) : void
RemoveDelegate ( object target ) : void
StateDelegatePlugIn ( ) : System

Private Methods

Méthode Description
AttachState ( State state ) : void
InitializeStates ( ) : void
OnStateEntered ( object sender, StateTransitionEventArgs e ) : void
OnStateExited ( object sender, StateTransitionEventArgs e ) : void

Method Details

AddDelegate() public méthode

public AddDelegate ( object target ) : void
target object
Résultat void

Initialize() public méthode

public Initialize ( StateMachine sm ) : void
sm StateMachine
Résultat void

RemoveDelegate() public méthode

public RemoveDelegate ( object target ) : void
target object
Résultat void

StateDelegatePlugIn() public méthode

public StateDelegatePlugIn ( ) : System
Résultat System