|
|
@@ -0,0 +1,59 @@
|
|
|
+{
|
|
|
+ "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",
|
|
|
+ "description" : "List of currently available game rooms"
|
|
|
+ "items" :
|
|
|
+ {
|
|
|
+ "type" : "object",
|
|
|
+ "additionalProperties" : false,
|
|
|
+ "required" : [ "gameRoomID", "hostAccountID", "hostAccountDisplayName", "description", "playersCount", "playersLimit" ],
|
|
|
+ "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"
|
|
|
+ },
|
|
|
+ "playersCount" :
|
|
|
+ {
|
|
|
+ "type" : "number",
|
|
|
+ "description" : "Current number of players in this room, including host"
|
|
|
+ },
|
|
|
+ "playersLimit" :
|
|
|
+ {
|
|
|
+ "type" : "number",
|
|
|
+ "description" : "Maximum number of players that can join this room, including host"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|