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

Function items_findType

library/LuaApi.cpp:2501–2505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2499/***** Items module *****/
2500
2501static int16_t items_findType(string token) {
2502 DFHack::ItemTypeInfo result;
2503 result.find(token);
2504 return result.type;
2505}
2506
2507static int32_t items_findSubtype(string token) {
2508 DFHack::ItemTypeInfo result;

Callers

nothing calls this directly

Calls 1

findMethod · 0.45

Tested by

no test coverage detected