// // NodeAnimAsyncWaiter.hpp // redream_runtime // // Created by Chao on 2023/5/29. // #ifndef NodeAnimAsyncWaiter_hpp #define NodeAnimAsyncWaiter_hpp #include "AsyncWaiter.hpp" namespace redream{ class NodeAnimAsyncWaiter : public AsyncWaiter { public: static NodeAnimAsyncWaiter* create(ReboltRedManager* rrm, red::RedBehaviacTree* fatherTree, std::string callbackTreeId, cocos2d::Node* node, std::string animFileKey, cocos2d::Vec2 startPos, cocos2d::Vec2 endPos); virtual void run(ReboltErrorInfo& errorInfo) override; private: cocos2d::Node* _node = nullptr; std::string _animFileKey = ""; cocos2d::Vec2 _startPos = cocos2d::Vec2(); cocos2d::Vec2 _endPos = cocos2d::Vec2(); }; }; #endif /* NodeAnimAsyncWaiter_hpp */