spring: develop e81b3a0f | [ Diff ] [ Back to Repository ] | |||
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
sprunk | Eshed | develop | 2019-03-20 23:24:20 | develop 8e884e82 |
Changeset | Add `GetUnitCurrentCommand` lua callout (0000437) * Add `GetUnitCurrentCommand` lua callout Spring.GetUnitCurrentCommand(unitID) -> [cmdID, cmdOpts (coded), cmdTag[, cmdParam1[, cmdParam2 ... ]]] Options are coded as a single number and parameters are returned on the stack so that there are no table allocations. This is a form of optimisation because getting the current command is a common action but so far the only available option was GetUnitCommands(unitID, 1) which still allocated 3 tables. * Fix * changelog++ * Fix |
|||
mod - doc/changelog.txt | [ Diff ] [ File ] | |||
mod - rts/Lua/LuaSyncedRead.cpp | [ Diff ] [ File ] | |||
mod - rts/Lua/LuaSyncedRead.h | [ Diff ] [ File ] |