MCPcopy 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
78void SlidingWindow::update(function<float()> sampleFunction) {
79 if (sampleTimer.wrapTick()) {
80 processUpdate(sampleFunction());
81 }
82}
83
84void SlidingWindow::update(float newValue) {
85 if (sampleTimer.wrapTick()) {

Callers

nothing calls this directly

Calls 1

wrapTickMethod · 0.80

Tested by

no test coverage detected