godot-cpp-utils
A collection of utility classes, functions and macros for use with Godot and GDExtension.
Loading...
Searching...
No Matches
utils::GameMode Class Reference

Stores session-relevant data. More...

#include <game_mode.hpp>

Inheritance diagram for utils::GameMode:

Public Member Functions

virtual void _begin ()
 Called when the match begins.
 
virtual void _end ()
 Called when the match is ending.
 
void set_player_scene (gd::Ref< gd::PackedScene > scene)
 
gd::Ref< gd::PackedScene > get_player_scene () const
 

Private Member Functions

 GDCLASS (GameMode, gd::Resource)
 

Static Private Member Functions

static void _bind_methods ()
 

Private Attributes

gd::Ref< gd::PackedScene > player_scene {}
 The scene to instantiate when spawning a player.
 

Detailed Description

Stores session-relevant data.

Contains any data that is only needed 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 documentation for this class was generated from the following files: