Expose sim.canMove constants

This commit is contained in:
Tamás Bálint Misius 2024-09-01 17:44:58 +02:00
parent 867b8e4327
commit 65aa34201b
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -2015,6 +2015,12 @@ void LuaSimulation::Open(lua_State *L)
LCONST(DECOSPACE_GAMMA18);
LCONST(NUM_DECOSPACES);
LCONSTAS("CANMOVE_BOUNCE", 0);
LCONSTAS("CANMOVE_SWAP", 1);
LCONSTAS("CANMOVE_ENTER", 2);
LCONSTAS("CANMOVE_BUILTIN", 3);
LCONSTAS("NUM_CANMOVEMODES", 4);
{
lua_newtable(L);
for (int i = 0; i < UI_WALLCOUNT; i++)