Heroic Labs · Schema
apiTournament
A tournament on the server.
Game BackendMultiplayerReal-TimeWebSocketMatchmakingLeaderboardsSocial GamingOpen SourceLiveOpsgRPC
Properties
| Name | Type | Description |
|---|---|---|
| id | string | The ID of the tournament. |
| title | string | The title for the tournament. |
| description | string | The description of the tournament. May be blank. |
| category | integer | The category of the tournament. e.g. "vip" could be category 1. |
| sortOrder | integer | ASC (0) or DESC (1) sort mode of scores in the tournament. |
| size | integer | The current number of players in the tournament. |
| maxSize | integer | The maximum number of players for the tournament. |
| maxNumScore | integer | The maximum score updates allowed per player for the current tournament. |
| canEnter | boolean | True if the tournament is active and can enter. A computed value. |
| endActive | integer | The UNIX time when the tournament stops being active until next reset. A computed value. |
| nextReset | integer | The UNIX time when the tournament is next playable. A computed value. |
| metadata | string | Additional information stored as a JSON object. |
| createTime | string | The UNIX time (for gRPC clients) or ISO string (for REST clients) when the tournament was created. |
| startTime | string | The UNIX time (for gRPC clients) or ISO string (for REST clients) when the tournament will start. |
| endTime | string | The UNIX time (for gRPC clients) or ISO string (for REST clients) when the tournament will be stopped. |
| duration | integer | Duration of the tournament in seconds. |
| startActive | integer | The UNIX time when the tournament start being active. A computed value. |
| prevReset | integer | The UNIX time when the tournament was last reset. A computed value. |
| operator | object | |
| authoritative | boolean | Whether the leaderboard was created authoritatively or not. |
| joinRequired | boolean | Whether the user must join the tournament before being able to submit scores. |
JSON Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://api-evangelist.github.io/heroiclabs/json-schema/apiTournament.json",
"title": "apiTournament",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The ID of the tournament."
},
"title": {
"type": "string",
"description": "The title for the tournament."
},
"description": {
"type": "string",
"description": "The description of the tournament. May be blank."
},
"category": {
"type": "integer",
"format": "int64",
"description": "The category of the tournament. e.g. \"vip\" could be category 1."
},
"sortOrder": {
"type": "integer",
"format": "int64",
"description": "ASC (0) or DESC (1) sort mode of scores in the tournament."
},
"size": {
"type": "integer",
"format": "int64",
"description": "The current number of players in the tournament."
},
"maxSize": {
"type": "integer",
"format": "int64",
"description": "The maximum number of players for the tournament."
},
"maxNumScore": {
"type": "integer",
"format": "int64",
"description": "The maximum score updates allowed per player for the current tournament."
},
"canEnter": {
"type": "boolean",
"description": "True if the tournament is active and can enter. A computed value."
},
"endActive": {
"type": "integer",
"format": "int64",
"description": "The UNIX time when the tournament stops being active until next reset. A computed value."
},
"nextReset": {
"type": "integer",
"format": "int64",
"description": "The UNIX time when the tournament is next playable. A computed value."
},
"metadata": {
"type": "string",
"description": "Additional information stored as a JSON object."
},
"createTime": {
"type": "string",
"format": "date-time",
"description": "The UNIX time (for gRPC clients) or ISO string (for REST clients) when the tournament was created."
},
"startTime": {
"type": "string",
"format": "date-time",
"description": "The UNIX time (for gRPC clients) or ISO string (for REST clients) when the tournament will start."
},
"endTime": {
"type": "string",
"format": "date-time",
"description": "The UNIX time (for gRPC clients) or ISO string (for REST clients) when the tournament will be stopped."
},
"duration": {
"type": "integer",
"format": "int64",
"description": "Duration of the tournament in seconds."
},
"startActive": {
"type": "integer",
"format": "int64",
"description": "The UNIX time when the tournament start being active. A computed value."
},
"prevReset": {
"type": "integer",
"format": "int64",
"description": "The UNIX time when the tournament was last reset. A computed value."
},
"operator": {
"$ref": "#/components/schemas/apiOperator"
},
"authoritative": {
"type": "boolean",
"description": "Whether the leaderboard was created authoritatively or not."
},
"joinRequired": {
"type": "boolean",
"description": "Whether the user must join the tournament before being able to submit scores."
}
},
"description": "A tournament on the server."
}