Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DFHack/dfhack
/ add
Method
add
plugins/spectate.cpp:260–262 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
258
}
259
260
void add(int32_t unit_id) {
261
units[unit_id] = Core::getInstance().getUnpausedMs();
262
}
263
264
bool contains(int32_t unit_id) {
265
return units.contains(unit_id);
Callers
1
on_new_active_unit
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected