Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/GuiInterface.js
Show First 20 Lines • Show All 373 Lines • ▼ Show 20 Lines | GuiInterface.prototype.GetEntityState = function(player, ent) | ||||
let cmpGarrisonHolder = Engine.QueryInterface(ent, IID_GarrisonHolder); | let cmpGarrisonHolder = Engine.QueryInterface(ent, IID_GarrisonHolder); | ||||
if (cmpGarrisonHolder) | if (cmpGarrisonHolder) | ||||
ret.garrisonHolder = { | ret.garrisonHolder = { | ||||
"entities": cmpGarrisonHolder.GetEntities(), | "entities": cmpGarrisonHolder.GetEntities(), | ||||
"buffHeal": cmpGarrisonHolder.GetHealRate(), | "buffHeal": cmpGarrisonHolder.GetHealRate(), | ||||
"allowedClasses": cmpGarrisonHolder.GetAllowedClasses(), | "allowedClasses": cmpGarrisonHolder.GetAllowedClasses(), | ||||
"capacity": cmpGarrisonHolder.GetCapacity(), | "capacity": cmpGarrisonHolder.GetCapacity(), | ||||
"occupiedSlots": cmpGarrisonHolder.OccupiedSlots() | "occupiedSlots": cmpGarrisonHolder.OccupiedSlots(), | ||||
"allowedPlayers": cmpGarrisonHolder.GetAllowedPlayers() | |||||
}; | }; | ||||
let cmpTurretHolder = Engine.QueryInterface(ent, IID_TurretHolder); | let cmpTurretHolder = Engine.QueryInterface(ent, IID_TurretHolder); | ||||
if (cmpTurretHolder) | if (cmpTurretHolder) | ||||
ret.turretHolder = { | ret.turretHolder = { | ||||
"turretPoints": cmpTurretHolder.GetTurretPoints() | "turretPoints": cmpTurretHolder.GetTurretPoints() | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 1,718 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator