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

Function dfhack_matinfo_getToken

library/LuaApi.cpp:536–543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

534}
535
536static int dfhack_matinfo_getToken(lua_State *state)
537{
538 MaterialInfo info;
539 decode_matinfo(state, &info, true);
540 auto str = info.getToken();
541 lua_pushstring(state, str.c_str());
542 return 1;
543}
544
545static int dfhack_matinfo_toString(lua_State *state)
546{

Callers

nothing calls this directly

Calls 4

decode_matinfoFunction · 0.85
lua_pushstringFunction · 0.85
c_strMethod · 0.80
getTokenMethod · 0.45

Tested by

no test coverage detected