1
0
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:
rubenwardy
2023-02-27 22:58:41 +00:00
committed by GitHub
parent fbbdae93ee
commit 39f4d26177
23 changed files with 345 additions and 35 deletions

View File

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