IAPShopDelegate.hpp 453 B

12345678910111213141516171819202122232425
  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 IAPShopDelegate {
  12. public:
  13. virtual ~IAPShopDelegate(){}
  14. // 用户成功购买通知
  15. // buyInfo 购买信息 < 道具名称, 道具数量 >
  16. virtual void onUserBuySuccess(std::map<std::string, string> buyInfo) = 0;
  17. };
  18. #endif /* IAPDelegate_hpp */