2024-03-13 15:08:37 +00:00
|
|
|
#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:
|
2024-03-21 21:49:11 +00:00
|
|
|
virtual void _begin();
|
|
|
|
virtual void _end();
|
|
|
|
|
2024-03-13 15:08:37 +00:00
|
|
|
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
|