Differential D3150 Diff 16734 binaries/data/mods/public/simulation/ai/common-api/entitycollection.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/ai/common-api/entitycollection.js
Show First 20 Lines • Show All 169 Lines • ▼ Show 20 Lines | |||||
}; | }; | ||||
m.EntityCollection.prototype.garrison = function(target, queued = false) | m.EntityCollection.prototype.garrison = function(target, queued = false) | ||||
{ | { | ||||
Engine.PostCommand(PlayerID, { "type": "garrison", "entities": this.toIdArray(), "target": target.id(), "queued": queued }); | Engine.PostCommand(PlayerID, { "type": "garrison", "entities": this.toIdArray(), "target": target.id(), "queued": queued }); | ||||
return this; | return this; | ||||
}; | }; | ||||
m.EntityCollection.prototype.occupyTurret = function(target, queued = false) | |||||
{ | |||||
Engine.PostCommand(PlayerID, { "type": "occupy-turret", "entities": this.toIdArray(), "target": target.id(), "queued": queued }); | |||||
return this; | |||||
}; | |||||
m.EntityCollection.prototype.destroy = function() | m.EntityCollection.prototype.destroy = function() | ||||
{ | { | ||||
Engine.PostCommand(PlayerID, { "type": "delete-entities", "entities": this.toIdArray() }); | Engine.PostCommand(PlayerID, { "type": "delete-entities", "entities": this.toIdArray() }); | ||||
return this; | return this; | ||||
}; | }; | ||||
m.EntityCollection.prototype.attack = function(unitId, queued = false) | m.EntityCollection.prototype.attack = function(unitId, queued = false) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator