Vertices Engine
v1.9.2.92
A Cross Platform game engine developed by Virtex Edge Design.
|
Platform specific wrapper for handling player profile. This is used for providing which player is currently playing through steam. More...
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, vxAchievement > | Achievements [get] |
Retusn the acehivement look up dictionary. | |
Platform specific wrapper for handling player profile. This is used for providing which player is currently playing through steam.
void VerticesEngine.Profile.vxIPlayerProfile.AddAchievement | ( | object | key, |
vxAchievement | achievement ) |
Adds the achievement.
Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.
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.
void VerticesEngine.Profile.vxIPlayerProfile.Dispose | ( | ) |
Shutdown and close any connections.
Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.
vxAchievement VerticesEngine.Profile.vxIPlayerProfile.GetAchievement | ( | object | key | ) |
Gets the achievement.
key | Key. |
Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.
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.
Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.
string[] VerticesEngine.Profile.vxIPlayerProfile.GetInstalledMods | ( | ) |
Gets all of the currently installed mods. Note this does not mean they are enabled.
Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.
void VerticesEngine.Profile.vxIPlayerProfile.GetPlayerIconFromPlatform | ( | string | id, |
Action< bool, Texture2D > | callback ) |
Returns the player icon for the current platform using the specified id.
id | The player profile icon |
callback | The callback which says whether it was successful and with the texture2D |
Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.
void VerticesEngine.Profile.vxIPlayerProfile.IncrementAchievement | ( | object | key, |
int | increment ) |
Increments the achievement.
key | |
increment |
Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.
void VerticesEngine.Profile.vxIPlayerProfile.Initialise | ( | ) |
This Initialises the main info.
Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.
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.
void VerticesEngine.Profile.vxIPlayerProfile.OpenStorePage | ( | string | url | ) |
Opens the store page for this game given the app id info in the Config.
url |
Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.
void VerticesEngine.Profile.vxIPlayerProfile.OpenURL | ( | string | url | ) |
Opens a URL using the specified platform.
url |
Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.
void VerticesEngine.Profile.vxIPlayerProfile.SetStat | ( | string | key | ) |
Sets a stat value. This will incrememne the current value.
key |
Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.
void VerticesEngine.Profile.vxIPlayerProfile.SetStat | ( | string | key, |
int | value ) |
Sets a stat value. This will explicitly set a value.
key | |
value |
Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.
void VerticesEngine.Profile.vxIPlayerProfile.SetStatus | ( | string | status | ) |
Sets the status for this user. This is useful for Discord and Steam Rich Presence.
status |
Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.
void VerticesEngine.Profile.vxIPlayerProfile.SetStatusKey | ( | string | key, |
string | value ) |
Sets the status for this user. This is useful for Discord and Steam Rich Presence.
key | |
value |
Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.
void VerticesEngine.Profile.vxIPlayerProfile.ShareImage | ( | string | path, |
string | extratxt = "" ) |
Shares an image. This is only supported on Mobile currently.
path | |
extratxt |
Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.
void VerticesEngine.Profile.vxIPlayerProfile.SignIn | ( | ) |
Signs the user in.
true
, if in was signed, false
otherwise.Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.
void VerticesEngine.Profile.vxIPlayerProfile.SignOut | ( | ) |
Signs the user out.
true
, if out was signed, false
otherwise.Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.
void VerticesEngine.Profile.vxIPlayerProfile.SubmitLeaderboardScore | ( | string | id, |
long | score ) |
Submits a leaderboard score for this platform.
id | |
score |
Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.
void VerticesEngine.Profile.vxIPlayerProfile.UnlockAchievement | ( | object | key | ) |
Unlocks the achievement.
key | Key. |
Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.
void VerticesEngine.Profile.vxIPlayerProfile.Update | ( | ) |
Runs callbacks for platform wrapper.
Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.
void VerticesEngine.Profile.vxIPlayerProfile.ViewAchievments | ( | ) |
View achievements for this platform.
Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.
void VerticesEngine.Profile.vxIPlayerProfile.ViewAllLeaderboards | ( | ) |
Views all leaderboards for this platform.
Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.
void VerticesEngine.Profile.vxIPlayerProfile.ViewLeaderboard | ( | string | id | ) |
View the leaderboard for this platform.
id |
Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.
|
get |
Retusn the acehivement look up dictionary.
Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.
|
get |
Gets the profile picture.
The profile picture.
Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.
|
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.
|
get |
Is the user signed in.
true
, if signed in was ised, false
otherwise.Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.
|
get |
Gets the name of the signed in user.
The name of the user.
Implemented in VerticesEngine.Profile.vxPlayerProfileGenericWrapper, VerticesEngine.Profile.vxPlayerProfileItchIoWrapper, and VerticesEngine.Profile.vxPlayerProfileSteamWrapper.
|
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.
|
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.