Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenStarbound/OpenStarbound
/ update
Method
update
source/game/StarGameTimers.cpp:78–82 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
76
}
77
78
void SlidingWindow::update(function<float()> sampleFunction) {
79
if (sampleTimer.wrapTick()) {
80
processUpdate(sampleFunction());
81
}
82
}
83
84
void SlidingWindow::update(float newValue) {
85
if (sampleTimer.wrapTick()) {
Callers
nothing calls this directly
Calls
1
wrapTick
Method · 0.80
Tested by
no test coverage detected