summaryrefslogtreecommitdiff
path: root/library/LuaApi.cpp
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-04-21 15:43:52 +0400
committerAlexander Gavrilov2012-04-21 15:43:52 +0400
commit3282ac3db216ef43cab5744631b57ed05bcf8a12 (patch)
tree330517cf6663113e0b9f4a575209ab658c5003d4 /library/LuaApi.cpp
parentadbd351462f71db6a98b681eb9336524cc530092 (diff)
downloaddfhack-3282ac3db216ef43cab5744631b57ed05bcf8a12.tar.gz
dfhack-3282ac3db216ef43cab5744631b57ed05bcf8a12.tar.bz2
dfhack-3282ac3db216ef43cab5744631b57ed05bcf8a12.tar.xz
Add a hotkey command that sorts units in lists using lua comparators.
Diffstat (limited to 'library/LuaApi.cpp')
-rw-r--r--library/LuaApi.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/LuaApi.cpp b/library/LuaApi.cpp
index ccd057c9..00192c05 100644
--- a/library/LuaApi.cpp
+++ b/library/LuaApi.cpp
@@ -615,6 +615,7 @@ static const LuaWrapper::FunctionReg dfhack_units_module[] = {
WRAPM(Units, clearBurrowMembers),
WRAPM(Units, isInBurrow),
WRAPM(Units, setInBurrow),
+ WRAPM(Units, getAge),
{ NULL, NULL }
};