| 6 | namespace Star { |
| 7 | |
| 8 | struct WeatherType { |
| 9 | struct ParticleConfig { |
| 10 | Particle particle; |
| 11 | float density; |
| 12 | bool autoRotate; |
| 13 | }; |
| 14 | |
| 15 | struct ProjectileConfig { |
| 16 | String projectile; |
| 17 | Json parameters; |
| 18 | Vec2F velocity; |
| 19 | float ratePerX; |
| 20 | int spawnAboveRegion; |
| 21 | int spawnHorizontalPad; |
| 22 | float windAffectAmount; |
| 23 | }; |
| 24 | |
| 25 | WeatherType(); |
| 26 | WeatherType(Json config, String path = String()); |
| 27 | |
| 28 | Json toJson() const; |
| 29 | |
| 30 | String name; |
| 31 | |
| 32 | List<ParticleConfig> particles; |
| 33 | List<ProjectileConfig> projectiles; |
| 34 | StringList statusEffects; |
| 35 | |
| 36 | float maximumWind; |
| 37 | Vec2F duration; |
| 38 | StringList weatherNoises; |
| 39 | }; |
| 40 | |
| 41 | typedef WeightedPool<String> WeatherPool; |
| 42 | |