MCPcopy Create free account
hub / github.com/axmolengine/axmol / create

Method create

core/2d/ParticleSystem.cpp:274–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272// implementation ParticleSystem
273
274ParticleSystem* ParticleSystem::create(std::string_view plistFile)
275{
276 ParticleSystem* ret = new ParticleSystem();
277 if (ret->initWithFile(plistFile))
278 {
279 ret->autorelease();
280 return ret;
281 }
282 AX_SAFE_DELETE(ret);
283 return ret;
284}
285
286ParticleSystem* ParticleSystem::createWithTotalParticles(int numberOfParticles)
287{

Callers

nothing calls this directly

Calls 2

autoreleaseMethod · 0.80
initWithFileMethod · 0.45

Tested by

no test coverage detected