2024-03-04 14:12:42 +02:00
|
|
|
{
|
|
|
|
"type" : "object",
|
|
|
|
"$schema" : "http://json-schema.org/draft-06/schema",
|
|
|
|
"title" : "Lobby protocol: chatMessage",
|
|
|
|
"description" : "Sent by server to all players in lobby whenever new message is sent to game chat",
|
|
|
|
"required" : [ "type", "messageText", "accountID", "displayName", "roomMode", "roomName" ],
|
|
|
|
"additionalProperties" : false,
|
|
|
|
|
|
|
|
"properties" : {
|
|
|
|
"type" :
|
|
|
|
{
|
|
|
|
"type" : "string",
|
|
|
|
"const" : "chatMessage"
|
|
|
|
},
|
|
|
|
"messageText" :
|
|
|
|
{
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "Text of sent message"
|
|
|
|
},
|
|
|
|
"accountID" :
|
|
|
|
{
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "ID of account that have sent this message"
|
|
|
|
},
|
2024-03-08 14:23:08 +02:00
|
|
|
"displayName" :
|
|
|
|
{
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "Display name of account that have sent this message"
|
|
|
|
},
|
2024-03-04 14:12:42 +02:00
|
|
|
"roomMode" :
|
|
|
|
{
|
|
|
|
"type" : "string",
|
2024-03-08 14:23:08 +02:00
|
|
|
"const" : "global",
|
2024-03-04 14:12:42 +02:00
|
|
|
"description" : "Type of room to which this message has been set. Right now can only be 'general'"
|
|
|
|
},
|
|
|
|
"roomName" :
|
|
|
|
{
|
|
|
|
"type" : "string",
|
|
|
|
"const" : "english",
|
|
|
|
"description" : "Name of room to which this message has been set. Right now only 'english' is used"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|