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

Method getNetStates

source/game/StarWeather.cpp:317–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315}
316
317void ClientWeather::getNetStates() {
318 if (m_weatherPoolNetState.pullUpdated())
319 m_weatherPool = WeatherPool(DataStreamBuffer::deserializeContainer<WeatherPool::ItemsList>(m_weatherPoolNetState.get()));
320 m_undergroundLevel = m_undergroundLevelNetState.get();
321 m_currentWeatherIndex = m_currentWeatherIndexNetState.get();
322 m_currentWeatherIntensity = m_currentWeatherIntensityNetState.get();
323 m_currentWind = m_currentWindNetState.get();
324}
325
326void ClientWeather::spawnWeatherParticles(RectF newClientRegion, float dt) {
327 if (!m_currentWeatherType)

Callers

nothing calls this directly

Calls 2

pullUpdatedMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected