Class CreateTournamentPayload
The payload for creating a tournament.
Inherited Members
Namespace: Meta.InstantGames
Assembly: Unity.Meta.InstantGames.Sdk.dll
Syntax
public class CreateTournamentPayload : JsObject
Constructors
CreateTournamentPayload(double, CreateTournamentConfig, string)
Creates a new instance of CreateTournamentPayload
Declaration
public CreateTournamentPayload(double initialScore, CreateTournamentConfig config, string data = null)
Parameters
Type | Name | Description |
---|---|---|
double | initialScore | An integer value representing the player's score which will be the first score in the tournament. |
Create |
config | An object holding optional configurations for the tournament. |
string | data | A blob of data to attach to the update. All game sessions launched from the update will be able to access this blob from the payload on the tournament. Must be less than or equal to 1000 characters when stringified. |
Properties
Config
An object holding optional configurations for the tournament.
Declaration
public CreateTournamentConfig Config { get; }
Property Value
Type | Description |
---|---|
Create |
Data
A blob of data to attach to the update. All game sessions launched from the update will be able to access this blob from the payload on the tournament. Must be less than or equal to 1000 characters when stringified.
Declaration
public string Data { get; }
Property Value
Type | Description |
---|---|
string |
InitialScore
An integer value representing the player's score which will be the first score in the tournament.
Declaration
public double InitialScore { get; }
Property Value
Type | Description |
---|---|
double |