usergamemanager - TogetherGames/Public-Unity-CSharp GitHub Wiki
together.UserGameManager
The UserGameManager class is for finding and fetching games played by the user.
Stores all the UserGames contained in the Manager.
Finds the UserGame with the specified UserGameID if it exists, otherwise returns null
Returns UserGame
UserGameManager.FindByUserGameID( userGameID )
long userGameID
The ID of the UserGame to find
--------------------------------------------------------------------------------Gets the number of UserGames currently managed internally.
Returns int
UserGameManager.GetCount( )
Gets the UserGame at the specified index if it exists, otherwise returns null
Returns UserGame
UserGameManager.Get( index )
int index
The index of the UserGame to find
--------------------------------------------------------------------------------Returns the index of the specified UserGame if it exists, otherwise returns -1.
Returns int
UserGameManager.IndexOf( userGame )
UserGame userGame
Instance of the UserGame to find the index of
--------------------------------------------------------------------------------Returns the index of the UserGame with the specified GameID if it exists, otherwise returns -1.
Returns int
UserGameManager.IndexOfByGameID( gameID )
long gameID
The ID of the Game to find the index of
--------------------------------------------------------------------------------Removes a UserGame from the internally managed list. This does not delete the user game from the user's account persistently.
Note
This method is deprecated
Returns void
UserGameManager.Remove( index )
int index
The index of the UserGame to remove internally
--------------------------------------------------------------------------------Does a one for one copy of the user games contained in the passed manager to this manager.
Note
This method is deprecated
Returns void
UserGameManager.PopulateFrom( manager )
UserGameManager manager
The manager to copy from
--------------------------------------------------------------------------------Gets all UserGames played by the User. Upon success, this will automatically update the internal list.
Returns void
UserGameManager.GetAll( callbackFunc )
OnCompleteHandler callbackFunc
The function to call upon completion.
--------------------------------------------------------------------------------