MCPcopy Create free account
hub / github.com/DFHack/dfhack / dfhack_penarray_set_tile

Function dfhack_penarray_set_tile

library/LuaApi.cpp:1029–1038  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1027}
1028
1029static int dfhack_penarray_set_tile(lua_State *L)
1030{
1031 PenArray *parr = check_penarray_native(L, 1);
1032 unsigned int x = luaL_checkint(L, 2);
1033 unsigned int y = luaL_checkint(L, 3);
1034 Pen pen;
1035 Lua::CheckPen(L, &pen, 4);
1036 parr->set_tile(x, y, pen);
1037 return 0;
1038}
1039
1040static int dfhack_penarray_draw(lua_State *L)
1041{

Callers

nothing calls this directly

Calls 2

check_penarray_nativeFunction · 0.85
set_tileMethod · 0.80

Tested by

no test coverage detected