Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DFHack/dfhack
/ reset
Method
reset
plugins/spectate.cpp:174–177 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
172
173
public:
174
void reset() {
175
history.clear();
176
offset = 0;
177
}
178
179
void add_to_history(color_ostream &out, int32_t unit_id) {
180
if (offset > 0) {
Callers
4
reset
Method · 0.45
on_disable
Function · 0.45
command_result plugin_enable
Function · 0.45
command_result plugin_onstatechange
Function · 0.45
Calls
1
clear
Method · 0.45
Tested by
no test coverage detected