SProfile
ClientJoueur
Dans cette classeAuthorize
- Fonctions
- Authorize
- Load
Profile - Propriétés
- Active
Player Profile
Membres 3
| Fonction | Authorize | Requests access to profile functions, must be called prior to attempting to access profile. |
| Fonction | LoadProfile | Load the profile of player |
| Propriété | ActivePlayerProfile | – |
Fonctions
Authorize
void Authorize(Closure onAuthorized = null, Closure onRejected = null)
void Authorize(Action onAuthorized = null, Action onRejected = null)
Requests access to profile functions, must be called prior to attempting to access profile. As soon as the player has accepted the request, the Authorized attribute will be 'true'.
Paramètres
| Nom | Type | Valeur par défaut |
|---|---|---|
| onAuthorized | Closure | null |
| onRejected | Closure | null |
| onAuthorized | Action | null |
| onRejected | Action | null |
Valeurs de retour
void
Exemple
Lua
Space.Profile.Authorize()
--or
Space.Profile.Authorize(AnOnAuthorizeFunction)
--or
Space.Profile.Authorize(AnOnAuthorizeFunction, AnOnRejectedFuncton)
LoadProfile
void LoadProfile(Closure onFinished)
Load the profile of player
Paramètres
| Paramètre | Type | Description |
|---|---|---|
| onFinished | Callback Function | onFinished(SUserProfile) is called once profile is loaded |
Valeurs de retour
void
Exemple
Lua
function onFinished(SUserProfile)
--
end
Space.Profile.LoadProfile(onFinished)
Propriétés
ActivePlayerProfileLecture seule
Exemple
Lua
Space.Profile.ActivePlayerProfile



