CCPurchasableVirtualItem *CCPurchasableVirtualItem::create(cocos2d::__String* name, cocos2d::__String* description, cocos2d::__String* itemId, CCPurchaseType * purchaseType) { CCPurchasableVirtualItem * pRet = new CCPurchasableVirtualItem(); if (pRet) { pRet->autorelease(); pRet->init(name, description, itemId, purchaseType); } return pRet; }
CCPurchasableVirtualItem *CCPurchasableVirtualItem::create(cocos2d::__String* name, cocos2d::__String* description, cocos2d::__String* itemId, CCPurchaseType * purchaseType) { CCPurchasableVirtualItem * ret = new CCPurchasableVirtualItem(); if (ret->init(name, description, itemId, purchaseType)) { ret->autorelease(); } else { CC_SAFE_DELETE(ret); } return ret; }