feat: created rts player class

This commit is contained in:
Sara 2024-05-28 16:30:05 +02:00
parent da30f4bfa1
commit ad84556207

19
src/rts_player.hpp Normal file
View file

@ -0,0 +1,19 @@
#ifndef RTS_PLAYER_HPP
#define RTS_PLAYER_HPP
#include "utils/player.hpp"
#include "utils/player_input.hpp"
#include <godot_cpp/classes/node3d.hpp>
class RTSPlayer : public godot::Node3D,
public godot::IPlayer {
GDCLASS(RTSPlayer, godot::Node3D);
static void _bind_methods();
public:
virtual void setup_player_input(godot::PlayerInput *input) override;
virtual Node *to_node() override;
virtual void spawn_at_position(godot::Transform3D const &at) override;
private:
};
#endif // !RTS_PLAYER_HPP