Vertices Engine  v1.9.2.92
A Cross Platform game engine developed by Virtex Edge Design.
Loading...
Searching...
No Matches
VerticesEngine.Profile.vxIPlayerProfile Interface Reference

Platform specific wrapper for handling player profile. This is used for providing which player is currently playing through steam. More...

Inheritance diagram for VerticesEngine.Profile.vxIPlayerProfile:
VerticesEngine.Profile.vxPlayerProfileGenericWrapper VerticesEngine.Profile.vxPlayerProfileItchIoWrapper VerticesEngine.Profile.vxPlayerProfileSteamWrapper

Public Member Functions

void Initialise ()
 This Initialises the main info.
 
void InitialisePlayerInfo ()
 This initialises the player info like icons. This is called later on as the graphics device must be active.
 
void Dispose ()
 Shutdown and close any connections.
 
void SignIn ()
 Signs the user in.
 
void SignOut ()
 Signs the user out.
 
string GetAuthTicket ()
 Returns an auth ticket for this platform as a string. This allows developers to get an auth ticket or token which they can then pass on to a backend server to authenticate that the user is who they say they are.
 
void GetPlayerIconFromPlatform (string id, Action< bool, Texture2D > callback)
 Returns the player icon for the current platform using the specified id.
 
void Update ()
 Runs callbacks for platform wrapper.
 
void ShareImage (string path, string extratxt="")
 Shares an image. This is only supported on Mobile currently.
 
void OpenURL (string url)
 Opens a URL using the specified platform.
 
void OpenStorePage (string url)
 Opens the store page for this game given the app id info in the Config.
 
void SetStatus (string status)
 Sets the status for this user. This is useful for Discord and Steam Rich Presence.
 
void SetStatusKey (string key, string value)
 Sets the status for this user. This is useful for Discord and Steam Rich Presence.
 
void ClearStatus ()
 Clears the status for this user. This is useful for Discord and Steam Rich Presence.
 
vxAchievement GetAchievement (object key)
 Gets the achievement.
 
void AddAchievement (object key, vxAchievement achievement)
 Adds the achievement.
 
void ViewAchievments ()
 View achievements for this platform.
 
void UnlockAchievement (object key)
 Unlocks the achievement.
 
void IncrementAchievement (object key, int increment)
 Increments the achievement.
 
void SetStat (string key)
 Sets a stat value. This will incrememne the current value.
 
void SetStat (string key, int value)
 Sets a stat value. This will explicitly set a value.
 
void SubmitLeaderboardScore (string id, long score)
 Submits a leaderboard score for this platform.
 
void ViewLeaderboard (string id)
 View the leaderboard for this platform.
 
void ViewAllLeaderboards ()
 Views all leaderboards for this platform.
 
string[] GetInstalledMods ()
 Gets all of the currently installed mods. Note this does not mean they are enabled.
 

Properties

bool IsSignedIn [get]
 Is the user signed in.
 
string Id [get]
 Gets the user identifier. This identifier is handed out by the virtex server.
 
string Name [get]
 Gets the name of the signed in user.
 
vxPlatformType PlatformType [get]
 Gets the Player Profile Backend, whether it's Steam, Google Play Services, etc...
 
Texture2D Avatar [get]
 Gets the profile picture.
 
string PreferredLanguage [get]
 This method will scrub all names and profile text info for any characters which aren't available in the spritefonts which have been loaded.
 
Dictionary< object, vxAchievementAchievements [get]
 Retusn the acehivement look up dictionary.
 

Detailed Description

Platform specific wrapper for handling player profile. This is used for providing which player is currently playing through steam.

Member Function Documentation

◆ AddAchievement()

void VerticesEngine.Profile.vxIPlayerProfile.AddAchievement ( object key,
vxAchievement achievement )

◆ ClearStatus()

void VerticesEngine.Profile.vxIPlayerProfile.ClearStatus ( )

Clears the status for this user. This is useful for Discord and Steam Rich Presence.

Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.

◆ Dispose()

void VerticesEngine.Profile.vxIPlayerProfile.Dispose ( )

◆ GetAchievement()

vxAchievement VerticesEngine.Profile.vxIPlayerProfile.GetAchievement ( object key)

◆ GetAuthTicket()

string VerticesEngine.Profile.vxIPlayerProfile.GetAuthTicket ( )

Returns an auth ticket for this platform as a string. This allows developers to get an auth ticket or token which they can then pass on to a backend server to authenticate that the user is who they say they are.

