v1.4.4
This commit is contained in:
commit
9c94d113d3
10260 changed files with 1237388 additions and 0 deletions
48
source/game/StarWeatherTypes.hpp
Normal file
48
source/game/StarWeatherTypes.hpp
Normal file
|
@ -0,0 +1,48 @@
|
|||
#ifndef STAR_WEATHER_LEVELS_HPP
|
||||
#define STAR_WEATHER_LEVELS_HPP
|
||||
|
||||
#include "StarWeightedPool.hpp"
|
||||
#include "StarParticle.hpp"
|
||||
|
||||
namespace Star {
|
||||
|
||||
struct WeatherType {
|
||||
struct ParticleConfig {
|
||||
Particle particle;
|
||||
float density;
|
||||
bool autoRotate;
|
||||
};
|
||||
|
||||
struct ProjectileConfig {
|
||||
String projectile;
|
||||
Json parameters;
|
||||
Vec2F velocity;
|
||||
float ratePerX;
|
||||
int spawnAboveRegion;
|
||||
int spawnHorizontalPad;
|
||||
float windAffectAmount;
|
||||
};
|
||||
|
||||
WeatherType();
|
||||
WeatherType(Json config, String path = String());
|
||||
|
||||
Json toJson() const;
|
||||
|
||||
String name;
|
||||
|
||||
List<ParticleConfig> particles;
|
||||
List<ProjectileConfig> projectiles;
|
||||
StringList statusEffects;
|
||||
|
||||
float maximumWind;
|
||||
Vec2F duration;
|
||||
StringList weatherNoises;
|
||||
};
|
||||
|
||||
typedef WeightedPool<String> WeatherPool;
|
||||
|
||||
DataStream& operator>>(DataStream& ds, WeatherType& weatherType);
|
||||
DataStream& operator<<(DataStream& ds, WeatherType const& weatherType);
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue