Expose transition constants to Lua (fixes #654)

This commit is contained in:
Tamás Bálint Misius 2019-06-11 20:43:34 +02:00
parent 07b0d52f90
commit 75e6ece184
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -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);