2024-03-13 15:08:37 +00:00
|
|
|
#ifndef UTILS_SPAWN_POINT_HPP
|
|
|
|
#define UTILS_SPAWN_POINT_HPP
|
|
|
|
|
2024-05-28 14:28:36 +00:00
|
|
|
#include <godot_cpp/classes/node3d.hpp>
|
|
|
|
|
|
|
|
namespace gd = godot;
|
|
|
|
|
|
|
|
namespace utils {
|
2024-05-29 15:37:04 +00:00
|
|
|
/*! A location in the game world that the player can spawn at.
|
|
|
|
*
|
|
|
|
* Registers and de-registers itself with the GameRoot3D to enable/disable this spawnpoint.
|
|
|
|
*/
|
2024-05-28 14:28:36 +00:00
|
|
|
class SpawnPoint3D : public gd::Node3D {
|
|
|
|
GDCLASS(SpawnPoint3D, gd::Node3D);
|
2024-03-13 15:08:37 +00:00
|
|
|
static void _bind_methods();
|
|
|
|
public:
|
|
|
|
virtual void _enter_tree() override;
|
|
|
|
virtual void _exit_tree() override;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // !UTILS_SPAWN_POINT_HPP
|