diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -6,6 +6,7 @@ #include "Deserializer.h" #include "Parser.h" #include "View.h" +#include "ViewController.h" using namespace std; @@ -46,10 +47,15 @@ int main(int argc, char** argv) { Museum m {}; load_museum(m, argc, argv); + printf("%s", m.canvas.to_string(true).c_str()); + View v {}; - load_view(v, m); + ViewController vc {v, m}; - printf("%s", m.canvas.to_string(true).c_str()); + while (v.open) { + m.update(); + vc.update(); + } return EXIT_SUCCESS; } |