Differential D2385 Diff 10190 ps/trunk/binaries/data/mods/public/gui/session/lobby/LobbyRatingReport/Players.js
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/session/lobby/LobbyRatingReport/Players.js
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
/** | |||||
* This class reports the chosen settings and victory state of the participating players. | |||||
*/ | |||||
LobbyRatingReport.prototype.Players = class | |||||
{ | |||||
insertValues(report, playerStates) | |||||
{ | |||||
Object.assign(report, { | |||||
"playerStates": playerStates.map(playerState => playerState.state).join(",") + ",", | |||||
"civs": playerStates.map(playerState => playerState.civ).join(",") + ",", | |||||
"teams": playerStates.map(playerState => playerState.team).join(",") + ",", | |||||
"teamsLocked": String(playerStates.every(playerState => playerState.teamsLocked)) | |||||
}); | |||||
} | |||||
}; |
Wildfire Games · Phabricator