achievementmanager - TogetherGames/Public-Unity-CSharp GitHub Wiki
together.AchievementManager
The AchievementManager is used for fetching and finding achievements that exist for the current game.
Stores all the Achievements contained in the Manager.
Adds an Achievement to the manager internally without persistence.
Note
This method is deprecated
Returns void
AchievementManager.Add( achievement )
Achievement achievement
Instance of an Achievement to add internally
--------------------------------------------------------------------------------Finds the Achievement with the specified AchievementID if it exists, otherwise returns null.
Returns Achievement
AchievementManager.FindByAchievementID( achievementID )
long achievementID
The ID of the Achievement to find
--------------------------------------------------------------------------------Gets the number of Achievements currently managed internally.
Returns int
AchievementManager.GetCount( )
Gets the Achievement at the specified index if it exists internally, otherwise returns null.
Returns Achievement
AchievementManager.Get( index )
int index
The index of the Achievement to retrieve internally.
--------------------------------------------------------------------------------Returns the index of the specified Achievement instance if it exists internally, otherwise returns -1.
Returns int
AchievementManager.IndexOf( achievement )
Achievement achievement
Instance of the Achievement to find the index of
--------------------------------------------------------------------------------Returns the index of the Achievement with the cooresponding AchievementID if it exists internally, otherwise returns -1.
Returns int
AchievementManager.IndexOfByAchievementID( achievementID )
long achievementID
The ID of the Achievement to find the index of
--------------------------------------------------------------------------------Removes an Achievement from the internally managed list. This does not delete the Achievement from the game persistently.
Note
This method is deprecated
Returns void
AchievementManager.Remove( index )
int index
The index of the Achievement to be removed internally
--------------------------------------------------------------------------------Requests a list of the Achievements configured for the current game.
Returns void
AchievementManager.GetAll( callbackFunc )
OnCompleteHandler callbackFunc
The function to call upon completion
--------------------------------------------------------------------------------