MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / particles

Method particles

source/game/StarPlayer.cpp:431–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429}
430
431List<Particle> Player::particles() {
432 List<Particle> particles;
433 particles.appendAll(m_config->splashConfig.doSplash(position(), m_movementController->velocity(), world()));
434 particles.appendAll(take(m_callbackParticles));
435 particles.appendAll(m_techController->pullNewParticles());
436 particles.appendAll(m_statusController->pullNewParticles());
437
438 return particles;
439}
440
441void Player::addParticles(List<Particle> const& particles) {
442 m_callbackParticles.appendAll(particles);

Callers 4

renderMethod · 0.45
destroyMethod · 0.45
renderMethod · 0.45
destroyMethod · 0.45

Calls 5

takeFunction · 0.85
appendAllMethod · 0.80
doSplashMethod · 0.80
velocityMethod · 0.45
pullNewParticlesMethod · 0.45

Tested by

no test coverage detected