Implement singleton class into application

This commit is contained in:
Riyyi
2021-02-13 16:14:23 +01:00
parent 0cc22100e9
commit c1ae98c659
4 changed files with 18 additions and 37 deletions
+4 -4
View File
@@ -4,11 +4,11 @@
class Game : public Inferno::Application
{
public:
Game() {};
~Game() {};
Game() : Application({}) {}
~Game() {}
};
Inferno::Application* Inferno::createApplication()
Inferno::Application& Inferno::getApplication()
{
return new Game();
return Game::the();
}