forked from 0ad/0ad
Extended access to existing player attributes
(this goes with previous commit - forgot to include it) This was SVN commit r7661.
This commit is contained in:
parent
913c1b1946
commit
0002a5befe
@ -26,6 +26,9 @@ GuiInterface.prototype.GetSimulationState = function(player)
|
||||
var playerEnt = cmpPlayerMan.GetPlayerByID(i);
|
||||
var cmpPlayer = Engine.QueryInterface(playerEnt, IID_Player);
|
||||
var playerData = {
|
||||
"name": cmpPlayer.GetName(),
|
||||
"civ": cmpPlayer.GetCiv(),
|
||||
"colour": cmpPlayer.GetColour(),
|
||||
"popCount": cmpPlayer.GetPopulationCount(),
|
||||
"popLimit": cmpPlayer.GetPopulationLimit(),
|
||||
"resourceCounts": cmpPlayer.GetResourceCounts()
|
||||
|
Loading…
Reference in New Issue
Block a user