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

Method create

Source/EffectGameObject.cpp:334–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334EffectGameObject* EffectGameObject::create(std::string_view frame)
335{
336 auto pRet = new (std::nothrow) EffectGameObject();
337
338 if (pRet && pRet->init(frame))
339 {
340 pRet->_bgl = BaseGameLayer::getInstance();
341 // pRet->setVisible(false);
342 pRet->autorelease();
343 return pRet;
344 }
345 AX_SAFE_DELETE(pRet);
346 return nullptr;
347}

Callers

nothing calls this directly

Calls 1

initMethod · 0.45

Tested by

no test coverage detected