1#ifndef UTILS_PLAYER_HPP
2#define UTILS_PLAYER_HPP
6#include <godot_cpp/variant/transform3d.hpp>
10namespace godot {
class Node; }
35 std::optional<uint32_t> player_id{std::nullopt};
The root of a game.
Definition game_root.hpp:28
Interface required for player nodes.
Definition player.hpp:19
virtual void setup_player_input(PlayerInput *input)=0
Called by GameRoot3D when this player is instantiated or assigned a new PlayerInput.
virtual void spawn_at_position(gd::Transform3D const &at)=0
Spawn the player at a given transform, usually the global transform of a SpawnPoint3D.
uint32_t get_player_id()
Returns the player id assigned to this instance.
Definition player.cpp:4
virtual gd::Node * to_node()=0
Convert IPlayer instance to node.