MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / setReferenceClock

Method setReferenceClock

source/game/StarWeather.cpp:46–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void ServerWeather::setReferenceClock(ClockConstPtr referenceClock) {
47 m_referenceClock = std::move(referenceClock);
48 if (m_referenceClock)
49 m_clockTrackingTime = m_referenceClock->time();
50 else
51 m_clockTrackingTime = {};
52}
53
54void ServerWeather::setClientVisibleRegions(List<RectI> regions) {
55 m_clientVisibleRegions = std::move(regions);

Callers

nothing calls this directly

Calls 1

timeMethod · 0.45

Tested by

no test coverage detected