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:
WhiteTreePaladin 2010-07-02 02:46:32 +00:00
parent 913c1b1946
commit 0002a5befe

View File

@ -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()