Vertices Engine  v1.9.2.92
A Cross Platform game engine developed by Virtex Edge Design.
Loading...
Searching...
No Matches
VerticesEngine.Profile.vxPlayerProfileSteamWrapper Class Referencesealed

Steam platform wrapper. More...

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

Public Member Functions

void Initialise ()
 This Initialises the main info.
 
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.
 
string[] GetInstalledMods ()
 Gets all of the currently installed mods. Note this does not mean they are enabled.
 
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 Update ()
 Runs callbacks for platform wrapper.
 
void AddAchievement (object key, vxAchievement achievement)
 Adds the achievement.
 
vxAchievement GetAchievement (object key)
 Gets the achievement.
 
void IncrementAchievement (object key, int increment)
 Increments the achievement.
 
void UnlockAchievement (object key)
 Unlocks the achievement.
 
void ViewAchievments ()
 View achievements for this platform.
 
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 ViewLeaderboard (string id)
 View the leaderboard for this platform.
 
void ShareImage (string path, string extratxt="")
 Shares an image. This is only supported on Mobile currently.
 
void SubmitLeaderboardScore (string id, long score)
 Submits a leaderboard score for this platform.
 
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.
 
void GetPlayerIconFromPlatform (string id, Action< bool, Texture2D > callback)
 Returns the player icon for the current platform using the specified id.
 
void Dispose ()
 Shutdown and close any connections.
 
void ViewAllLeaderboards ()
 Views all leaderboards for this platform.
 
void InitialisePlayerInfo ()
 This initialises the player info like icons. This is called later on as the graphics device must be active.
 

Static Public Member Functions

static string ReplaceUnsupportedChars (SpriteFont font, string input, string replaceString="")
 Replaces characters not supported by your spritefont.
 

Properties

bool IsSignedIn [get]
 Is the user signed in.
 
string Name [get]
 Gets the name of the signed in user.
 
string Id [get]
 Gets the user identifier. This identifier is handed out by the virtex server.
 
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.
 
- Properties inherited from VerticesEngine.Profile.vxIPlayerProfile

Detailed Description

Steam platform wrapper.

Member Function Documentation

◆ AddAchievement()

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

Adds the achievement.

Implements VerticesEngine.Profile.vxIPlayerProfile.

◆ ClearStatus()

void VerticesEngine.Profile.vxPlayerProfileSteamWrapper.ClearStatus ( )

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

Implements VerticesEngine.Profile.vxIPlayerProfile.

◆ Dispose()

void VerticesEngine.Profile.vxPlayerProfileSteamWrapper.Dispose ( )

Shutdown and close any connections.

Implements VerticesEngine.Profile.vxIPlayerProfile.

◆ GetAchievement()

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

Gets the achievement.

Returns
The achievement.
Parameters
keyKey.

Implements VerticesEngine.Profile.vxIPlayerProfile.

◆ GetAuthTicket()

string VerticesEngine.Profile.vxPlayerProfileSteamWrapper.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

Implements VerticesEngine.Profile.vxIPlayerProfile.

◆ GetInstalledMods()

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

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

Returns

Implements VerticesEngine.Profile.vxIPlayerProfile.

◆ GetPlayerIconFromPlatform()

void VerticesEngine.Profile.vxPlayerProfileSteamWrapper.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

Implements VerticesEngine.Profile.vxIPlayerProfile.

◆ IncrementAchievement()

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

Increments the achievement.

Parameters
key
increment

Implements VerticesEngine.Profile.vxIPlayerProfile.

◆ Initialise()

void VerticesEngine.Profile.vxPlayerProfileSteamWrapper.Initialise ( )

This Initialises the main info.

Implements VerticesEngine.Profile.vxIPlayerProfile.

◆ InitialisePlayerInfo()

void VerticesEngine.Profile.vxPlayerProfileSteamWrapper.InitialisePlayerInfo ( )

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

Implements VerticesEngine.Profile.vxIPlayerProfile.

◆ OpenStorePage()

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

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

Parameters
url

Implements VerticesEngine.Profile.vxIPlayerProfile.

◆ OpenURL()

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

Opens a URL using the specified platform.

Parameters
url

Implements VerticesEngine.Profile.vxIPlayerProfile.

