mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
Merge pull request #326 from InfoTeddy/general-refactors
Refactor how custom level stats are stored, read, and written
This commit is contained in:
@@ -76,6 +76,12 @@ struct MenuStackFrame
|
||||
enum Menu::MenuName name;
|
||||
};
|
||||
|
||||
struct CustomLevelStat
|
||||
{
|
||||
std::string name;
|
||||
int score; //0 - not played, 1 - finished, 2 - all trinkets, 3 - finished, all trinkets
|
||||
};
|
||||
|
||||
|
||||
class Game
|
||||
{
|
||||
@@ -364,9 +370,7 @@ public:
|
||||
void savecustomlevelstats();
|
||||
void updatecustomlevelstats(std::string clevel, int cscore);
|
||||
|
||||
std::string customlevelstats[200]; //string array containing level filenames
|
||||
int customlevelscore[200];//0 - not played, 1 - finished, 2 - all trinkets, 3 - finished, all trinkets
|
||||
int numcustomlevelstats;
|
||||
std::vector<CustomLevelStat> customlevelstats;
|
||||
bool customlevelstatsloaded;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user