MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / create

Method create

src/OpenLoco/src/Effects/ExplosionSmokeEffect.cpp:18–32  ·  view source on GitHub ↗

0x00440BBF

Source from the content-addressed store, hash-verified

16
17 // 0x00440BBF
18 ExplosionSmoke* ExplosionSmoke::create(const World::Pos3& loc)
19 {
20 auto t = static_cast<ExplosionSmoke*>(EntityManager::createEntityMisc());
21 if (t != nullptr)
22 {
23 t->spriteWidth = 44;
24 t->spriteHeightNegative = 32;
25 t->spriteHeightPositive = 34;
26 t->baseType = EntityBaseType::effect;
27 t->moveTo(loc + World::Pos3{ 0, 0, 4 });
28 t->setSubType(EffectType::explosionSmoke);
29 t->frame = 0;
30 }
31 return t;
32 }
33}

Callers

nothing calls this directly

Calls 3

createEntityMiscFunction · 0.85
moveToMethod · 0.80
setSubTypeMethod · 0.45

Tested by

no test coverage detected