| 1 | #include "Library/Event/SceneEventFlowMsg.h" |
|---|---|
| 2 | |
| 3 | #include "Library/Base/StringUtil.h" |
| 4 | |
| 5 | namespace al { |
| 6 | SceneEventFlowMsg::SceneEventFlowMsg() {} |
| 7 | |
| 8 | bool SceneEventFlowMsg::isReceiveCommand(const char* cmd) const { |
| 9 | if (mCmd.isEmpty()) |
| 10 | return false; |
| 11 | |
| 12 | return isEqualString(str1: cmd, str2: mCmd.cstr()); |
| 13 | } |
| 14 | |
| 15 | void SceneEventFlowMsg::requestCommand(const char* cmd) { |
| 16 | mCmd = cmd; |
| 17 | } |
| 18 | } // namespace al |
| 19 |