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

Function textures_loadTileset

library/LuaApi.cpp:2059–2068  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2057/***** Textures module *****/
2058
2059static int textures_loadTileset(lua_State *state)
2060{
2061 string file = luaL_checkstring(state, 1);
2062 auto tile_w = luaL_checkint(state, 2);
2063 auto tile_h = luaL_checkint(state, 3);
2064 bool reserved = lua_isboolean(state, 4) ? lua_toboolean(state, 4) : false;
2065 auto handles = Textures::loadTileset(file, tile_w, tile_h, reserved);
2066 Lua::PushVector(state, handles);
2067 return 1;
2068}
2069
2070static int textures_getTexposByHandle(lua_State *state)
2071{

Callers

nothing calls this directly

Calls 2

lua_tobooleanFunction · 0.85
PushVectorFunction · 0.85

Tested by

no test coverage detected