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

Method create

Source/GameObject.cpp:269–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267}
268
269GameObject* GameObject::create(std::string_view frame, std::string_view glowFrame)
270{
271 auto pRet = new (std::nothrow) GameObject();
272
273 if (pRet && pRet->init(frame, glowFrame))
274 {
275 pRet->autorelease();
276 return pRet;
277 }
278 AX_SAFE_DELETE(pRet);
279 return nullptr;
280}
281
282void GameObject::setPosition(const ax::Vec2& pos)
283{

Callers

nothing calls this directly

Calls 1

initMethod · 0.45

Tested by

no test coverage detected