diff options
| author | Alexander Gavrilov | 2012-04-23 21:30:53 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-04-23 21:30:53 +0400 |
| commit | 763a301b4f928bf20c78fb67f864e1623409c710 (patch) | |
| tree | b46ec827b20f49787aa77ba75d293b2951801544 /library/LuaApi.cpp | |
| parent | 125cd6622a1d2ce7a8dfa7caf40a85049baf4977 (diff) | |
| download | dfhack-763a301b4f928bf20c78fb67f864e1623409c710.tar.gz dfhack-763a301b4f928bf20c78fb67f864e1623409c710.tar.bz2 dfhack-763a301b4f928bf20c78fb67f864e1623409c710.tar.xz | |
Add a few more lua api functions, documentation, and unit sort orders.
Units::getProfessionName appears to work correctly for
everything except nobles.
Diffstat (limited to 'library/LuaApi.cpp')
| -rw-r--r-- | library/LuaApi.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/library/LuaApi.cpp b/library/LuaApi.cpp index 00192c05..71df50e2 100644 --- a/library/LuaApi.cpp +++ b/library/LuaApi.cpp @@ -58,6 +58,7 @@ distribution. #include "df/unit.h" #include "df/item.h" #include "df/material.h" +#include "df/assumed_identity.h" #include "df/nemesis_record.h" #include "df/historical_figure.h" #include "df/plant_raw.h" @@ -608,6 +609,7 @@ static const LuaWrapper::FunctionReg dfhack_units_module[] = { WRAPM(Units, getContainer), WRAPM(Units, setNickname), WRAPM(Units, getVisibleName), + WRAPM(Units, getIdentity), WRAPM(Units, getNemesis), WRAPM(Units, isDead), WRAPM(Units, isAlive), @@ -616,6 +618,8 @@ static const LuaWrapper::FunctionReg dfhack_units_module[] = { WRAPM(Units, isInBurrow), WRAPM(Units, setInBurrow), WRAPM(Units, getAge), + WRAPM(Units, getProfessionName), + WRAPM(Units, getCasteProfessionName), { NULL, NULL } }; |
