Moved the main event loop out of GUI so it's not so tightly coupled to everything else.
This commit is contained in:
parent
c0ad0c8d23
commit
5ae24d9b0a
4 changed files with 22 additions and 23 deletions
4
gui.hpp
4
gui.hpp
|
@ -20,12 +20,12 @@ class GUI {
|
|||
|
||||
GUI();
|
||||
|
||||
// FOUND BUG: adding this found that I was accidentally copying the gui, really it shouldn't be copyable
|
||||
// prevent copy
|
||||
GUI(GUI &g) = delete;
|
||||
|
||||
void output(const string msg);
|
||||
|
||||
int main_loop(GameEngine &game, Builder &builder);
|
||||
void main_loop(SFMLBackend &backend);
|
||||
|
||||
void build_works();
|
||||
void build_failed(bool play_sound, const string &command);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue