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

Method describeNameTriple

library/RemoteTools.cpp:248–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248void DFHack::describeNameTriple(NameTriple *info, const std::string &name,
249 const std::string &plural, const std::string &adj)
250{
251 info->set_normal(DF2UTF(name));
252 if (!plural.empty() && plural != name)
253 info->set_plural(DF2UTF(plural));
254 if (!adj.empty() && adj != name)
255 info->set_adjective(DF2UTF(adj));
256}
257
258void DFHack::describeUnit(BasicUnitInfo *info, df::unit *unit,
259 const BasicUnitInfoMask *mask)

Callers

nothing calls this directly

Calls 2

DF2UTFFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected