24 lines
573 B
C++
24 lines
573 B
C++
|
#ifndef GAME_MODE_H
|
||
|
#define GAME_MODE_H
|
||
|
|
||
|
#include <godot_cpp/classes/packed_scene.hpp>
|
||
|
#include <godot_cpp/classes/resource.hpp>
|
||
|
#include "game_state.hpp"
|
||
|
|
||
|
namespace godot {
|
||
|
class GameMode : public Resource {
|
||
|
GDCLASS(GameMode, Resource);
|
||
|
static void _bind_methods();
|
||
|
public:
|
||
|
void set_player_scene(Ref<PackedScene> scene);
|
||
|
Ref<PackedScene> get_player_scene() const;
|
||
|
void set_game_state(Ref<GameState> state);
|
||
|
Ref<GameState> get_game_state();
|
||
|
private:
|
||
|
Ref<PackedScene> player_scene{};
|
||
|
Ref<GameState> game_state{};
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif // !GAME_MODE_H
|