Breakroom is now Sinewave Campus. Book a meeting

SProfile

العميلاللاعب
في هذا الصنفAuthorize
  1. الدوال
  2. Authorize
  3. LoadProfile
  4. الخصائص
  5. ActivePlayerProfile
الأعضاء 3
دالةAuthorizeRequests access to profile functions, must be called prior to attempting to access profile.
دالةLoadProfileLoad the profile of player
خاصيةActivePlayerProfile–

الدوال​

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'.

المعاملات

الاسمالنوعالقيمة الافتراضية
onAuthorizedClosurenull
onRejectedClosurenull
onAuthorizedActionnull
onRejectedActionnull

القيم المرجعة

void

مثال

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

المعاملات

المعاملالنوعالوصف
onFinishedCallback FunctiononFinished(SUserProfile) is called once profile is loaded

القيم المرجعة

void

مثال

Lua
function onFinished(SUserProfile)
--
end
Space.Profile.LoadProfile(onFinished)

الخصائص​

ActivePlayerProfileللقراءة فقط​

SUserProfile ActivePlayerProfile {get; }

مثال

Lua
Space.Profile.ActivePlayerProfile