feat: added sound events for enemy awareness
This commit is contained in:
parent
1373656f90
commit
66aede32bd
15 changed files with 234 additions and 16 deletions
22
modules/wave_survival/sound_event_patchboard.h
Normal file
22
modules/wave_survival/sound_event_patchboard.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue