mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-10 11:17:20 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user