public static StateMachine Logger(this StateMachine sm, ILogger logger) { LoggerPlugIn plugin = new LoggerPlugIn(logger); sm.AddPlugIn(plugin); return sm; }
public static StateMachine Asynchronous(this StateMachine sm) { if (sm.GetPlugIn<AsynchronousPlugIn>() == null) sm.AddPlugIn(new AsynchronousPlugIn()); return sm; }
public static StateDelegatePlugIn EnableStateDelegates(this StateMachine sm) { if (sm.GetPlugIn<StateDelegatePlugIn>() == null) sm.AddPlugIn(new StateDelegatePlugIn()); return sm.GetPlugIn<StateDelegatePlugIn>(); }