Added stats prefix feature to ProfileManager for managing scores that need to be separated.

This commit is contained in:
Kyzentun Keeslala
2016-03-15 18:13:53 -06:00
parent e9ce076d50
commit 88227dd610
6 changed files with 180 additions and 76 deletions
+2
View File
@@ -1353,6 +1353,7 @@
<Function name='GetProfile'/>
<Function name='GetProfileDir'/>
<Function name='GetSongNumTimesPlayed'/>
<Function name='GetStatsPrefix'/>
<Function name='IsPersistentProfile'/>
<Function name='IsSongNew'/>
<Function name='LastLoadWasTamperedOrCorrupt'/>
@@ -1362,6 +1363,7 @@
<Function name='SaveLocalProfile'/>
<Function name='SaveMachineProfile'/>
<Function name='SaveProfile'/>
<Function name='SetStatsPrefix'/>
</Class>
<Class name='RadarValues'>
<Function name='GetValue'/>
+6
View File
@@ -4014,6 +4014,9 @@ save yourself some time, copy this for undocumented things:
<Function name='GetSongNumTimesPlayed' return='int' arguments='Song s, ProfileSlot ps'>
Returns the number of times Song s has been played with the specified ProfileSlot.
</Function>
<Function name='GetStatsPrefix' return='string' arguments=''>
Returns the current stats prefix.
</Function>
<Function name='IsPersistentProfile' return='bool' arguments='PlayerNumber pn'>
Returns <code>true</code> if player <code>pn</code>'s profile is persistent.
</Function>
@@ -4044,6 +4047,9 @@ save yourself some time, copy this for undocumented things:
<Function name='SaveProfile' return='bool' arguments='PlayerNumber pn'>
Saves the profile for player <code>pn</code>.
</Function>
<Function name='SetStatsPrefix' return='' arguments='string'>
Sets the current stats prefix. The stats prefix is prepended to the Stats.xml file when loading or saving a profile. SetStatsPrefix will reload all profiles from the Stats.xml that has the given prefix. In general, score entries are the only thing not preserved when changing the stats prefix. Profile::HandleStatsPrefixChange in Profile.cpp lists the fields that are preserved.
</Function>
</Class>
<Class name='RadarValues'>
<Function name='GetValue' return='int' arguments='RadarCategory rc'>