Breakroom is now Sinewave Campus. Book a meeting

SProfile

ClientJoueur
Dans cette classeAuthorize
  1. Fonctions
  2. Authorize
  3. LoadProfile
  4. Propriétés
  5. ActivePlayerProfile
Membres 3
FonctionAuthorizeRequests access to profile functions, must be called prior to attempting to access profile.
FonctionLoadProfileLoad 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

NomTypeValeur par défaut
onAuthorizedClosurenull
onRejectedClosurenull
onAuthorizedActionnull
onRejectedActionnull

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ètreTypeDescription
onFinishedCallback FunctiononFinished(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​

SUserProfile ActivePlayerProfile {get; }

Exemple

Lua
Space.Profile.ActivePlayerProfile