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

Method particles

source/game/StarHumanoid.cpp:1673–1683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1671}
1672
1673List<Particle> Humanoid::particles(String const& name) const {
1674 auto particleDatabase = Root::singleton().particleDatabase();
1675 List<Particle> res;
1676 Json particles = m_particleEmitters.get(name).get("particles", {});
1677 for (auto& particle : particles.toArray()) {
1678 auto particleSpec = particle.get("particle", {});
1679 res.push_back(particleDatabase->particle(particleSpec));
1680 }
1681
1682 return res;
1683}
1684
1685Json const& Humanoid::defaultMovementParameters() const {
1686 return m_defaultMovementParameters;

Callers

nothing calls this directly

Calls 6

singletonClass · 0.85
particleDatabaseMethod · 0.80
toArrayMethod · 0.80
particleMethod · 0.80
getMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected