Fission FSN
Loading...
Searching...
No Matches
fsCUserSavedData Class Reference

#include <fsCUserSavedData.h>

Inheritance diagram for fsCUserSavedData:

Public Types

enum class  eDIFFICULTY { eCASUAL , eCHALLENGE , eEXTREME }
enum class  eCHEAT_MODE { eRELEASE , eDEV }
Public Types inherited from fsCVariableTable
enum  {
  eLOAD_RESULT_INVALID = 0 , eLOAD_RESULT_SUCCESS_NO_CHECKSUM , eLOAD_RESULT_SUCCESS_WITH_CHECKSUM , eLOAD_RESULT_FAIL_FILESYSTEM_NOT_READY ,
  eLOAD_RESULT_FAIL_FILE_NOT_FOUND , eLOAD_RESULT_FAIL_READ_ERROR , eLOAD_RESULT_FAIL_CHECKSUM_INVALID
}

Public Member Functions

fsBool cheatModeGet (eCHEAT_MODE pMode) const
fsBool levelHasBeenVisitedGet (const fsStr &pLevel) const
fsBool gameHasBeenStartedGet () const
eDIFFICULTY difficultyGet () const
void difficultySet (eDIFFICULTY pDifficulty)
fsS32 countGet (const fsStr &pKey) const
void countInc (const fsStr &pKey)
void s32Inc (const fsStr &pKey)
void resetForNewPlayer ()
void resetGameProgress ()
virtual ~fsCUserSavedData ()
Public Member Functions inherited from fsISavedData
void resetToDefaults ()
virtual ~fsISavedData ()
Public Member Functions inherited from fsCVariableTable
const fsStrfileNameGet () const
std::vector< fsStrpartKeyCollectionGet (const fsStr &pPartKey) const
std::vector< fsStrpartValueCollectionGet (const fsStr &pPartVal) const
fsF32 f32Get (const fsStr &pKey) const
fsF32 f32GetWithDefault (const fsStr &pKey, fsF32 pDefault) const
fsS32 s32Get (const fsStr &pKey) const
fsS32 s32GetWithDefault (const fsStr &pKey, fsS32 pDefault) const
fsStr strGet (const fsStr &pKey) const
fsStr strGetWithDefault (const fsStr &pKey, const fsStr &pDefault) const
fsBool boolGet (const fsStr &pKey) const
fsBool boolGetWithDefault (const fsStr &pKey, fsBool pDefault) const
void removeKeysContaining (const fsStr &pPartialKey)
fsBool keyExistsGet (const fsStr &pKey) const
void merge (fsCVariableTable *pIncoming)
void s32Set (const fsStr &pKey, fsS32 pVal)
void f32Set (const fsStr &pKey, fsF32 pVal)
void strSet (const fsStr &pKey, const fsStr &pVal)
void boolSet (const fsStr &pKey, fsBool pVal)
fsS32 load (const fsCResourceName &pFileName)
void save (const fsCResourceName &pFileName) const
fsS32 loadResultGet () const
fsBool successfullLoadGet () const
 fsCVariableTable ()
virtual ~fsCVariableTable ()

Static Public Member Functions

template<typename T>
static std::unique_ptr< T > create ()

Static Public Attributes

static const fsStr mGameChapter
static const fsStr mFacebookLoggedIn
static const fsStr mVirtualCurrency
static const fsStr mMusicVolumeKey
static const fsStr mEffectsVolumeKey
static const fsStr mMuteAllKey
static const fsStr mFullScreenKey
static const fsStr mCustomCursorsKey
static const fsStr mLeftHandCursorsKey
static const fsStr mCurrentLocation
static const fsStr mMapLocation
static const fsStr mLevelDataPrefix
static const fsStr mLevelStatePrefix
static const fsStr mLastMainMenuGui

Protected Member Functions

virtual void resetForNewPlayerDo ()
virtual void resetGameProgressDo ()
void resetToDefaultsDo () override
 fsCUserSavedData ()
Protected Member Functions inherited from fsISavedData
 fsISavedData ()

Friends

class fsCProfileManager

Additional Inherited Members

