Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DFHack/dfhack
/ get_cur_unit_id
Method
get_cur_unit_id
plugins/spectate.cpp:242–246 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
240
}
241
242
int32_t get_cur_unit_id() {
243
if (offset >= history.size())
244
return -1;
245
return history[history.size() - (1 + offset)];
246
}
247
} unit_history;
248
249
/////////////////////////////////////////////////////
Callers
nothing calls this directly
Calls
1
size
Method · 0.45
Tested by
no test coverage detected