InterstitialAdWaiter.hpp 643 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // InterstitialAdWaiter.hpp
  3. // redream_runtime
  4. //
  5. // Created by Chao on 2023/5/24.
  6. //
  7. #ifndef InterstitialAdWaiter_hpp
  8. #define InterstitialAdWaiter_hpp
  9. #include "cocos2d.h"
  10. #include "WaitableStateBase.hpp"
  11. #include "ReboltRunDelegate.hpp"
  12. namespace red{
  13. class RedBehaviacTree;
  14. }
  15. namespace redream {
  16. class InterstitialAdWaiter : public WaitableStateBase {
  17. public:
  18. static InterstitialAdWaiter* create(ReboltRedManager* rrm, red::RedBehaviacTree* fatherTree, std::string adName);
  19. virtual void run(ReboltErrorInfo& errorInfo) override;
  20. private:
  21. std::string _adName = "";
  22. };
  23. }
  24. #endif /* InterstitialAdWaiter_hpp */