Fission FSN
Loading...
Searching...
No Matches
gfIHogLevelProgress.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: gfIHogLevelProgress.h
4*
5* Purpose: Lets a game report partial progress through a level (steps)
6* to the map and level pop up without gfHogCore knowing the game's save format.
7*
8*********************************************************************/
9
10#ifndef gfIHogLevelProgresshdr
11#define gfIHogLevelProgresshdr
12
13#include <fsCore/fsStr.h>
14
15
17{
18public:
19
21
22 // Steps completed according to the game's own saved level data (the string stored for the level),
23 // or -1 when the save is absent, unsupported or not understood.
24 virtual fsS32 savedStepsCompletedGet(const fsStr& pLevelSave) const = 0;
25
26 // A save key to use for the level's state instead of the usual one (an alternate slot, say a copy of the
27 // level played again), or empty to keep the usual key.
28 virtual fsStr saveKeyOverrideGet(const fsStr& pLevelName) const { return fsStr(); }
29
30 // The provider the map and pop up consult. May be null, in which case only the recorded milestones count.
32 static void instanceSet(gfIHogLevelProgress* pProvider);
33};
34
35#endif
Definition fsStr.h:23
Definition gfIHogLevelProgress.h:17
virtual fsS32 savedStepsCompletedGet(const fsStr &pLevelSave) const =0
virtual fsStr saveKeyOverrideGet(const fsStr &pLevelName) const
Definition gfIHogLevelProgress.h:28
static gfIHogLevelProgress * instanceGet()
Definition gfIHogLevelProgress.cpp:5
virtual ~gfIHogLevelProgress()
Definition gfIHogLevelProgress.h:20
static void instanceSet(gfIHogLevelProgress *pProvider)
Definition gfIHogLevelProgress.cpp:10
int fsS32
Definition fsBaseTypes.h:20