Static Protected Member Functions inherited from fsCVariableTable
static fsStr downcased (const fsStr &pKey)
Protected Attributes inherited from fsCVariableTable
VarTableMap mEntries
fsS32 mLoadResult
Static Protected Attributes inherited from fsCVariableTable
static const fsStr mBoolTrueStr
static const fsStr mAltBoolTrueStr
static const fsStr mBoolFalseStr

Member Enumeration Documentation

◆ eCHEAT_MODE

enum class fsCUserSavedData::eCHEAT_MODE
strong
Enumerator
eRELEASE 
eDEV 

◆ eDIFFICULTY

enum class fsCUserSavedData::eDIFFICULTY
strong
Enumerator
eCASUAL 
eCHALLENGE 
eEXTREME 

Constructor & Destructor Documentation

◆ ~fsCUserSavedData()

fsCUserSavedData::~fsCUserSavedData ( )
virtual

◆ fsCUserSavedData()

fsCUserSavedData::fsCUserSavedData ( )
protected

Member Function Documentation

◆ cheatModeGet()

fsBool fsCUserSavedData::cheatModeGet ( eCHEAT_MODE pMode) const

◆ countGet()

fsS32 fsCUserSavedData::countGet ( const fsStr & pKey) const

◆ countInc()

void fsCUserSavedData::countInc ( const fsStr & pKey)

◆ create()

template<typename T>
std::unique_ptr< T > fsCUserSavedData::create ( )
static

◆ difficultyGet()

fsCUserSavedData::eDIFFICULTY fsCUserSavedData::difficultyGet ( ) const

◆ difficultySet()

void fsCUserSavedData::difficultySet ( eDIFFICULTY pDifficulty)

◆ gameHasBeenStartedGet()

fsBool fsCUserSavedData::gameHasBeenStartedGet ( ) const

◆ levelHasBeenVisitedGet()

fsBool fsCUserSavedData::levelHasBeenVisitedGet ( const fsStr & pLevel) const

◆ resetForNewPlayer()

void fsCUserSavedData::resetForNewPlayer ( )

◆ resetForNewPlayerDo()

void fsCUserSavedData::resetForNewPlayerDo ( )
protectedvirtual

Reimplemented in gfCHogUserSavedData.

◆ resetGameProgress()

void fsCUserSavedData::resetGameProgress ( )

◆ resetGameProgressDo()

void fsCUserSavedData::resetGameProgressDo ( )
protectedvirtual

Reimplemented in gfCHogUserSavedData.

◆ resetToDefaultsDo()

void fsCUserSavedData::resetToDefaultsDo ( )
overrideprotectedvirtual

Reimplemented from fsISavedData.

Reimplemented in gfCHogUserSavedData.

◆ s32Inc()

void fsCUserSavedData::s32Inc ( const fsStr & pKey)

◆ fsCProfileManager

friend class fsCProfileManager
friend

Member Data Documentation

◆ mCurrentLocation

const fsStr fsCUserSavedData::mCurrentLocation
static

◆ mCustomCursorsKey

const fsStr fsCUserSavedData::mCustomCursorsKey
static

◆ mEffectsVolumeKey

const fsStr fsCUserSavedData::mEffectsVolumeKey
static

◆ mFacebookLoggedIn

const fsStr fsCUserSavedData::mFacebookLoggedIn
static

◆ mFullScreenKey

const fsStr fsCUserSavedData::mFullScreenKey
static

◆ mGameChapter

const fsStr fsCUserSavedData::mGameChapter
static

◆ mLastMainMenuGui

const fsStr fsCUserSavedData::mLastMainMenuGui
static

◆ mLeftHandCursorsKey

const fsStr fsCUserSavedData::mLeftHandCursorsKey
static

◆ mLevelDataPrefix

const fsStr fsCUserSavedData::mLevelDataPrefix
static

◆ mLevelStatePrefix

const fsStr fsCUserSavedData::mLevelStatePrefix
static

◆ mMapLocation

const fsStr fsCUserSavedData::mMapLocation
static

◆ mMusicVolumeKey

const fsStr fsCUserSavedData::mMusicVolumeKey
static

◆ mMuteAllKey

const fsStr fsCUserSavedData::mMuteAllKey
static

◆ mVirtualCurrency

const fsStr fsCUserSavedData::mVirtualCurrency
static

The documentation for this class was generated from the following files: