MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / getInstance

Method getInstance

Source/GameManager.cpp:51–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49static SaveObject _options;
50
51GameManager* GameManager::getInstance()
52{
53 static GameManager* _gameManager = nullptr;
54 if (!_gameManager)
55 {
56 _gameManager = new GameManager();
57 return _gameManager->init() ? _gameManager : nullptr;
58 }
59 return _gameManager;
60
61}
62
63bool GameManager::init()
64{

Callers

nothing calls this directly

Calls 1

initMethod · 0.45

Tested by

no test coverage detected