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

Function get

plugins/debug.cpp:71–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 template<typename ET>
70 requires (std::is_enum_v<ET>)
71 ET get(Value& ar, const std::string &key, const ET& default_)
72 {
73 return static_cast<ET>(as<UInt64>(ar.get(key, static_cast<uint64_t>(default_))));
74 }
75}
76
77namespace DFHack { namespace debugPlugin {

Callers 15

blueprint.cppFile · 0.70
debug.cppFile · 0.70
UnitPathMethod · 0.70
traceUnitPathFunction · 0.70
unitPosAtTimeFunction · 0.70
proposeUnitHitsFunction · 0.70
computeNearbyWeightFunction · 0.70
autobutcher.cppFile · 0.70
is_valid_dereferenceMethod · 0.50
get_int_valueMethod · 0.50
queue_itemMethod · 0.50

Calls 1

getMethod · 0.45

Tested by

no test coverage detected