This static class is in charge of storing the current state of the achievements, unlocking/locking them, and saving them to data files
More...
This static class is in charge of storing the current state of the achievements, unlocking/locking them, and saving them to data files
◆ AddProgress()
static void MoreMountains.Tools.MMAchievementManager.AddProgress |
( |
string |
achievementID, |
|
|
int |
newProgress |
|
) |
| |
|
static |
Adds progress to the specified achievement (if found).
- Parameters
-
achievementID | Achievement ID. |
newProgress | New progress. |
◆ ExtractSerializedMMAchievementManager()
Extracts the serialized achievements into our achievements array if the achievements ID match.
- Parameters
-
serializedAchievements | Serialized achievements. |
◆ FillSerializedMMAchievementManager()
Serializes the contents of the achievements array to a serialized, ready to save object
- Parameters
-
serializedInventory | Serialized inventory. |
◆ LoadAchievementList()
static void MoreMountains.Tools.MMAchievementManager.LoadAchievementList |
( |
MMAchievementList |
achievementList | ) |
|
|
static |
You'll need to call this method to initialize the manager
◆ LoadSavedAchievements()
static void MoreMountains.Tools.MMAchievementManager.LoadSavedAchievements |
( |
| ) |
|
|
static |
Loads the saved achievements file and updates the array with its content.
◆ LockAchievement()
static void MoreMountains.Tools.MMAchievementManager.LockAchievement |
( |
string |
achievementID | ) |
|
|
static |
Locks the specified achievement (if found).
- Parameters
-
achievementID | Achievement ID. |
◆ ResetAchievements()
static void MoreMountains.Tools.MMAchievementManager.ResetAchievements |
( |
string |
listID | ) |
|
|
static |
Removes saved data and resets all achievements from a list
- Parameters
-
listID | The ID of the achievement list to reset. |
◆ ResetAllAchievements()
static void MoreMountains.Tools.MMAchievementManager.ResetAllAchievements |
( |
| ) |
|
|
static |
◆ SaveAchievements()
static void MoreMountains.Tools.MMAchievementManager.SaveAchievements |
( |
| ) |
|
|
static |
Saves the achievements current status to a file on disk
◆ SetProgress()
static void MoreMountains.Tools.MMAchievementManager.SetProgress |
( |
string |
achievementID, |
|
|
int |
newProgress |
|
) |
| |
|
static |
Sets the progress of the specified achievement (if found) to the specified progress.
- Parameters
-
achievementID | Achievement ID. |
newProgress | New progress. |
◆ UnlockAchievement()
static void MoreMountains.Tools.MMAchievementManager.UnlockAchievement |
( |
string |
achievementID | ) |
|
|
static |
Unlocks the specified achievement (if found).
- Parameters
-
achievementID | Achievement I. |
◆ _defaultFileName
string MoreMountains.Tools.MMAchievementManager._defaultFileName = "Achievements" |
|
static |
◆ _saveFileExtension
string MoreMountains.Tools.MMAchievementManager._saveFileExtension = ".achievements" |
|
static |
◆ _saveFolderName
string MoreMountains.Tools.MMAchievementManager._saveFolderName = "MMAchievements/" |
|
static |
◆ ListID
string MoreMountains.Tools.MMAchievementManager.ListID |
|
static |
◆ SaveFileName
string MoreMountains.Tools.MMAchievementManager.SaveFileName |
|
static |
◆ AchievementsList
List<MMAchievement> MoreMountains.Tools.MMAchievementManager.AchievementsList |
|
staticget |
The documentation for this class was generated from the following file: