{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "CustomGameSettings",
"type": "object",
"additionalProperties": false,
"properties": {
"gameMode": {
"oneOf": [
{
"$ref": "#/definitions/GameMode"
}
],
"default": 0
},
"victoryMode": {
"oneOf": [
{
"$ref": "#/definitions/VictoryMode"
}
],
"default": 0
}
},
"definitions": {
"GameMode": {
"type": "integer",
"default": 0,
"description": "",
"x-EnumDescriptions": [
"Random Map",
"Swamp",
"Cursed Grounds"
],
"enum": [
0,
1,
2
]
},
"VictoryMode": {
"type": "integer",
"default": 0,
"description": "",
"x-EnumDescriptions": [
"Standard",
"Conquest"
],
"enum": [
0,
1
]
}
}
}{
"gameMode": 1,
"victoryMode": 0
}{
"lineupResults": [
{
"teamNumber": 1,
"result": {
"score": 1337
}
},
{
"teamNumber": 2,
"result": {
"score": 0
}
}
]
}team.score{
"lineupResults": [
{
"teamNumber": 1,
"result": {
"roundsWon": 13
}
},
{
"teamNumber": 2,
"result": {
"roundsWon": 3
}
}
]
}lineup score ← team.roundsWon{
"competitorResults": [
{
"gameAccountReference": {
"accountId": "Player 1"
},
"result": {
"kills": 4 // omit or send null for no-shows
}
},
{
"gameAccountReference": {
"accountId": "Player 2"
},
"result": {
"kills": 2 // omit or send null for no-shows
}
}
]
}competitors.Sum(it.kills){
"lineupResults": [
{
"teamNumber": 1,
"result": {
"roundsWon": 13
}
},
{
"teamNumber": 2,
"result": {
"roundsWon": 3
}
}
]
}{
"competitorResults": [
{
"gameAccountReference": {
"accountId": "Player 1"
},
"result": {
"kills": 4 // omit or send null for no-shows
}
},
{
"gameAccountReference": {
"accountId": "Player 2"
},
"result": {
"kills": 2 // omit or send null for no-shows
}
}
]
}team.roundsWon + competitors.Sum(it.kills){
"lineupResults": [
{
"teamNumber": 1,
"result": {
"roundsWon": 13
}
},
{
"teamNumber": 2,
"result": {
"roundsWon": 3
}
}
]
}{
"competitorResults": null
}{
"generalResults": {
"scoresShouldDouble": true
}
}global.scoresShouldDouble ? team.roundsWon * 2 : team.roundsWon{
"gameSettings": {
"gameMode": "KillRace"
}
}{
"lineupResults": [
{
"teamNumber": 1,
"result": {
"won": true
}
},
{
"teamNumber": 2,
"result": {
"won": false
}
}
]
}{
"competitorResults": [
{
"gameAccountReference": {
"accountId": "Player 1"
},
"result": {
"kills": 4 // omit or send null for no-shows
}
},
{
"gameAccountReference": {
"accountId": "Player 2"
},
"result": {
"kills": 2 // omit or send null for no-shows
}
}
]
}settings.gameMode == 'KillRace'
? competitors.Sum(it.kills)
: (team.won ? 1 : 0){
"state": 2, // Created
"gameTag": {
"GameSessionId": "unique-game-session-id"
}
}{
"state": 5, // Finished
"gameTag": {
"GameSessionId": "unique-game-session-id"
},
"result": {
"lineupResults": [
{
"teamNumber": 0,
"resultJson": {
"Score": 333
}
},
{
"teamNumber": 1,
"resultJson": {
"Score": 45
}
}
]
}
}