Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/simulation/helpers/Commands.js
Show First 20 Lines • Show All 872 Lines • ▼ Show 20 Lines | "set-dropsite-sharing": function(player, cmd, data) | ||||
for (let ent of data.entities) | for (let ent of data.entities) | ||||
{ | { | ||||
let cmpResourceDropsite = Engine.QueryInterface(ent, IID_ResourceDropsite); | let cmpResourceDropsite = Engine.QueryInterface(ent, IID_ResourceDropsite); | ||||
if (cmpResourceDropsite && cmpResourceDropsite.IsSharable()) | if (cmpResourceDropsite && cmpResourceDropsite.IsSharable()) | ||||
cmpResourceDropsite.SetSharing(cmd.shared); | cmpResourceDropsite.SetSharing(cmd.shared); | ||||
} | } | ||||
}, | }, | ||||
"map-flare": function(player, cmd, data) | |||||
{ | |||||
let cmpGuiInterface = Engine.QueryInterface(SYSTEM_ENTITY, IID_GuiInterface); | |||||
cmpGuiInterface.PushNotification({ | |||||
"type": "map-flare", | |||||
"players": [player], | |||||
"target": cmd.target | |||||
}); | |||||
}, | |||||
"autoqueue-on": function(player, cmd, data) | "autoqueue-on": function(player, cmd, data) | ||||
{ | { | ||||
for (let ent of data.entities) | for (let ent of data.entities) | ||||
{ | { | ||||
let cmpProductionQueue = Engine.QueryInterface(ent, IID_ProductionQueue); | let cmpProductionQueue = Engine.QueryInterface(ent, IID_ProductionQueue); | ||||
if (cmpProductionQueue) | if (cmpProductionQueue) | ||||
cmpProductionQueue.EnableAutoQueue(); | cmpProductionQueue.EnableAutoQueue(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 948 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator