#include "manager.hpp" #include "editor.hpp" #include #include #include int main() { Manager manager; std::shared_ptr editor = std::shared_ptr(new Editor(manager)); try { // ouverture du niveau std::ifstream file; file.open("./levels/level1.dat", std::ios::binary | std::ios::in); editor->load(file); file.close(); manager.setView(editor); manager.start(); } catch (const std::exception& exception) { std::cerr << "Le programme a quitté après une erreur d'exécution." << std::endl; std::cerr << exception.what() << std::endl; return EXIT_FAILURE; } return EXIT_SUCCESS; }