OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
savegameheader.h
Go to the documentation of this file.
1#pragma once
2
3#include <Tempest/Pixmap>
4#include <string>
5
6#include "gametime.h"
7
8class Serialize;
9
10class SaveGameHeader final {
11 public:
12 SaveGameHeader() = default;
14
15 void save(Serialize& fout) const;
16
17 uint16_t version = 0;
18 std::string name;
19 std::string world;
20 tm pcTime = {};
22 uint64_t playTime = 0;
23 uint8_t isGothic2 = 0;
24
25 private:
26 static const char tag[];
27 };
28
std::string world
SaveGameHeader()=default
void save(Serialize &fout) const
std::string name