1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-16 10:19:47 +02:00
vcmi/config/schemas/lobbyProtocol/chatMessage.json

44 lines
1.1 KiB
JSON
Raw Normal View History

{
"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"
},
"displayName" :
{
"type" : "string",
"description" : "Display name of account that have sent this message"
},
"roomMode" :
{
"type" : "string",
"const" : "global",
"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"
}
}
}