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

Function dfhack_matinfo_getCraftClass

library/LuaApi.cpp:556–564  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

554}
555
556static int dfhack_matinfo_getCraftClass(lua_State *state)
557{
558 MaterialInfo info;
559 if (decode_matinfo(state, &info, true))
560 lua_pushinteger(state, info.getCraftClass());
561 else
562 lua_pushnil(state);
563 return 1;
564}
565
566static int dfhack_matinfo_matches(lua_State *state)
567{

Callers

nothing calls this directly

Calls 4

decode_matinfoFunction · 0.85
lua_pushintegerFunction · 0.85
lua_pushnilFunction · 0.85
getCraftClassMethod · 0.80

Tested by

no test coverage detected