MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / create

Method create

ogsr_engine/xr_3da/IGame_ObjectPool.cpp:67–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67CObject* IGame_ObjectPool::create(LPCSTR name)
68{
69 CLASS_ID CLS = pSettings->r_clsid(name, "class");
70 CObject* O = (CObject*)NEW_INSTANCE(CLS);
71 O->Load(name);
72 return O;
73}
74
75void IGame_ObjectPool::destroy(CObject* O) { xr_delete(O); }

Callers

nothing calls this directly

Calls 2

r_clsidMethod · 0.80
LoadMethod · 0.45

Tested by

no test coverage detected