Files
fishtanks/src/Components/SoundEmitter.h
T
2014-06-03 19:44:33 +02:00

33 lines
567 B
C++
Executable File

#ifndef Components_SoundEmitter_h__
#define Components_SoundEmitter_h__
#include <string>
#include "Component.h"
namespace Components
{
struct SoundEmitter : Component
{
enum class SoundType
{
SOUND_3D,
SOUND_2D
};
SoundEmitter() : Gain(1.f), MaxDistance(10000.f), MinDistance(1.f), Pitch(1.f), Loop(false) {}
float Gain;
float MaxDistance;
float MinDistance;
float Pitch;
bool Loop;
std::string Path;
SoundType type;
virtual SoundEmitter* Clone() const override { return new SoundEmitter(*this); }
};
}
#endif // !Components_SoundEmitter_h__