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

Function get_itemdef

plugins/orders.cpp:250–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248
249template<typename D>
250static df::itemdef *get_itemdef(int16_t subtype)
251{
252 return D::find(subtype);
253}
254
255template<typename D>
256static df::itemdef *get_itemdef(const std::string & subtype)

Callers 2

orders_export_commandFunction · 0.85
orders_importFunction · 0.85

Calls 2

enum_item_keyFunction · 0.85
findFunction · 0.50

Tested by

no test coverage detected