Move `struct Summary` from Game.cpp to Game.h

This will allow it to be used in other source files in a later commit.
This commit is contained in:
Dav999 2023-09-12 03:04:34 +02:00 committed by Misa Elizabeth Kai
parent 89a165722e
commit 4e5126a596
2 changed files with 16 additions and 15 deletions

View File

@ -5581,22 +5581,9 @@ void Game::customloadquick(const std::string& savfile)
}
}
struct Summary
{
const char* summary;
int seconds;
int minutes;
int hours;
int savex;
int savey;
int trinkets;
bool finalmode;
bool crewstats[Game::numcrew];
};
static void loadthissummary(
const char* filename,
struct Summary* summary,
struct Game::Summary* summary,
tinyxml2::XMLDocument& doc
) {
tinyxml2::XMLHandle hDoc(&doc);

View File

@ -290,6 +290,21 @@ public:
void loadsummary(void);
static const int numcrew = 6;
struct Summary
{
const char* summary;
int seconds;
int minutes;
int hours;
int savex;
int savey;
int trinkets;
bool finalmode;
bool crewstats[numcrew];
};
void readmaingamesave(const char* savename, tinyxml2::XMLDocument& doc);
std::string writemaingamesave(tinyxml2::XMLDocument& doc);
@ -434,7 +449,6 @@ public:
bool inintermission;
static const int numcrew = 6;
bool crewstats[numcrew];
bool ndmresultcrewstats[numcrew];