feat: added sound events for enemy awareness

This commit is contained in:
Sara 2025-08-04 17:00:23 +02:00
parent 1373656f90
commit 66aede32bd
15 changed files with 234 additions and 16 deletions

View 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