| 23 | {Particle::Layer::Back, "back"}, {Particle::Layer::Middle, "middle"}, {Particle::Layer::Front, "front"}}; |
| 24 | |
| 25 | Particle::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 | |
| 51 | Particle::Particle(Json const& config, String const& path) { |
| 52 | type = TypeNames.getLeft(config.getString("type", "variance")); |
nothing calls this directly
no test coverage detected