Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DFHack/dfhack
/ get_age
Function
get_age
plugins/manipulator.cpp:637–638 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
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)
640
{
641
Units::setNickname(u->unit, nick);
Callers
nothing calls this directly
Calls
1
itos
Function · 0.85
Tested by
no test coverage detected