factored out a state manager

using GameManager via a singleton
This commit is contained in:
devZoGok
2021-10-30 08:09:30 +03:00
parent 7f8824cb29
commit 179f4c28ac
70 changed files with 654 additions and 474 deletions
+2 -2
View File
@@ -6,11 +6,11 @@ using namespace game::core;
namespace game
{
namespace gui{
ExitButton::ExitButton(GameManager *gM, vector2d<s32> pos, vector2d<s32> size, stringw name, bool separate) : Button(gM, pos, size, name, separate) {
ExitButton::ExitButton(vector2d<s32> pos, vector2d<s32> size, stringw name, bool separate) : Button(pos, size, name, separate) {
}
void ExitButton::onClick() {
gameManager->getDevice()->closeDevice();
GameManager::getSingleton()->getDevice()->closeDevice();
}
}
}