Start on Logbook

This commit is contained in:
2022-09-08 02:02:09 +02:00
parent 2bda541bce
commit 8b9f5d0406
15 changed files with 453 additions and 226 deletions
+2 -4
View File
@@ -12,8 +12,6 @@
#include "gate.h"
#include "runway.h"
#define CURRENT_VERSION 1
/*
* Header
*
@@ -41,8 +39,8 @@ namespace germanairlinesva_simdata
std::uint8_t null = 0;
std::ofstream out(file, std::fstream::binary);
// File Header
std::uint8_t header[] = {'V', 'G', 'A', 'S', 0, CURRENT_VERSION};
// File Header, Last member is version
std::uint8_t header[] = {'V', 'G', 'A', 'S', '\0', 1};
out.write(reinterpret_cast<const char *>(header), 6);
// Num Airports
std::uint16_t numAirports = airports.size();