Differential D3656 Diff 16526 ps/trunk/binaries/data/mods/public/simulation/components/GarrisonHolder.js
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/simulation/components/GarrisonHolder.js
Show First 20 Lines • Show All 555 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
if (!this.initGarrison) | if (!this.initGarrison) | ||||
return; | return; | ||||
for (let ent of this.initGarrison) | for (let ent of this.initGarrison) | ||||
{ | { | ||||
let cmpGarrisonable = Engine.QueryInterface(ent, IID_Garrisonable); | let cmpGarrisonable = Engine.QueryInterface(ent, IID_Garrisonable); | ||||
if (cmpGarrisonable) | if (cmpGarrisonable) | ||||
cmpGarrisonable.Autogarrison(this.entity); | cmpGarrisonable.Garrison(this.entity); | ||||
} | } | ||||
this.initGarrison = undefined; | this.initGarrison = undefined; | ||||
}; | }; | ||||
GarrisonHolder.prototype.OnValueModification = function(msg) | GarrisonHolder.prototype.OnValueModification = function(msg) | ||||
{ | { | ||||
if (msg.component != "GarrisonHolder") | if (msg.component != "GarrisonHolder") | ||||
return; | return; | ||||
Show All 24 Lines |
Wildfire Games · Phabricator