Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/GuiInterface.js
Show First 20 Lines • Show All 1,025 Lines • ▼ Show 20 Lines | GuiInterface.prototype.SetRangeOverlays = function(player, cmd) | ||||
} | } | ||||
}; | }; | ||||
GuiInterface.prototype.GetPlayerEntities = function(player) | GuiInterface.prototype.GetPlayerEntities = function(player) | ||||
{ | { | ||||
return Engine.QueryInterface(SYSTEM_ENTITY, IID_RangeManager).GetEntitiesByPlayer(player); | return Engine.QueryInterface(SYSTEM_ENTITY, IID_RangeManager).GetEntitiesByPlayer(player); | ||||
}; | }; | ||||
GuiInterface.prototype.GetPlayerCiv = function(playerID) | |||||
{ | |||||
return QueryPlayerIDInterface(playerID, IID_Player).GetCiv(); | |||||
}; | |||||
GuiInterface.prototype.GetNonGaiaEntities = function() | GuiInterface.prototype.GetNonGaiaEntities = function() | ||||
{ | { | ||||
return Engine.QueryInterface(SYSTEM_ENTITY, IID_RangeManager).GetNonGaiaEntities(); | return Engine.QueryInterface(SYSTEM_ENTITY, IID_RangeManager).GetNonGaiaEntities(); | ||||
}; | }; | ||||
/** | /** | ||||
* Displays the rally points of a given list of entities (carried in cmd.entities). | * Displays the rally points of a given list of entities (carried in cmd.entities). | ||||
* | * | ||||
▲ Show 20 Lines • Show All 1,056 Lines • ▼ Show 20 Lines | let exposedFunctions = { | ||||
"GetFormationInfoFromTemplate": 1, | "GetFormationInfoFromTemplate": 1, | ||||
"IsStanceSelected": 1, | "IsStanceSelected": 1, | ||||
"UpdateDisplayedPlayerColors": 1, | "UpdateDisplayedPlayerColors": 1, | ||||
"SetSelectionHighlight": 1, | "SetSelectionHighlight": 1, | ||||
"GetAllBuildableEntities": 1, | "GetAllBuildableEntities": 1, | ||||
"SetStatusBars": 1, | "SetStatusBars": 1, | ||||
"GetPlayerEntities": 1, | "GetPlayerEntities": 1, | ||||
"GetPlayerCiv": 1, | |||||
"GetNonGaiaEntities": 1, | "GetNonGaiaEntities": 1, | ||||
"DisplayRallyPoint": 1, | "DisplayRallyPoint": 1, | ||||
"AddTargetMarker": 1, | "AddTargetMarker": 1, | ||||
"SetBuildingPlacementPreview": 1, | "SetBuildingPlacementPreview": 1, | ||||
"SetWallPlacementPreview": 1, | "SetWallPlacementPreview": 1, | ||||
"GetFoundationSnapData": 1, | "GetFoundationSnapData": 1, | ||||
"PlaySound": 1, | "PlaySound": 1, | ||||
"PlaySoundForPlayer": 1, | "PlaySoundForPlayer": 1, | ||||
Show All 33 Lines |
Wildfire Games · Phabricator