// // InterstitialAdWaiter.hpp // redream_runtime // // Created by Chao on 2023/5/24. // #ifndef InterstitialAdWaiter_hpp #define InterstitialAdWaiter_hpp #include "cocos2d.h" #include "WaitableStateBase.hpp" #include "ReboltRunDelegate.hpp" namespace red{ class RedBehaviacTree; } namespace redream { class InterstitialAdWaiter : public WaitableStateBase { public: static InterstitialAdWaiter* create(ReboltRedManager* rrm, red::RedBehaviacTree* fatherTree, std::string adName); virtual void run(ReboltErrorInfo& errorInfo) override; private: std::string _adName = ""; }; } #endif /* InterstitialAdWaiter_hpp */