mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Add minetest.get_player_window_information() (#12367)
This commit is contained in:
@@ -128,6 +128,15 @@ void push_v2s32(lua_State *L, v2s32 p)
|
||||
lua_setfield(L, -2, "y");
|
||||
}
|
||||
|
||||
void push_v2u32(lua_State *L, v2u32 p)
|
||||
{
|
||||
lua_createtable(L, 0, 2);
|
||||
lua_pushinteger(L, p.X);
|
||||
lua_setfield(L, -2, "x");
|
||||
lua_pushinteger(L, p.Y);
|
||||
lua_setfield(L, -2, "y");
|
||||
}
|
||||
|
||||
v2s32 read_v2s32(lua_State *L, int index)
|
||||
{
|
||||
v2s32 p;
|
||||
|
Reference in New Issue
Block a user