修复了事件跳转状态跳转的问题,但是目前事件跳转仍然不完善,返回使用指针跳转的状态
This commit is contained in:
@@ -25,10 +25,10 @@ public:
|
||||
std::map<unsigned int, FSM_State> idStateMap;
|
||||
|
||||
int run(FSM_State &fsm,void* data);
|
||||
int run(FSM_State &fsm,void* data, std::string event);
|
||||
int run(FSM_State *fsm,void* data, std::string event);
|
||||
|
||||
//TODO: 事件注册机制实现
|
||||
int RegisterEvent(FSM_State* fsm, std::string event, FSM_State &state);
|
||||
int RegisterEvent(FSM_State* fsm, std::string event, FSM_State *state);
|
||||
int unRegisterEvent(FSM_State* fsm, std::string event);
|
||||
|
||||
int RegisterState(std::string name, unsigned int id,FSM_State &state);
|
||||
|
||||
Reference in New Issue
Block a user