mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
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:
parent
89a165722e
commit
4e5126a596
2 changed files with 16 additions and 15 deletions
|
@ -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(
|
static void loadthissummary(
|
||||||
const char* filename,
|
const char* filename,
|
||||||
struct Summary* summary,
|
struct Game::Summary* summary,
|
||||||
tinyxml2::XMLDocument& doc
|
tinyxml2::XMLDocument& doc
|
||||||
) {
|
) {
|
||||||
tinyxml2::XMLHandle hDoc(&doc);
|
tinyxml2::XMLHandle hDoc(&doc);
|
||||||
|
|
|
@ -290,6 +290,21 @@ public:
|
||||||
|
|
||||||
void loadsummary(void);
|
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);
|
void readmaingamesave(const char* savename, tinyxml2::XMLDocument& doc);
|
||||||
std::string writemaingamesave(tinyxml2::XMLDocument& doc);
|
std::string writemaingamesave(tinyxml2::XMLDocument& doc);
|
||||||
|
|
||||||
|
@ -434,7 +449,6 @@ public:
|
||||||
|
|
||||||
bool inintermission;
|
bool inintermission;
|
||||||
|
|
||||||
static const int numcrew = 6;
|
|
||||||
bool crewstats[numcrew];
|
bool crewstats[numcrew];
|
||||||
bool ndmresultcrewstats[numcrew];
|
bool ndmresultcrewstats[numcrew];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue