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

Method Particle

source/game/StarParticle.cpp:25–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 {Particle::Layer::Back, "back"}, {Particle::Layer::Middle, "middle"}, {Particle::Layer::Front, "front"}};
24
25Particle::Particle() {
26 type = Type::Variance;
27 size = 0;
28 baseSize = 0;
29 color = Color::White;
30 light = Color::Clear;
31 fade = 0;
32 fullbright = false;
33 position = velocity = finalVelocity = approach = Vec2F();
34 rotation = 0.0f;
35 angularVelocity = 0.0f;
36 timeToLive = 0.0f;
37 layer = Layer::Middle;
38 collidesForeground = true;
39 collidesLiquid = true;
40 underwaterOnly = false;
41 ignoreWind = true;
42 length = 0;
43 destructionAction = DestructionAction::None;
44 destructionTime = 0.0f;
45 destructionSet = false;
46 trail = false;
47 flippable = true;
48 flip = false;
49}
50
51Particle::Particle(Json const& config, String const& path) {
52 type = TypeNames.getLeft(config.getString("type", "variance"));

Callers

nothing calls this directly

Calls 10

jsonToColorFunction · 0.85
jsonToVec2FFunction · 0.85
getStringMethod · 0.80
getFloatMethod · 0.80
getBoolMethod · 0.80
findMethod · 0.45
clearMethod · 0.45
substrMethod · 0.45
containsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected