feat: npc unit will now deallocate itself when all npc members are killed

This commit is contained in:
Sara 2025-08-28 19:14:07 +02:00
parent 8a9d70b37e
commit b3090243e0
2 changed files with 41 additions and 5 deletions

View file

@ -10,9 +10,11 @@ class MapRegion;
class NpcUnit : public Node3D {
GDCLASS(NpcUnit, Node3D);
static void _bind_methods();
void on_npc_death();
void on_npc_awareness_changed(bool seen);
void child_added(Node *node);
void enter_tree();
void ready();
protected:
void _notification(int what);