File tree Expand file tree Collapse file tree 1 file changed +4
-18
lines changed Expand file tree Collapse file tree 1 file changed +4
-18
lines changed Original file line number Diff line number Diff line change 15
15
* Table defining Command related constants.
16
16
*
17
17
* - Contains a mix of special constants like command options or move states, and the
18
- * master list of command IDs.
18
+ * list of engine command IDs.
19
19
* - Also supports integer keys, and those perform reverse mapping of command IDs.
20
20
*
21
- * The table can be extended by games through lua, in order to define custom
22
- * commands.
23
- *
24
- * To extend, do:
25
- *
26
- * ```LUA
27
- * local MY_CUSTOM_COMMAND = 57600 -- avoid conflicts
28
- * CMD['MY_CUSTOM_COMMAND'] = MY_CUSTOM_COMMAND
29
- * CMD[MY_CUSTOM_COMMAND] = 'MY_CUSTOM_COMMAND'
30
- * ```
31
- *
32
- * For now there is no mechanism to avoid id conflicts, so you will have
33
- * to be careful. Also you should put this code in a place where both
34
- * Synced, Unsynced, and all lua environments can import it, otherwise
35
- * it won't be available everywhere.
36
- *
37
21
* @see Spring.GiveOrderToUnit
38
- * @see Spring.GiveOrderToUnitArray
22
+ * @see Spring.GiveOrderArrayToUnitArray
23
+ * @see Spring.GetUnitCurrentCommand
24
+ * @see Callins:AllowCommand
39
25
* @enum CMD
40
26
*/
41
27
You can’t perform that action at this time.
0 commit comments