Differential D144 Diff 1667 ps/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
Show First 20 Lines • Show All 188 Lines • ▼ Show 20 Lines | GuiInterface.prototype.GetExtendedSimulationState = function() | ||||
// Add statistics to each player | // Add statistics to each player | ||||
let cmpPlayerManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_PlayerManager); | let cmpPlayerManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_PlayerManager); | ||||
let n = cmpPlayerManager.GetNumPlayers(); | let n = cmpPlayerManager.GetNumPlayers(); | ||||
for (let i = 0; i < n; ++i) | for (let i = 0; i < n; ++i) | ||||
{ | { | ||||
let playerEnt = cmpPlayerManager.GetPlayerByID(i); | let playerEnt = cmpPlayerManager.GetPlayerByID(i); | ||||
let cmpPlayerStatisticsTracker = Engine.QueryInterface(playerEnt, IID_StatisticsTracker); | let cmpPlayerStatisticsTracker = Engine.QueryInterface(playerEnt, IID_StatisticsTracker); | ||||
if (cmpPlayerStatisticsTracker) | if (cmpPlayerStatisticsTracker) | ||||
ret.players[i].statistics = cmpPlayerStatisticsTracker.GetStatistics(); | ret.players[i].sequences = cmpPlayerStatisticsTracker.GetSequences(); | ||||
} | } | ||||
return ret; | return ret; | ||||
}; | }; | ||||
GuiInterface.prototype.GetRenamedEntities = function(player) | GuiInterface.prototype.GetRenamedEntities = function(player) | ||||
{ | { | ||||
if (this.miragedEntities[player]) | if (this.miragedEntities[player]) | ||||
▲ Show 20 Lines • Show All 1,828 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator