Differential D3500 Diff 17451 binaries/data/mods/public/gui/gamesetup/Controllers/LobbyGameRegistration.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup/Controllers/LobbyGameRegistration.js
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | if (this.timer !== undefined) | ||||
this.timer = undefined; | this.timer = undefined; | ||||
} | } | ||||
let clients = this.formatClientsForStanza(); | let clients = this.formatClientsForStanza(); | ||||
let stanza = { | let stanza = { | ||||
"name": this.serverName, | "name": this.serverName, | ||||
"hostUsername": Engine.LobbyGetNick(), | "hostUsername": Engine.LobbyGetNick(), | ||||
"hostJID": "", // Overwritten by C++, placeholder. | |||||
"mapName": g_GameSettings.map.map, | "mapName": g_GameSettings.map.map, | ||||
// TODO: if the map name was always up-to-date we wouldn't need the mapcache here. | // TODO: if the map name was always up-to-date we wouldn't need the mapcache here. | ||||
"niceMapName": this.mapCache.getTranslatableMapName(g_GameSettings.map.type, g_GameSettings.map.map), | "niceMapName": this.mapCache.getTranslatableMapName(g_GameSettings.map.type, g_GameSettings.map.map), | ||||
"mapSize": g_GameSettings.map.type == "random" ? g_GameSettings.mapSize.size : "Default", | "mapSize": g_GameSettings.map.type == "random" ? g_GameSettings.mapSize.size : "Default", | ||||
"mapType": g_GameSettings.map.type, | "mapType": g_GameSettings.map.type, | ||||
"victoryConditions": Array.from(g_GameSettings.victoryConditions.active).join(","), | "victoryConditions": Array.from(g_GameSettings.victoryConditions.active).join(","), | ||||
"nbp": clients.connectedPlayers, | "nbp": clients.connectedPlayers, | ||||
"maxnbp": g_GameSettings.playerCount.nbPlayers, | "maxnbp": g_GameSettings.playerCount.nbPlayers, | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator