diff options
| author | Alexander Gavrilov | 2012-09-05 19:45:45 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-09-05 19:45:45 +0400 |
| commit | 57086ac56eb489abd0c7759aed084020edc71148 (patch) | |
| tree | 06b3e64f5f9114ae762ca1d2a99d08382a63ce23 /library/LuaApi.cpp | |
| parent | 27f169e298e658f3957aa2db1f76fe8aa20caef7 (diff) | |
| download | dfhack-57086ac56eb489abd0c7759aed084020edc71148.tar.gz dfhack-57086ac56eb489abd0c7759aed084020edc71148.tar.bz2 dfhack-57086ac56eb489abd0c7759aed084020edc71148.tar.xz | |
Add stock MessageBox and InputBox dialog screens for lua scripts.
Diffstat (limited to 'library/LuaApi.cpp')
| -rw-r--r-- | library/LuaApi.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/LuaApi.cpp b/library/LuaApi.cpp index 4e57b113..1dcb001f 100644 --- a/library/LuaApi.cpp +++ b/library/LuaApi.cpp @@ -728,6 +728,7 @@ static std::string getOSType() } static std::string getDFVersion() { return Core::getInstance().vinfo->getVersion(); } +static uint32_t getTickCount() { return Core::getInstance().p->getTickCount(); } static std::string getDFPath() { return Core::getInstance().p->getPath(); } static std::string getHackPath() { return Core::getInstance().getHackPath(); } @@ -739,6 +740,7 @@ static const LuaWrapper::FunctionReg dfhack_module[] = { WRAP(getOSType), WRAP(getDFVersion), WRAP(getDFPath), + WRAP(getTickCount), WRAP(getHackPath), WRAP(isWorldLoaded), WRAP(isMapLoaded), |
