From 75e6ece1843b211dfe9d563afbfd7738e2a6a390 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Tue, 11 Jun 2019 20:43:34 +0200 Subject: [PATCH] Expose transition constants to Lua (fixes #654) --- src/lua/LuaScriptInterface.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lua/LuaScriptInterface.cpp b/src/lua/LuaScriptInterface.cpp index 0abddb399..664970047 100644 --- a/src/lua/LuaScriptInterface.cpp +++ b/src/lua/LuaScriptInterface.cpp @@ -789,6 +789,12 @@ void LuaScriptInterface::initSimulationAPI() SETCONST(l, XRES); SETCONST(l, YRES); SETCONST(l, CELL); + SETCONST(l, NT); + SETCONST(l, ST); + SETCONST(l, ITH); + SETCONST(l, ITL); + SETCONST(l, IPH); + SETCONST(l, IPL); SETCONST(l, PT_NUM); lua_pushinteger(l, 0); lua_setfield(l, -2, "NUM_PARTS"); SETCONST(l, R_TEMP);