godot-cpp-utils
A collection of utility classes, functions and macros for use with Godot and GDExtension.
|
Stores session-relevant data. More...
#include <game_mode.hpp>
Private Attributes | |
gd::Ref< gd::PackedScene > | player_scene {} |
The scene to instantiate when spawning a player. | |
Stores session-relevant data.
Inheriting classes are intended to keep only data that is relevant for the duration of the current session/match. Use GameState instead if you want data to be saved between sessions. Will be destroyed when a level is loaded that does not match the same game mode class. The current active game mode can be gotten from the GameRoot3D singleton instance.