IAPDelegate.hpp 604 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // IAPDelegate.hpp
  3. // TileManor
  4. //
  5. // Created by 徐炼新 on 2024/9/30.
  6. //
  7. #ifndef IAPDelegate_hpp
  8. #define IAPDelegate_hpp
  9. #include <cocos2d.h>
  10. #include "IAPDefine.hpp"
  11. class IAPDelegate {
  12. public:
  13. virtual ~IAPDelegate(){}
  14. // 用户成功购买通知
  15. virtual void onUserBuySuccess(std::map<std::string, string> buyInfo) = 0;
  16. // //获取还需要的金币数量
  17. // virtual int getStillNeedCoinsWhenFailed() = 0;
  18. // 获取失败时需要显示的卡片名称
  19. virtual std::vector<std::string> getCardNameWhenFailed() = 0;
  20. };
  21. #endif /* IAPDelegate_hpp */