2024-03-04 14:12:42 +02:00
|
|
|
{
|
|
|
|
"type" : "object",
|
|
|
|
"$schema" : "http://json-schema.org/draft-06/schema",
|
|
|
|
"title" : "Lobby protocol: activeGameRooms",
|
|
|
|
"description" : "Sent by server to initialized or update list of game rooms",
|
|
|
|
"required" : [ "type", "gameRooms" ],
|
|
|
|
"additionalProperties" : false,
|
|
|
|
|
|
|
|
"properties" : {
|
|
|
|
"type" :
|
|
|
|
{
|
|
|
|
"type" : "string",
|
|
|
|
"const" : "activeGameRooms"
|
|
|
|
},
|
|
|
|
"gameRooms" :
|
|
|
|
{
|
|
|
|
"type" : "array",
|
2024-03-04 16:39:49 +02:00
|
|
|
"description" : "List of currently available game rooms",
|
2024-03-04 14:12:42 +02:00
|
|
|
"items" :
|
|
|
|
{
|
|
|
|
"type" : "object",
|
|
|
|
"additionalProperties" : false,
|
2024-04-15 12:34:16 +02:00
|
|
|
"required" : [ "gameRoomID", "hostAccountID", "hostAccountDisplayName", "description", "participants", "playerLimit", "status", "ageSeconds", "mods", "version" ],
|
2024-03-04 14:12:42 +02:00
|
|
|
"properties" : {
|
|
|
|
"gameRoomID" :
|
|
|
|
{
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "Unique ID of game room"
|
|
|
|
},
|
|
|
|
"hostAccountID" :
|
|
|
|
{
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "ID of account that created and hosts this game room"
|
|
|
|
},
|
|
|
|
"hostAccountDisplayName" :
|
|
|
|
{
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "Display name of account that created and hosts this game room"
|
|
|
|
},
|
|
|
|
"description" :
|
|
|
|
{
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "Auto-generated description of this room"
|
|
|
|
},
|
2024-03-20 18:40:37 +02:00
|
|
|
"participants" :
|
2024-03-04 14:12:42 +02:00
|
|
|
{
|
2024-03-20 18:40:37 +02:00
|
|
|
"type" : "array",
|
|
|
|
"description" : "List of accounts in the room, including host",
|
|
|
|
"items" :
|
|
|
|
{
|
|
|
|
"type" : "object",
|
|
|
|
"additionalProperties" : false,
|
|
|
|
"required" : [ "accountID", "displayName" ],
|
|
|
|
"properties" : {
|
|
|
|
"accountID" :
|
|
|
|
{
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "Unique ID of an account"
|
|
|
|
},
|
|
|
|
"displayName" :
|
|
|
|
{
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "Display name of an account"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-03-04 14:12:42 +02:00
|
|
|
},
|
2024-05-13 13:43:28 +02:00
|
|
|
"invited" :
|
|
|
|
{
|
|
|
|
"type" : "array",
|
|
|
|
"description" : "List of accounts that were invited to this room",
|
|
|
|
"items" :
|
|
|
|
{
|
|
|
|
"type" : "object",
|
|
|
|
"additionalProperties" : false,
|
|
|
|
"required" : [ "accountID", "displayName" ],
|
|
|
|
"properties" : {
|
|
|
|
"accountID" :
|
|
|
|
{
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "Unique ID of an account"
|
|
|
|
},
|
|
|
|
"displayName" :
|
|
|
|
{
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "Display name of an account"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2024-04-15 12:34:16 +02:00
|
|
|
"mods" :
|
|
|
|
{
|
|
|
|
"type" : "array",
|
|
|
|
"description" : "List of gameplay-affecting mods active on server",
|
|
|
|
"items" : {
|
|
|
|
"type" : "object",
|
|
|
|
"additionalProperties" : false,
|
|
|
|
"required" : [ "modId", "name", "version" ],
|
|
|
|
"properties" : {
|
|
|
|
"modId" :
|
|
|
|
{
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "Unique identifier of the mod"
|
|
|
|
},
|
|
|
|
"name" :
|
|
|
|
{
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "Human-readable name of the mod"
|
|
|
|
},
|
|
|
|
"parent" :
|
|
|
|
{
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "Unique ID of parent mod, only for submods"
|
|
|
|
},
|
|
|
|
"version" :
|
|
|
|
{
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "Version of mod, as specified in mod config"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-04-16 15:30:22 +02:00
|
|
|
},
|
2024-03-12 19:52:42 +02:00
|
|
|
"status" :
|
|
|
|
{
|
|
|
|
"type" : "string",
|
|
|
|
"enum" : [ "idle", "public", "private", "busy", "cancelled", "closed" ],
|
|
|
|
"description" : "Current status of game room"
|
|
|
|
},
|
2024-03-11 20:03:33 +02:00
|
|
|
"playerLimit" :
|
2024-03-04 14:12:42 +02:00
|
|
|
{
|
|
|
|
"type" : "number",
|
2024-03-11 20:03:33 +02:00
|
|
|
"minimum" : 1,
|
|
|
|
"maximum" : 8,
|
2024-03-04 14:12:42 +02:00
|
|
|
"description" : "Maximum number of players that can join this room, including host"
|
2024-03-20 20:12:43 +02:00
|
|
|
},
|
2024-04-15 12:34:16 +02:00
|
|
|
"version" :
|
|
|
|
{
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "Version of match server, e.g. 1.5.0"
|
|
|
|
},
|
2024-03-20 20:12:43 +02:00
|
|
|
"ageSeconds" :
|
|
|
|
{
|
|
|
|
"type" : "number",
|
|
|
|
"description" : "Age of this room in seconds. For example, 10 means that this room was created 10 seconds ago"
|
2024-03-04 14:12:42 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|