Files
squidout/include/Physics/CParticleEmitter.h
T
Stiffly 1065d3abc3 Merge remote-tracking branch 'origin/master' into water
Conflicts:
	src/game/Game/LevelSystem.cpp
	src/game/Physics/PhysicsSystem.cpp
2015-10-13 17:02:31 +02:00

38 lines
782 B
C++
Executable File

#ifndef COMPONENTS_PARTICLEEMITTER_H__
#define COMPONENTS_PARTICLEEMITTER_H__
#include "Core/Component.h"
namespace dd
{
namespace Components
{
struct ParticleEmitter : public Component
{
EntityID Parent = 0;
int NumberOfTicks = 10.f;
float InitialSpeed = 1.f;
double SpawnRate = 1;
int ParticlesPerTick = 1;
//TODO: Refactor. Have cooldown instead of this
double TimeSinceLastSpawn = 100;
int MaxCount = 0;
float EmittingAngle = 0.f;
float Spread = 0.f;
float Speed = 2.f;
double LifeTime = 100;
float RadiusDistribution = 0;
//values to interpolate between.
std::vector<float> RadiusValues;
std::vector<float> AlphaValues;
//System variables
float GravityScale = 1.0f;
};
}
}
#endif