Last active
February 25, 2018 14:24
-
-
Save mihaisebea/f70bdd6acc698e5d94dfefc6e0138782 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Profiler | |
{ | |
Profiler& GetInstance() { return s_instance; } | |
public : | |
void Update() | |
{ | |
Debugger::GetInstance().Update(); | |
Logger::GetInstance().Log("Profiler updating") | |
} | |
}; | |
class Debugger | |
{ | |
public: | |
Debugger& GetInstance() { return s_instance; } | |
void Update() | |
{ | |
Logger::GetInstance().Log("Debugger updating") | |
} | |
}; | |
class Logger | |
{ | |
public: | |
Logger& GetInstance() { return s_instance; } | |
void Log(...) | |
{ | |
printf(); | |
} | |
}; | |
class Game() | |
{ | |
public: | |
void Update() | |
{ | |
Profiler::GetInstance().Update(); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment