23 lines
551 B
C++
23 lines
551 B
C++
#ifndef SOUND_EVENT_PATCHBOARD_H
|
|
#define SOUND_EVENT_PATCHBOARD_H
|
|
|
|
#include "core/object/class_db.h"
|
|
#include "core/object/object.h"
|
|
|
|
class SoundEventPatchboard : public Object {
|
|
GDCLASS(SoundEventPatchboard, Object);
|
|
static void _bind_methods();
|
|
static SoundEventPatchboard *singleton_instance;
|
|
|
|
public:
|
|
SoundEventPatchboard();
|
|
virtual ~SoundEventPatchboard();
|
|
static SoundEventPatchboard *get_singleton();
|
|
void trigger_sound(Vector3 at, float range);
|
|
|
|
public:
|
|
static String const sig_sound_triggered;
|
|
};
|
|
|
|
#endif // !SOUND_EVENT_PATCHBOARD_H
|