IAPTestCard.hpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // IAPCtlShopActItem.hpp
  3. // demo
  4. //
  5. // Created by Red_mini on 2024/10/22.
  6. //
  7. #ifndef IAPCtlShopActItem_hpp
  8. #define IAPCtlShopActItem_hpp
  9. #include <stdio.h>
  10. #include "cocos2d.h"
  11. #include "RUReboltLayer.h"
  12. #include "IAPConf.hpp"
  13. #include "IAPDefine.hpp"
  14. class IAPTestCard : public iap::IAPCard
  15. {
  16. public:
  17. IAPTestCard();
  18. // 创建一个实例节点
  19. virtual Node* create() override;
  20. // 设置点击回调
  21. virtual void setCbWhileClicked(std::function<void()> cb) override;
  22. // 释放
  23. virtual void release() override;
  24. virtual cocos2d::Size getSize() override;
  25. private:
  26. redutils::RUReboltLayer* createLayer();
  27. void onNotifyDevelopment(const redutils::ReboltNotifyData&);
  28. void accepted();
  29. void rejected();
  30. private:
  31. std::string _redName; // redream名称
  32. std::string _title; // P-标题
  33. std::string _background; // P-背景图片
  34. std::string _gameUIName; // P-图集名称
  35. std::string _buttonLabel; // P-按钮文字
  36. };
  37. #endif /* IAPCtlShopActItem_hpp */