mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
35 lines
817 B
JSON
35 lines
817 B
JSON
{
|
|
"type" : "object",
|
|
"$schema" : "http://json-schema.org/draft-06/schema",
|
|
"title" : "Lobby protocol: activateGameRoom",
|
|
"description" : "Sent by client when player wants to activate a game room",
|
|
"required" : [ "type", "hostAccountID", "roomType" ],
|
|
"additionalProperties" : false,
|
|
|
|
"properties" : {
|
|
"type" :
|
|
{
|
|
"type" : "string",
|
|
"const" : "activateGameRoom"
|
|
},
|
|
"hostAccountID" :
|
|
{
|
|
"type" : "string",
|
|
"description" : "Account ID that hosts match server that player wants to activate"
|
|
},
|
|
"roomType" :
|
|
{
|
|
"type" : "string",
|
|
"enum" : [ "public", "private" ],
|
|
"description" : "Room type to use for activation"
|
|
},
|
|
"playerLimit" :
|
|
{
|
|
"type" : "number",
|
|
"minimum" : 1,
|
|
"maximum" : 8,
|
|
"description" : "Maximum number of players that can enter this room"
|
|
},
|
|
}
|
|
}
|