Differential D2385 Diff 10187 binaries/data/mods/public/gui/session/lobby/LobbyRatingReport/Players.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/lobby/LobbyRatingReport/Players.js
- This file was added.
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, extendedSimState, 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