NotifyDevelopmentWaiter.hpp 884 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // NotifyDevelopmentWaiter.hpp
  3. // redream_runtime
  4. //
  5. // Created by Chao on 2023/5/25.
  6. //
  7. #ifndef NotifyDevelopmentWaiter_hpp
  8. #define NotifyDevelopmentWaiter_hpp
  9. #include "WaitableStateBase.hpp"
  10. #include "ReboltRunDelegate.hpp"
  11. namespace red{
  12. class RedBehaviacTree;
  13. }
  14. namespace redream {
  15. class NotifyDevelopmentWaiter : public WaitableStateBase {
  16. public:
  17. static NotifyDevelopmentWaiter* create(ReboltRedManager* rrm, red::RedBehaviacTree* fatherTree, std::string notify, std::string param, bool reboltIsWait, Node* outNode);
  18. virtual RunningState getRunningState() override;
  19. virtual void run(ReboltErrorInfo& errorInfo) override;
  20. void notifyDevelopmentEnd();
  21. private:
  22. std::string _notifyName = "";
  23. std::string _param = "";
  24. bool _reboltIsWait = false;
  25. Node* _outNode = nullptr;
  26. };
  27. }
  28. #endif /* NotifyDevelopmentWaiter_hpp */