MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / create

Method create

Source/PromoItemSprite.cpp:63–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63PromoItemSprite* PromoItemSprite::create(const char* sprite, std::function<void(Node*)> callback) {
64 PromoItemSprite* pRet = new(std::nothrow) PromoItemSprite(sprite, callback);
65
66 if (pRet && pRet->init()) {
67 pRet->autorelease();
68 return pRet;
69 } else {
70 AX_SAFE_DELETE(pRet);
71 return nullptr;
72 }
73}

Callers

nothing calls this directly

Calls 1

initMethod · 0.45

Tested by

no test coverage detected