Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/GarrisonHolder.js
Show First 20 Lines • Show All 234 Lines • ▼ Show 20 Lines | if (pos.y < 0) | ||||
// If ejection is forced, we need to continue, so use center of the building | // If ejection is forced, we need to continue, so use center of the building | ||||
let cmpPosition = Engine.QueryInterface(this.entity, IID_Position); | let cmpPosition = Engine.QueryInterface(this.entity, IID_Position); | ||||
pos = cmpPosition.GetPosition(); | pos = cmpPosition.GetPosition(); | ||||
} | } | ||||
this.entities.splice(entityIndex, 1); | this.entities.splice(entityIndex, 1); | ||||
// Reset the obstruction flags to template defaults. | |||||
let cmpObstruction = Engine.QueryInterface(entity, IID_Obstruction); | |||||
if (cmpObstruction) | |||||
cmpObstruction.SetActive(true); | |||||
let cmpEntUnitAI = Engine.QueryInterface(entity, IID_UnitAI); | let cmpEntUnitAI = Engine.QueryInterface(entity, IID_UnitAI); | ||||
if (cmpEntUnitAI) | if (cmpEntUnitAI) | ||||
cmpEntUnitAI.Ungarrison(); | cmpEntUnitAI.Ungarrison(); | ||||
let cmpEntProductionQueue = Engine.QueryInterface(entity, IID_ProductionQueue); | let cmpEntProductionQueue = Engine.QueryInterface(entity, IID_ProductionQueue); | ||||
if (cmpEntProductionQueue) | if (cmpEntProductionQueue) | ||||
cmpEntProductionQueue.UnpauseProduction(); | cmpEntProductionQueue.UnpauseProduction(); | ||||
▲ Show 20 Lines • Show All 422 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator