19 lines
354 B
C++
19 lines
354 B
C++
#include "game_state.h"
|
|
#include "macros.h"
|
|
|
|
GameState *GameState::singleton_instance{ nullptr };
|
|
|
|
void GameState::_bind_methods() {}
|
|
|
|
GameState::GameState() {
|
|
self_type::singleton_instance = this;
|
|
}
|
|
|
|
GameState::~GameState() {
|
|
self_type::singleton_instance = nullptr;
|
|
}
|
|
|
|
GameState *GameState::get_singleton() {
|
|
return self_type::singleton_instance;
|
|
}
|