◆ ReplaceUnsupportedChars()

static string VerticesEngine.Profile.vxPlayerProfileSteamWrapper.ReplaceUnsupportedChars ( SpriteFont font,
string input,
string replaceString = "" )
static

Replaces characters not supported by your spritefont.

Parameters
fontThe font.
inputThe input string.
replaceStringThe string to replace illegal characters with.
Returns

◆ SetStat() [1/2]

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

Sets a stat value. This will incrememne the current value.

Parameters
key

Implements VerticesEngine.Profile.vxIPlayerProfile.

◆ SetStat() [2/2]

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

Sets a stat value. This will explicitly set a value.

Parameters
key
value

Implements VerticesEngine.Profile.vxIPlayerProfile.

◆ SetStatus()

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

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

Parameters
status

Implements VerticesEngine.Profile.vxIPlayerProfile.

◆ SetStatusKey()

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

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

Parameters
key
value

Implements VerticesEngine.Profile.vxIPlayerProfile.

◆ ShareImage()

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

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

Parameters
path
extratxt

Implements VerticesEngine.Profile.vxIPlayerProfile.

◆ SignIn()

void VerticesEngine.Profile.vxPlayerProfileSteamWrapper.SignIn ( )

Signs the user in.

Returns
true, if in was signed, false otherwise.

Implements VerticesEngine.Profile.vxIPlayerProfile.

◆ SignOut()

void VerticesEngine.Profile.vxPlayerProfileSteamWrapper.SignOut ( )

Signs the user out.

Returns
true, if out was signed, false otherwise.

Implements VerticesEngine.Profile.vxIPlayerProfile.

◆ SubmitLeaderboardScore()

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

Submits a leaderboard score for this platform.

Parameters
id
score

Implements VerticesEngine.Profile.vxIPlayerProfile.

◆ UnlockAchievement()

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

Unlocks the achievement.

Parameters
keyKey.

Implements VerticesEngine.Profile.vxIPlayerProfile.

◆ Update()

void VerticesEngine.Profile.vxPlayerProfileSteamWrapper.Update ( )

Runs callbacks for platform wrapper.

Implements VerticesEngine.Profile.vxIPlayerProfile.

◆ ViewAchievments()

void VerticesEngine.Profile.vxPlayerProfileSteamWrapper.ViewAchievments ( )

View achievements for this platform.

Implements VerticesEngine.Profile.vxIPlayerProfile.

◆ ViewAllLeaderboards()

void VerticesEngine.Profile.vxPlayerProfileSteamWrapper.ViewAllLeaderboards ( )

Views all leaderboards for this platform.

Implements VerticesEngine.Profile.vxIPlayerProfile.

◆ ViewLeaderboard()

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

View the leaderboard for this platform.

Parameters
id

Implements VerticesEngine.Profile.vxIPlayerProfile.

Property Documentation

◆ Achievements

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

Retusn the acehivement look up dictionary.

Implements VerticesEngine.Profile.vxIPlayerProfile.

◆ Avatar

Texture2D VerticesEngine.Profile.vxPlayerProfileSteamWrapper.Avatar
get

Gets the profile picture.

The profile picture.

Implements VerticesEngine.Profile.vxIPlayerProfile.

◆ Id

string VerticesEngine.Profile.vxPlayerProfileSteamWrapper.Id
get

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

The user identifier.

Implements VerticesEngine.Profile.vxIPlayerProfile.

◆ IsSignedIn

bool VerticesEngine.Profile.vxPlayerProfileSteamWrapper.IsSignedIn
get

Is the user signed in.

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

Implements VerticesEngine.Profile.vxIPlayerProfile.

◆ Name

string VerticesEngine.Profile.vxPlayerProfileSteamWrapper.Name
get

Gets the name of the signed in user.

The name of the user.

Implements VerticesEngine.Profile.vxIPlayerProfile.

◆ PlatformType

vxPlatformType VerticesEngine.Profile.vxPlayerProfileSteamWrapper.PlatformType
get

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

Implements VerticesEngine.Profile.vxIPlayerProfile.

◆ PreferredLanguage

string VerticesEngine.Profile.vxPlayerProfileSteamWrapper.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.

Implements VerticesEngine.Profile.vxIPlayerProfile.


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