namespace ColdMint.scripts.stateMachine; /// /// IStateMachine /// 状态机 /// public interface IStateMachine { /// /// StateContext /// 状态机上下文 /// /// ///The state machine holds the context ///状态机持有上下文 /// StateContext? Context { get; set; } /// /// In operation or not /// 是否运行中 /// bool IsRunning { get;} /// /// Open state machine /// 开启状态机 /// void Start(); /// /// Stop state machine /// 停止状态机 /// void Stop(); /// /// execute /// 执行 /// void Execute(); }