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

Class WeatherType

source/game/StarWeatherTypes.hpp:8–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6namespace Star {
7
8struct 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
41typedef WeightedPool<String> WeatherPool;
42

Callers 1

weatherTypeMethod · 0.85

Calls 1

StringClass · 0.85

Tested by

no test coverage detected