-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSSoundSystem.h
More file actions
28 lines (21 loc) · 824 Bytes
/
SSoundSystem.h
File metadata and controls
28 lines (21 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef SSOUNDSYSTEM_H
#define SSOUNDSYSTEM_H
#include <lf/Lightfeather.h>
#include "entityx.h"
#include "events.h"
#include "components.h"
using namespace entityx;
struct SSoundSystem : public System<SSoundSystem>, Receiver<SSoundSystem>
{
public:
SSoundSystem();
virtual ~SSoundSystem();
void configure(entityx::ptr<EventManager> event_manager);
void update(entityx::ptr<EntityManager> es, entityx::ptr<EventManager> events, double dt);
void receive(const SoundEvent &sound);
void receive(const ListenerPositionChangedEvent &listenerposchange);
void receive(const ComponentAddedEvent<ListenerComponent> &listenercomponent);
void receive(const ComponentAddedEvent<SoundComponent> &soundcomponent);
static void setListenerPosition(core::vector3df pos);
};
#endif // SSOUNDSYSTEM_H