serverLogin.json 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. {
  2. "type" : "object",
  3. "$schema" : "http://json-schema.org/draft-06/schema",
  4. "title" : "Lobby protocol: serverLogin",
  5. "description" : "Sent by match server when starting up in lobby mode",
  6. "required" : [ "type", "gameRoomID", "accountID", "accountCookie", "version" ],
  7. "additionalProperties" : false,
  8. "properties" : {
  9. "type" :
  10. {
  11. "type" : "string",
  12. "const" : "serverLogin"
  13. },
  14. "gameRoomID" :
  15. {
  16. "type" : "string",
  17. "description" : "UUID generated by server to represent this game room"
  18. },
  19. "accountID" :
  20. {
  21. "type" : "string",
  22. "description" : "Account ID of game host"
  23. },
  24. "accountCookie" :
  25. {
  26. "type" : "string",
  27. "description" : "Security cookie of host account"
  28. },
  29. "version" :
  30. {
  31. "type" : "string",
  32. "description" : "Version of match server, e.g. 1.5.0"
  33. },
  34. "mods" :
  35. {
  36. "type" : "array",
  37. "description" : "List of gameplay-affecting mods active on server",
  38. "items" : {
  39. "type" : "object",
  40. "additionalProperties" : false,
  41. "required" : [ "modId", "name", "version" ],
  42. "properties" : {
  43. "modId" :
  44. {
  45. "type" : "string",
  46. "description" : "Unique identifier of the mod"
  47. },
  48. "name" :
  49. {
  50. "type" : "string",
  51. "description" : "Human-readable name of the mod"
  52. },
  53. "parent" :
  54. {
  55. "type" : "string",
  56. "description" : "Unique ID of parent mod, only for submods"
  57. },
  58. "version" :
  59. {
  60. "type" : "string",
  61. "description" : "Version of mod, as specified in mod config"
  62. }
  63. }
  64. }
  65. }
  66. }
  67. }