Returns

Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.

◆ GetInstalledMods()

string[] VerticesEngine.Profile.vxIPlayerProfile.GetInstalledMods ( )

Gets all of the currently installed mods. Note this does not mean they are enabled.

Returns

Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.

◆ GetPlayerIconFromPlatform()

void VerticesEngine.Profile.vxIPlayerProfile.GetPlayerIconFromPlatform ( string id,
Action< bool, Texture2D > callback )

Returns the player icon for the current platform using the specified id.

Parameters
idThe player profile icon
callbackThe callback which says whether it was successful and with the texture2D

Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.

◆ IncrementAchievement()

void VerticesEngine.Profile.vxIPlayerProfile.IncrementAchievement ( object key,
int increment )

◆ Initialise()

void VerticesEngine.Profile.vxIPlayerProfile.Initialise ( )

◆ InitialisePlayerInfo()

void VerticesEngine.Profile.vxIPlayerProfile.InitialisePlayerInfo ( )

This initialises the player info like icons. This is called later on as the graphics device must be active.

Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.

◆ OpenStorePage()

void VerticesEngine.Profile.vxIPlayerProfile.OpenStorePage ( string url)

Opens the store page for this game given the app id info in the Config.

Parameters
url

Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.

◆ OpenURL()

void VerticesEngine.Profile.vxIPlayerProfile.OpenURL ( string url)

◆ SetStat() [1/2]

void VerticesEngine.Profile.vxIPlayerProfile.SetStat ( string key)

◆ SetStat() [2/2]

void VerticesEngine.Profile.vxIPlayerProfile.SetStat ( string key,
int value )

◆ SetStatus()

void VerticesEngine.Profile.vxIPlayerProfile.SetStatus ( string status)

Sets the status for this user. This is useful for Discord and Steam Rich Presence.

Parameters
status

Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.

◆ SetStatusKey()

void VerticesEngine.Profile.vxIPlayerProfile.SetStatusKey ( string key,
string value )

Sets the status for this user. This is useful for Discord and Steam Rich Presence.

Parameters
key
value

Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.

◆ ShareImage()

void VerticesEngine.Profile.vxIPlayerProfile.ShareImage ( string path,
string extratxt = "" )

Shares an image. This is only supported on Mobile currently.

Parameters
path
extratxt

Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.

◆ SignIn()

void VerticesEngine.Profile.vxIPlayerProfile.SignIn ( )

◆ SignOut()

void VerticesEngine.Profile.vxIPlayerProfile.SignOut ( )

◆ SubmitLeaderboardScore()

void VerticesEngine.Profile.vxIPlayerProfile.SubmitLeaderboardScore ( string id,
long score )

◆ UnlockAchievement()

void VerticesEngine.Profile.vxIPlayerProfile.UnlockAchievement ( object key)

◆ Update()

void VerticesEngine.Profile.vxIPlayerProfile.Update ( )

◆ ViewAchievments()

void VerticesEngine.Profile.vxIPlayerProfile.ViewAchievments ( )

◆ ViewAllLeaderboards()

void VerticesEngine.Profile.vxIPlayerProfile.ViewAllLeaderboards ( )

◆ ViewLeaderboard()

void VerticesEngine.Profile.vxIPlayerProfile.ViewLeaderboard ( string id)

Property Documentation

◆ Achievements

Dictionary<object, vxAchievement> VerticesEngine.Profile.vxIPlayerProfile.Achievements
get

◆ Avatar

Texture2D VerticesEngine.Profile.vxIPlayerProfile.Avatar
get

◆ Id

string VerticesEngine.Profile.vxIPlayerProfile.Id
get

Gets the user identifier. This identifier is handed out by the virtex server.

The user identifier.

Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.

◆ IsSignedIn

bool VerticesEngine.Profile.vxIPlayerProfile.IsSignedIn
get

Is the user signed in.

Returns
true, if signed in was ised, false otherwise.

Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.

◆ Name

string VerticesEngine.Profile.vxIPlayerProfile.Name
get

◆ PlatformType

vxPlatformType VerticesEngine.Profile.vxIPlayerProfile.PlatformType
get

Gets the Player Profile Backend, whether it's Steam, Google Play Services, etc...

Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.

◆ PreferredLanguage

string VerticesEngine.Profile.vxIPlayerProfile.PreferredLanguage
get

This method will scrub all names and profile text info for any characters which aren't available in the spritefonts which have been loaded.

Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.


The documentation for this interface was generated from the following file: