Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/input.js
Show First 20 Lines • Show All 1,511 Lines • ▼ Show 20 Lines | if (!playerState.isMutualAlly[entState.player] || g_IsObserver) | ||||
return; | return; | ||||
if (g_AllyEntityCommands[commandName]) | if (g_AllyEntityCommands[commandName]) | ||||
g_AllyEntityCommands[commandName].execute(entState); | g_AllyEntityCommands[commandName].execute(entState); | ||||
} | } | ||||
function performFormation(entities, formationTemplate) | function performFormation(entities, formationTemplate) | ||||
{ | { | ||||
if (entities) | |||||
Engine.PostNetworkCommand({ | Engine.PostNetworkCommand({ | ||||
"type": "formation", | "type": "formation", | ||||
"entities": entities, | "entities": entities, | ||||
"name": formationTemplate | "name": formationTemplate | ||||
}); | }); | ||||
} | } | ||||
function performGroup(action, groupId) | function performGroup(action, groupId) | ||||
{ | { | ||||
switch (action) | switch (action) | ||||
{ | { | ||||
case "snap": | case "snap": | ||||
case "select": | case "select": | ||||
▲ Show 20 Lines • Show All 308 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator