Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/selection_panels_helpers.js
Show First 20 Lines • Show All 272 Lines • ▼ Show 20 Lines | function performFormation(entities, formationTemplate) | ||||
Engine.PostNetworkCommand({ | Engine.PostNetworkCommand({ | ||||
"type": "formation", | "type": "formation", | ||||
"entities": entities, | "entities": entities, | ||||
"name": formationTemplate | "name": formationTemplate | ||||
}); | }); | ||||
} | } | ||||
/** | |||||
Stan: JSDOC | |||||
* Forms a battalion of the selected entities. | |||||
* @param {number[]} entities - The entity IDs of the entities. | |||||
Done Inline Actionswhat if entities is not null but length is 0 ? Stan: what if entities is not null but length is 0 ? | |||||
Done Inline ActionsI'm not sure what you mean here and below? Freagarach: I'm not sure what you mean here and below? | |||||
*/ | |||||
function formBattalion(entities) | |||||
{ | |||||
if (!entities) | |||||
return; | |||||
Engine.PostNetworkCommand({ | |||||
"type": "battalion", | |||||
"entities": entities, | |||||
"name": "form" | |||||
Done Inline ActionsJSDOC Stan: JSDOC | |||||
}); | |||||
} | |||||
Done Inline Actionswhat if entities is not null but length is 0 ? Stan: what if entities is not null but length is 0 ? | |||||
/** | |||||
* Disbands the selected battalions. | |||||
Not Done Inline ActionsParam should maybe be battalionIds Stan: Param should maybe be `battalionIds` | |||||
* @param {number[]} battalions - The IDs of the battalions. | |||||
*/ | |||||
function disbandBattalion(battalions) | |||||
{ | |||||
if (!battalions) | |||||
return; | |||||
Engine.PostNetworkCommand({ | |||||
"type": "battalion", | |||||
"battalions": battalions, | |||||
"name": "disband" | |||||
}); | |||||
} | |||||
function performStance(entities, stanceName) | function performStance(entities, stanceName) | ||||
{ | { | ||||
if (!entities) | if (!entities) | ||||
return; | return; | ||||
Engine.PostNetworkCommand({ | Engine.PostNetworkCommand({ | ||||
"type": "stance", | "type": "stance", | ||||
"entities": entities, | "entities": entities, | ||||
▲ Show 20 Lines • Show All 193 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
JSDOC