PlaySFX now uses Position instead of Emitter ID for playing a sound.

This commit is contained in:
Stiffly
2014-06-03 21:02:39 +02:00
parent 2833b8df36
commit df32a3b07d
4 changed files with 31 additions and 21 deletions
+10 -1
View File
@@ -9,8 +9,17 @@ namespace Events
struct PlaySFX : Event
{
EntityID Emitter;
PlaySFX() :
MinDistance(100.f),
MaxDistance(10000.f),
Volume(1.f),
Loop (false) {}
//EntityID Emitter;
glm::vec3 Position;
std::string Resource;
float MinDistance;
float MaxDistance;
float Volume;
bool Loop;
};