Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/helpers/Commands.js
Show First 20 Lines • Show All 375 Lines • ▼ Show 20 Lines | "stop-production": function(player, cmd, data) | ||||
{ | { | ||||
if (g_DebugCommands) | if (g_DebugCommands) | ||||
warn("Invalid command: production building cannot be controlled by player "+player+": "+uneval(cmd)); | warn("Invalid command: production building cannot be controlled by player "+player+": "+uneval(cmd)); | ||||
return; | return; | ||||
} | } | ||||
var queue = Engine.QueryInterface(cmd.entity, IID_ProductionQueue); | var queue = Engine.QueryInterface(cmd.entity, IID_ProductionQueue); | ||||
if (queue) | if (queue) | ||||
queue.RemoveBatch(cmd.id); | queue.RemoveItem(cmd.id); | ||||
}, | }, | ||||
"construct": function(player, cmd, data) | "construct": function(player, cmd, data) | ||||
{ | { | ||||
TryConstructBuilding(player, data.cmpPlayer, data.controlAllUnits, cmd); | TryConstructBuilding(player, data.cmpPlayer, data.controlAllUnits, cmd); | ||||
}, | }, | ||||
"construct-wall": function(player, cmd, data) | "construct-wall": function(player, cmd, data) | ||||
▲ Show 20 Lines • Show All 1,334 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator