summaryrefslogtreecommitdiff
path: root/library/LuaApi.cpp
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-08-24 18:26:18 +0400
committerAlexander Gavrilov2012-08-24 18:26:18 +0400
commit8359e80b233675ee347ff1ac8ec7d37430d52a7a (patch)
treec9d6876ef0fb50ffd3e27d793ac505d63f401ed9 /library/LuaApi.cpp
parentd52c54cc762e4f525b4d1f3c339e9cf5a1230ee7 (diff)
downloaddfhack-8359e80b233675ee347ff1ac8ec7d37430d52a7a.tar.gz
dfhack-8359e80b233675ee347ff1ac8ec7d37430d52a7a.tar.bz2
dfhack-8359e80b233675ee347ff1ac8ec7d37430d52a7a.tar.xz
Expose a few API functions to lua, and implement a room browser overlay.
Diffstat (limited to 'library/LuaApi.cpp')
-rw-r--r--library/LuaApi.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/LuaApi.cpp b/library/LuaApi.cpp
index 35cf1435..00d4c517 100644
--- a/library/LuaApi.cpp
+++ b/library/LuaApi.cpp
@@ -815,6 +815,8 @@ static const LuaWrapper::FunctionReg dfhack_units_module[] = {
WRAPM(Units, getAge),
WRAPM(Units, getProfessionName),
WRAPM(Units, getCasteProfessionName),
+ WRAPM(Units, getProfessionColor),
+ WRAPM(Units, getCasteProfessionColor),
{ NULL, NULL }
};
@@ -985,6 +987,7 @@ static bool buildings_containsTile(df::building *bld, int x, int y, bool room) {
}
static const LuaWrapper::FunctionReg dfhack_buildings_module[] = {
+ WRAPM(Buildings, setOwner),
WRAPM(Buildings, allocInstance),
WRAPM(Buildings, checkFreeTiles),
WRAPM(Buildings, countExtentTiles),