v1.4.4
This commit is contained in:
commit
9c94d113d3
10260 changed files with 1237388 additions and 0 deletions
30
source/game/StarEntitySplash.hpp
Normal file
30
source/game/StarEntitySplash.hpp
Normal file
|
@ -0,0 +1,30 @@
|
|||
#ifndef STAR_ENTITY_UTILITIES_HPP
|
||||
#define STAR_ENTITY_UTILITIES_HPP
|
||||
|
||||
#include "StarJson.hpp"
|
||||
#include "StarParticle.hpp"
|
||||
|
||||
namespace Star {
|
||||
|
||||
STAR_CLASS(World);
|
||||
STAR_STRUCT(EntitySplashConfig);
|
||||
STAR_CLASS(EntitySplashHelper);
|
||||
|
||||
struct EntitySplashConfig {
|
||||
EntitySplashConfig();
|
||||
EntitySplashConfig(Json const& config);
|
||||
float splashSpeedMin;
|
||||
Vec2F splashBottomSensor;
|
||||
Vec2F splashTopSensor;
|
||||
float splashMinWaterLevel;
|
||||
int numSplashParticles;
|
||||
Particle splashParticle;
|
||||
Particle splashParticleVariance;
|
||||
float splashYVelocityFactor;
|
||||
|
||||
List<Particle> doSplash(Vec2F position, Vec2F velocity, World* world) const;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue