Implemented saving gruntwork results to file.

* Monkey Skyway paths are now saved in a format compatible with
paths.json
* flush() is called on every periodic DB save in addition to the /flush
and /mss N export commands
* Monkeys now accept WIP routes
This commit is contained in:
2020-10-06 21:53:21 +02:00
parent ce58411ff8
commit d4d0f388c4
9 changed files with 108 additions and 17 deletions

View File

@@ -6,6 +6,7 @@
#include "CNShared.hpp"
#include "settings.hpp"
#include "Database.hpp"
#include "TableData.hpp" // for flush()
#include <iostream>
#include <sstream>
@@ -56,6 +57,7 @@ void CNShardServer::periodicSaveTimer(CNServer* serv, time_t currTime) {
Database::updatePlayer(pair.second.plr);
}
TableData::flush();
std::cout << "[INFO] Done." << std::endl;
}