Browse Source

添加了一些注释

MoYuWang 9 months ago
parent
commit
8756028aef
2 changed files with 5 additions and 1 deletions
  1. 4 1
      Classes/IAP/IAPCtlShop.hpp
  2. 1 0
      Classes/IAP/IAPDelegate.hpp

+ 4 - 1
Classes/IAP/IAPCtlShop.hpp

@@ -46,13 +46,15 @@ public:
     bool addAPlacement(const IAPPlacement& plInfo);
 
     // 删除一个商店版位
-    // id 卡片id(添加版位时的id)
+    // id 添加版位时的id
     void removePlacement(const std::string& id);
     
     // 给某个商店版位添加卡片
+    // id 商店版位id  card 卡片信息
     bool addCardToPlacement(const std::string& id, IAPCard* card);
     
     // 给某个商店版位删除卡片
+    // id 商店版位id cardIndex 卡片索引
     bool removeCardToPlacement(const std::string& id, int cardIndex = -1);
     
     // 清空活动
@@ -77,6 +79,7 @@ public:
     void showSlideCardsByCoinsIn(cocos2d::Node* pParent, int stillNeedCoins);
     
     // 添加用户购买信息 并 从delegate发送购买的道具信息
+    // commodityID 购买的商店卡片ID
     void addUserBuyInfo(std::string commodityID);
     
     // 清除用户购买信息

+ 1 - 0
Classes/IAP/IAPDelegate.hpp

@@ -16,6 +16,7 @@ public:
     virtual ~IAPDelegate(){}
     
     // 用户成功购买通知
+    // buyInfo 购买信息 < 道具名称, 道具数量 >
     virtual void onUserBuySuccess(std::map<std::string, string> buyInfo) = 0;
 
 };