Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/Formation.js
Show First 20 Lines • Show All 453 Lines • ▼ Show 20 Lines | for (let ent of this.formationMembersWithAura) | ||||
cmpAuras.RemoveFormationAura(this.members); | cmpAuras.RemoveFormationAura(this.members); | ||||
} | } | ||||
this.members = []; | this.members = []; | ||||
this.waitingOnController = []; | this.waitingOnController = []; | ||||
this.formationMembersWithAura = []; | this.formationMembersWithAura = []; | ||||
this.offsets = undefined; | this.offsets = undefined; | ||||
let cmpUnitAI = Engine.QueryInterface(this.entity, IID_UnitAI); | |||||
// Hack: switch to a clean state to stop timers. | |||||
cmpUnitAI.UnitFsm.SwitchToNextState(cmpUnitAI, ""); | |||||
Engine.DestroyEntity(this.entity); | Engine.DestroyEntity(this.entity); | ||||
}; | }; | ||||
/** | /** | ||||
* Set all members to form up into the formation shape. | * Set all members to form up into the formation shape. | ||||
* @param {boolean} moveCenter - The formation center will be reinitialized | * @param {boolean} moveCenter - The formation center will be reinitialized | ||||
* to the center of the units. | * to the center of the units. | ||||
* @param {boolean} force - All individual orders of the formation units are replaced, | * @param {boolean} force - All individual orders of the formation units are replaced, | ||||
▲ Show 20 Lines • Show All 575 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator