chore: EnemySpawner is now a Marker3D for clarity

This commit is contained in:
Sara Gerretsen 2025-10-25 13:15:11 +02:00
parent c66d6f56b4
commit 777f7908de

View file

@ -3,7 +3,7 @@
#include "core/io/resource.h" #include "core/io/resource.h"
#include "core/templates/hash_map.h" #include "core/templates/hash_map.h"
#include "scene/3d/node_3d.h" #include "scene/3d/marker_3d.h"
class MapRegion; class MapRegion;
class PatrolPath; class PatrolPath;
@ -19,8 +19,8 @@ public:
HashMap<int, Ref<PackedScene>> difficulty_spawns{}; HashMap<int, Ref<PackedScene>> difficulty_spawns{};
}; };
class EnemySpawner : public Node3D { class EnemySpawner : public Marker3D {
GDCLASS(EnemySpawner, Node3D); GDCLASS(EnemySpawner, Marker3D);
static void _bind_methods(); static void _bind_methods();
void on_phase_change(bool hunt); void on_phase_change(bool hunt);
void ready(); void ready();