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

Function paintEffectEntity

src/OpenLoco/src/Paint/PaintEffectEntity.cpp:322–380  ·  view source on GitHub ↗

0x00440325

Source from the content-addressed store, hash-verified

320
321 // 0x00440325
322 void paintEffectEntity(PaintSession& session, EffectEntity* base)
323 {
324 switch (base->getSubType())
325 {
326 case EffectType::exhaust: // 0
327 {
328 paintExhaustEntity(session, base->asExhaust());
329 break;
330 }
331
332 case EffectType::redGreenCurrency: // 1
333 {
334 paintRedGreenCurrencyEntity(session, base->asRedGreenCurrency());
335 break;
336 }
337
338 case EffectType::windowCurrency: // 2
339 {
340 paintWindowCurrencyEntity(session, base->asWindowCurrency());
341 break;
342 }
343
344 case EffectType::vehicleCrashParticle: // 3
345 {
346 paintVehicleCrashParticleEntity(session, base->asVehicleCrashParticle());
347 break;
348 }
349
350 case EffectType::explosionCloud: // 4
351 {
352 paintExplosionCloudEntity(session, base->asExplosionCloud());
353 break;
354 }
355
356 case EffectType::splash: // 5
357 {
358 paintSplashEntity(session, base->asSplash());
359 break;
360 }
361
362 case EffectType::fireball: // 6
363 {
364 paintFireballEntity(session, base->asFireball());
365 break;
366 }
367
368 case EffectType::explosionSmoke: // 7
369 {
370 paintExplosionSmokeEntity(session, base->asExplosionSmoke());
371 break;
372 }
373
374 case EffectType::smoke: // 8
375 {
376 paintSmokeEntity(session, base->asSmoke());
377 break;
378 }
379 }

Callers 1

paintEntitiesWithFilterFunction · 0.85

Calls 15

paintExhaustEntityFunction · 0.85
paintSplashEntityFunction · 0.85
paintFireballEntityFunction · 0.85
paintSmokeEntityFunction · 0.85
asExhaustMethod · 0.80
asRedGreenCurrencyMethod · 0.80
asWindowCurrencyMethod · 0.80

Tested by

no test coverage detected