summaryrefslogtreecommitdiff
path: root/library/LuaApi.cpp
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-05-12 20:12:09 +0400
committerAlexander Gavrilov2012-05-12 20:12:09 +0400
commit60bb486abac5d79f0fc9053739b6ec52dfa8519f (patch)
treeb3176747ed5528e8af3362e4024f410d953cf245 /library/LuaApi.cpp
parentaf3e38909301439748713c0d6acd35c9942f4f42 (diff)
downloaddfhack-60bb486abac5d79f0fc9053739b6ec52dfa8519f.tar.gz
dfhack-60bb486abac5d79f0fc9053739b6ec52dfa8519f.tar.bz2
dfhack-60bb486abac5d79f0fc9053739b6ec52dfa8519f.tar.xz
Add api for enabling liquid and temperature updates for blocks.
Now updates also have to be enabled for the z level to work.
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 d554754e..1baa4045 100644
--- a/library/LuaApi.cpp
+++ b/library/LuaApi.cpp
@@ -637,6 +637,8 @@ static const LuaWrapper::FunctionReg dfhack_job_module[] = {
WRAPM(Job,printJobDetails),
WRAPM(Job,getHolder),
WRAPM(Job,getWorker),
+ WRAPM(Job,checkBuildingsNow),
+ WRAPM(Job,checkDesignationsNow),
WRAPN(is_equal, jobEqual),
WRAPN(is_item_equal, jobItemEqual),
{ NULL, NULL }
@@ -753,6 +755,7 @@ static const luaL_Reg dfhack_items_funcs[] = {
static const LuaWrapper::FunctionReg dfhack_maps_module[] = {
WRAPN(getBlock, (df::map_block* (*)(int32_t,int32_t,int32_t))Maps::getBlock),
WRAPM(Maps, getRegionBiome),
+ WRAPM(Maps, enableBlockUpdates),
WRAPM(Maps, getGlobalInitFeature),
WRAPM(Maps, getLocalInitFeature),
WRAPM(Maps, canWalkBetween),