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

Function getUnitName

plugins/dwarfmonitor.cpp:107–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107static string getUnitName(df::unit * unit)
108{
109 string label = "";
110 auto name = Units::getVisibleName(unit);
111 if (name->has_name)
112 label = Translation::TranslateName(name, false);
113
114 return label;
115}
116
117template<typename T>
118static string getFormName(int32_t id, const string &default_ = "?") {

Callers 3

populateDwarfColumnMethod · 0.85
getDwarfAverageMethod · 0.85
populateDwarfColumnMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected