NodeAnimAsyncWaiter.hpp 763 B

12345678910111213141516171819202122232425262728
  1. //
  2. // NodeAnimAsyncWaiter.hpp
  3. // redream_runtime
  4. //
  5. // Created by Chao on 2023/5/29.
  6. //
  7. #ifndef NodeAnimAsyncWaiter_hpp
  8. #define NodeAnimAsyncWaiter_hpp
  9. #include "AsyncWaiter.hpp"
  10. namespace redream{
  11. class NodeAnimAsyncWaiter : public AsyncWaiter {
  12. public:
  13. static NodeAnimAsyncWaiter* create(ReboltRedManager* rrm, red::RedBehaviacTree* fatherTree, std::string callbackTreeId, cocos2d::Node* node, std::string animFileKey, cocos2d::Vec2 startPos, cocos2d::Vec2 endPos);
  14. virtual void run(ReboltErrorInfo& errorInfo) override;
  15. private:
  16. cocos2d::Node* _node = nullptr;
  17. std::string _animFileKey = "";
  18. cocos2d::Vec2 _startPos = cocos2d::Vec2();
  19. cocos2d::Vec2 _endPos = cocos2d::Vec2();
  20. };
  21. };
  22. #endif /* NodeAnimAsyncWaiter_hpp */