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

Function get_unit_id

plugins/manipulator.cpp:635–636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

633 id_getter(list_id_group);
634 #undef id_getter
635 string get_unit_id(UnitInfo *u)
636 { return itos(u->unit->id); }
637 string get_age(UnitInfo *u)
638 { return itos((int)Units::getAge(u->unit)); }
639 void set_nickname(UnitInfo *u, std::string nick)

Callers

nothing calls this directly

Calls 1

itosFunction · 0.85

Tested by

no test coverage detected