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

Method create

src/OpenLoco/src/Effects/SmokeEffect.cpp:21–35  ·  view source on GitHub ↗

0x00440BEB

Source from the content-addressed store, hash-verified

19
20 // 0x00440BEB
21 Smoke* Smoke::create(World::Pos3 loc)
22 {
23 auto t = static_cast<Smoke*>(EntityManager::createEntityMisc());
24 if (t != nullptr)
25 {
26 t->spriteWidth = 44;
27 t->spriteHeightNegative = 32;
28 t->spriteHeightPositive = 34;
29 t->baseType = EntityBaseType::effect;
30 t->setSubType(EffectType::smoke);
31 t->frame = 0;
32 t->moveTo(loc);
33 }
34 return t;
35 }
36}

Callers

nothing calls this directly

Calls 3

createEntityMiscFunction · 0.85
moveToMethod · 0.80
setSubTypeMethod · 0.45

Tested by

no test coverage detected