Moved the main event loop out of GUI so it's not so tightly coupled to everything else.

This commit is contained in:
Zed A. Shaw 2024-09-10 22:58:45 -04:00
parent c0ad0c8d23
commit 5ae24d9b0a
4 changed files with 22 additions and 23 deletions

View file

@ -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);