Use this Skillz class if you plan to launch your game in both iOS and Android App stores. More...
Classes | |
class | Random |
This is the Random class that you can use to implement fairness in your game Use this Random function for variables that can affect gameplay. More... | |
Static Public Member Functions | |||
static void | LaunchSkillz (SkillzMatchDelegate _matchDelegate) | ||
Starts up the Skillz UI. Should be used as soon as the player clicks your game's "Multiplayer" button.
| |||
static void | LaunchSkillz (SkillzSyncDelegate _syncMatchDelegate) | ||
static bool | IsMatchInProgress () | ||
Gets whether we are currently in a Skillz tournament. Use this method to have different logic in single player than in multiplayer(Skillz game). More... | |||
static Hashtable | GetMatchRules () | ||
Returns a Hashtable of the Match Rules that you set in Developer Portal You can set these rules in https://developers.skillz.com/dashboard and clicking on your game. More... | |||
static SkillzSDK.Match | GetMatchInfo () | ||
Returns a Match object that has details regarding the specific match the user is in More... | |||
static void | AbortMatch () | ||
Call this method to make the player forfeit the game, returning him to the Skillz portal. More... | |||
static void | UpdatePlayersCurrentScore (String score) | ||
Call this method every time the player's score changes during a Skillz match. This adds important anti-cheating functionality to your game. This can accept a string, a float, or an int. More... | |||
static void | UpdatePlayersCurrentScore (int score) | ||
Call this method every time the player's score changes during a Skillz match. This adds important anti-cheating functionality to your game. This can accept a string, a float, or an int. More... | |||
static void | UpdatePlayersCurrentScore (float score) | ||
Call this method every time the player's score changes during a Skillz match. This adds important anti-cheating functionality to your game. This can accept a string, a float, or an int. More... | |||
static void | ReportFinalScore (String score) | ||
Call this method when a player finishes a multiplayer game. This will report the result of the game to the Skillz server, and return the player to the Skillz portal. This can accept a string, a float, or an int. More... | |||
static void | ReportFinalScore (int score) | ||
Call this method when a player finishes a multiplayer game. This will report the result of the game to the Skillz server, and return the player to the Skillz portal. This can accept a string, a float, or an int. More... | |||
static void | ReportFinalScore (float score) | ||
Call this method when a player finishes a multiplayer game. This will report the result of the game to the Skillz server, and return the player to the Skillz portal. This can accept a string, a float, or an int. More... | |||
static string | SDKVersionShort () | ||
This method returns what SDK version your user is on. More... | |||
static string | CurrentUserDisplayName () | ||
This returns the current user's display name in case you want to use it in the game More... | |||
static SkillzSDK.Player | GetPlayer () | ||
Use this Player class to grab information about your current user. More... | |||
static void | AddMetadataForMatchInProgress (string metadataJson, bool forMatchInProgress) | ||
Call this method if you want to add meta data for the match. More... | |||
static void | SendData (byte[] data) | ||
static bool | IsMatchCompleted () | ||
static int | GetConnectedPlayerCount () | ||
static UInt64 | GetCurrentPlayerId () | ||
static UInt64 | GetCurrentOpponentPlayerId () | ||
static double | GetServerTime () | ||
static long | GetTimeLeftForReconnection (UInt64 playerId) | ||
Detailed Description
Use this Skillz class if you plan to launch your game in both iOS and Android App stores.
Member Function Documentation
|
inlinestatic |
Call this method to make the player forfeit the game, returning him to the Skillz portal.
|
inlinestatic |
Call this method if you want to add meta data for the match.
- Parameters
-
metadataJson A string representing the meta data in a json string. forMatchInProgress A boolean to check whether the user is in a Skillz game.
|
inlinestatic |
This returns the current user's display name in case you want to use it in the game
|
inlinestatic |
Returns a Match object that has details regarding the specific match the user is in
|
inlinestatic |
Returns a Hashtable of the Match Rules that you set in Developer Portal You can set these rules in https://developers.skillz.com/dashboard and clicking on your game.
|
inlinestatic |
Use this Player class to grab information about your current user.
|
inlinestatic |
Gets whether we are currently in a Skillz tournament. Use this method to have different logic in single player than in multiplayer(Skillz game).
|
inlinestatic |
Starts up the Skillz UI. Should be used as soon as the player clicks your game's "Multiplayer" button.
- Parameters
-
_matchDelegate This should be
|
inlinestatic |
Call this method when a player finishes a multiplayer game. This will report the result of the game to the Skillz server, and return the player to the Skillz portal. This can accept a string, a float, or an int.
- Parameters
-
score A string representing the score a player achieved in the game.
|
inlinestatic |
Call this method when a player finishes a multiplayer game. This will report the result of the game to the Skillz server, and return the player to the Skillz portal. This can accept a string, a float, or an int.
- Parameters
-
score An int representing the score a player achieved in the game.
|
inlinestatic |
Call this method when a player finishes a multiplayer game. This will report the result of the game to the Skillz server, and return the player to the Skillz portal. This can accept a string, a float, or an int.
- Parameters
-
score A float representing the score a player achieved in the game.
|
inlinestatic |
This method returns what SDK version your user is on.
|
inlinestatic |
Call this method every time the player's score changes during a Skillz match. This adds important anti-cheating functionality to your game. This can accept a string, a float, or an int.
- Parameters
-
score The player's current score as a string.
|
inlinestatic |
Call this method every time the player's score changes during a Skillz match. This adds important anti-cheating functionality to your game. This can accept a string, a float, or an int.
- Parameters
-
score The player's current score as an int.
|
inlinestatic |
Call this method every time the player's score changes during a Skillz match. This adds important anti-cheating functionality to your game. This can accept a string, a float, or an int.
- Parameters
-
score The player's current score as a float.
The documentation for this class was generated from the following file:
- /Users/Shared/jenkins-slave/workspace/SDK-OLD/Cross-Platform-SDK/Cross-Platform-Unity-Package/UnityTestApps/Unity/Assets/Skillz/SkillzCrossPlatform.cs