Skip to content
Permalink
Browse files

Expose transition constants to Lua (fixes #654)

  • Loading branch information...
LBPHacker committed Jun 11, 2019
1 parent 07b0d52 commit 75e6ece1843b211dfe9d563afbfd7738e2a6a390
Showing with 6 additions and 0 deletions.
  1. +6 −0 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);

0 comments on commit 75e6ece

Please sign in to comment.
You can’t perform that action at this time.