Maintain master and working copies of data structures, to enable saving single maps at a time

This commit is contained in:
Marcus Huderle
2018-02-17 20:41:15 -08:00
parent 17e5892cd4
commit e4c5d53ffd
4 changed files with 116 additions and 224 deletions

View File

@@ -9,14 +9,15 @@ Editor::Editor()
void Editor::saveProject() {
if (project) {
project->saveAllDataStructures();
project->saveAllMaps();
project->saveAllDataStructures();
}
}
void Editor::save() {
if (project && map) {
project->saveMap(map);
project->saveAllDataStructures();
}
}