wiki.sine.space | sinespace

Scripting/SUserProfile

From wiki.sine.space
Revision as of 00:54, 7 March 2021 by Voidtech (Talk | contribs) (Added simple examples to 12 members in SUserProfile)

Jump to: navigation, search

Properties

About

string About { get; }

Get player profile's About

onAuthSuccess = function()
profile.LoadProfile(onProfileLoad)

end


onProfileLoad = function(SUserProfile)
Space.Log(profile.ActivePlayerProfile.About)
Space.Log(SUserProfile.About)
--both ways work
end


profile = Space.Profile
profile.Authorize(onAuthSuccess)


City

string City { get; }

Get player profile's City

onAuthSuccess = function()
profile.LoadProfile(onProfileLoad)

end


onProfileLoad = function(SUserProfile)
Space.Log(profile.ActivePlayerProfile.City)
Space.Log(SUserProfile.City)
--both ways work
end


profile = Space.Profile
profile.Authorize(onAuthSuccess)


Country

string Country { get; }

Get player profile's Country

onAuthSuccess = function()
profile.LoadProfile(onProfileLoad)

end


onProfileLoad = function(SUserProfile)
Space.Log(profile.ActivePlayerProfile.Country)
Space.Log(SUserProfile.Country)
--both ways work
end


profile = Space.Profile
profile.Authorize(onAuthSuccess)


Gender

string Gender { get; }

Get player profile's Gender

onAuthSuccess = function()
profile.LoadProfile(onProfileLoad)

end


onProfileLoad = function(SUserProfile)
Space.Log(profile.ActivePlayerProfile.Gender)
Space.Log(SUserProfile.Gender)
--both ways work
end


profile = Space.Profile
profile.Authorize(onAuthSuccess)


Interests

string Interests { get; }

Get player profile's Interests

onAuthSuccess = function()
profile.LoadProfile(onProfileLoad)

end


onProfileLoad = function(SUserProfile)
Space.Log(profile.ActivePlayerProfile.Interests)
Space.Log(SUserProfile.Interests)
--both ways work
end


profile = Space.Profile
profile.Authorize(onAuthSuccess)


RealName

string RealName { get; }

Get player profile's Real Name

onAuthSuccess = function()
profile.LoadProfile(onProfileLoad)

end


onProfileLoad = function(SUserProfile)
Space.Log(profile.ActivePlayerProfile.RealName)
Space.Log(SUserProfile.RealName)

end


profile = Space.Profile
profile.Authorize(onAuthSuccess)


Since

string Since { get; }

Get player profile's Since

onAuthSuccess = function()
profile.LoadProfile(onProfileLoad)

end


onProfileLoad = function(SUserProfile)
Space.Log(profile.ActivePlayerProfile.Since)
Space.Log(SUserProfile.Since)
--both ways work
end


profile = Space.Profile
profile.Authorize(onAuthSuccess)


SocialFlower

int SocialFlower { get; }

Get player profile's Flower count

onAuthSuccess = function()
profile.LoadProfile(onProfileLoad)

end


onProfileLoad = function(SUserProfile)
Space.Log(profile.ActivePlayerProfile.SocialFlower)
Space.Log(SUserProfile.SocialFlower)
--both ways work
end


profile = Space.Profile
profile.Authorize(onAuthSuccess)


SocialGold

int SocialGold { get; }

Get player profile's Gold Badge count

onAuthSuccess = function()
profile.LoadProfile(onProfileLoad)

end


onProfileLoad = function(SUserProfile)
Space.Log(profile.ActivePlayerProfile.SocialGold)
Space.Log(SUserProfile.SocialGold)
--both ways work
end


profile = Space.Profile
profile.Authorize(onAuthSuccess)


SocialMediaProfiles

SSocialMedia SocialMediaProfiles { get; }

Get player profile's Social Media Profiles


SocialSilver

int SocialSilver { get; }

Get player profile's Silver Badge count

onAuthSuccess = function()
profile.LoadProfile(onProfileLoad)

end


onProfileLoad = function(SUserProfile)
Space.Log(profile.ActivePlayerProfile.SocialSilver)
Space.Log(SUserProfile.SocialSilver)
--both ways work
end


profile = Space.Profile
profile.Authorize(onAuthSuccess)


Title

string Title { get; }

Get player profile's Title

onAuthSuccess = function()
profile.LoadProfile(onProfileLoad)

end


onProfileLoad = function(SUserProfile)
Space.Log(profile.ActivePlayerProfile.Title)
Space.Log(SUserProfile.Title)
--both ways work
end


profile = Space.Profile
profile.Authorize(onAuthSuccess)


UserName

string UserName { get; }

Get player profile's Username

onAuthSuccess = function()
profile.LoadProfile(onProfileLoad)

end


onProfileLoad = function(SUserProfile)
Space.Log(profile.ActivePlayerProfile.UserName)
Space.Log(SUserProfile.UserName)
--both ways work
end


profile = Space.Profile
profile.Authorize(onAuthSuccess)