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

Function enum_item_key

library/include/DataDefs.h:837–840  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

835 */
836 template<class T>
837 inline std::string enum_item_key(T val) {
838 typedef typename df::enum_traits<T>::base_type base_type;
839 return format_key<base_type>(enum_item_raw_key(val), base_type(val));
840 }
841
842 DFHACK_EXPORT int findEnumItem(const std::string &name, int size, const char *const *items);
843

Callers 8

find_matchFunction · 0.85
FOR_ENUM_ITEMSFunction · 0.85
df_probeFunction · 0.85
get_itemdefFunction · 0.85
orders_export_commandFunction · 0.85
orders_importFunction · 0.85

Calls 1

enum_item_raw_keyFunction · 0.85

Tested by

no test coverage detected