1234567891011121314151617181920212223242526272829 |
- //
- // IAPDelegate.hpp
- // TileManor
- //
- // Created by 徐炼新 on 2024/9/30.
- //
- #ifndef IAPDelegate_hpp
- #define IAPDelegate_hpp
- #include <cocos2d.h>
- #include "IAPDefine.hpp"
- class IAPDelegate {
- public:
- virtual ~IAPDelegate(){}
-
- // 用户成功购买通知
- virtual void onUserBuySuccess(std::map<std::string, string> buyInfo) = 0;
-
- // //获取还需要的金币数量
- // virtual int getStillNeedCoinsWhenFailed() = 0;
-
- // 获取失败时需要显示的卡片名称
- virtual std::vector<std::string> getCardsNameWhenFailed() = 0;
- };
- #endif /* IAPDelegate_hpp */
|