Files
fishtanks/src/Components/SoundEmitter.h
T
2014-04-27 07:48:16 +02:00

25 lines
503 B
C++
Executable File

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