mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-07-31 05:30:23 +02:00
Expose sim.canMove constants
This commit is contained in:
@@ -2015,6 +2015,12 @@ void LuaSimulation::Open(lua_State *L)
|
|||||||
LCONST(DECOSPACE_GAMMA18);
|
LCONST(DECOSPACE_GAMMA18);
|
||||||
LCONST(NUM_DECOSPACES);
|
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);
|
lua_newtable(L);
|
||||||
for (int i = 0; i < UI_WALLCOUNT; i++)
|
for (int i = 0; i < UI_WALLCOUNT; i++)
|
||||||
|
Reference in New Issue
Block a user