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

Method create

Source/RewardUnlockLayer.cpp:48–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46USING_NS_AX;
47
48RewardUnlockLayer* RewardUnlockLayer::create(int chestID)
49{
50 RewardUnlockLayer* pRet = new RewardUnlockLayer();
51
52 if (pRet && pRet->init(chestID))
53 {
54 pRet->autorelease();
55 return pRet;
56 }
57
58 AX_SAFE_DELETE(pRet);
59 return nullptr;
60}
61
62bool RewardUnlockLayer::init(int chestID)
63{

Callers

nothing calls this directly

Calls 1

initMethod · 0.45

Tested by

no test coverage detected