|
|
|
@ -43,6 +43,7 @@
|
|
|
|
|
#include "date_func.h"
|
|
|
|
|
#include "3rdparty/nlohmann/json.hpp"
|
|
|
|
|
#include "command_aux.h"
|
|
|
|
|
#include "rev.h"
|
|
|
|
|
|
|
|
|
|
#include "table/strings.h"
|
|
|
|
|
|
|
|
|
@ -925,9 +926,13 @@ void OrderList::MoveOrder(int from, int to)
|
|
|
|
|
std::string OrderList::ToJSONString()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nlohmann::json json;
|
|
|
|
|
auto& SD_data = this->GetScheduledDispatchScheduleSet();
|
|
|
|
|
|
|
|
|
|
json["version"] = ORDERLIST_JSON_OUTPUT_VERSION;
|
|
|
|
|
json["source"] = std::string(_openttd_revision);
|
|
|
|
|
|
|
|
|
|
auto& SD_data = this->GetScheduledDispatchScheduleSet();
|
|
|
|
|
auto& headJson = json["head"];
|
|
|
|
|
for (unsigned int i = 0; auto &SD : SD_data) {
|
|
|
|
|
|
|
|
|
|