profile_data library
Singleton that contains the userdata.
Classes
Functions
-
addPlayedGame(
GameData gameData) → void -
addSavedGame(
GameData gameData) → void -
assignAvatar(
String avatar) → void -
assignEmail(
String email) → void -
assignId(
String id) → void -
assignIsRegistred(
bool isRegistered) → void -
assignToken(
String token) → void -
assignUsername(
String username) → void -
changeColorBoard(
String board, int tableroN, int tableroB) → void -
changeDarkPieces(
String tipo) → void -
changeLightPieces(
String tipo) → void -
resetProfile(
) → void -
resetProfileData(
bool shiny) → void -
restartInfoGames(
) → void -
updateProfile(
String avatar, String username, String email, int elo, int rank, int bulletWins, int bulletDraws, int bulletDefeats, int blitzWins, int blitzDraws, int blitzDefeats, int fastWins, int fastDraws, int fastDefeats, List< List> achievements, String board, String boardN, String boardB, String darkPieces, String lightPieces, String games) → void