SkillzCrossPlatform Class Reference

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.

Parameters
_matchDelegateThis should be
More...
 
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

static void SkillzCrossPlatform.AbortMatch ( )
inlinestatic

Call this method to make the player forfeit the game, returning him to the Skillz portal.

static void SkillzCrossPlatform.AddMetadataForMatchInProgress ( string  metadataJson,
bool  forMatchInProgress 
)
inlinestatic

Call this method if you want to add meta data for the match.

Parameters
metadataJsonA string representing the meta data in a json string.
forMatchInProgressA boolean to check whether the user is in a Skillz game.
static string SkillzCrossPlatform.CurrentUserDisplayName ( )
inlinestatic

This returns the current user's display name in case you want to use it in the game

static SkillzSDK.Match SkillzCrossPlatform.GetMatchInfo ( )
inlinestatic

Returns a Match object that has details regarding the specific match the user is in

static Hashtable SkillzCrossPlatform.GetMatchRules ( )
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.

static SkillzSDK.Player SkillzCrossPlatform.GetPlayer ( )
inlinestatic

Use this Player class to grab information about your current user.

static bool SkillzCrossPlatform.IsMatchInProgress ( )
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).

static void SkillzCrossPlatform.LaunchSkillz ( SkillzMatchDelegate  _matchDelegate)
inlinestatic

Starts up the Skillz UI. Should be used as soon as the player clicks your game's "Multiplayer" button.

Parameters
_matchDelegateThis should be

static void SkillzCrossPlatform.ReportFinalScore ( String  score)
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
scoreA string representing the score a player achieved in the game.
static void SkillzCrossPlatform.ReportFinalScore ( int  score)
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
scoreAn int representing the score a player achieved in the game.
static void SkillzCrossPlatform.ReportFinalScore ( float  score)
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
scoreA float representing the score a player achieved in the game.
static string SkillzCrossPlatform.SDKVersionShort ( )
inlinestatic

This method returns what SDK version your user is on.

static void SkillzCrossPlatform.UpdatePlayersCurrentScore ( String  score)
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
scoreThe player's current score as a string.
static void SkillzCrossPlatform.UpdatePlayersCurrentScore ( int  score)
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
scoreThe player's current score as an int.
static void SkillzCrossPlatform.UpdatePlayersCurrentScore ( float  score)
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
scoreThe 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