public void tellLighting(CSteamID steamID, uint serverTime, uint newCycle, uint newOffset, byte moon, byte wind, byte rain, byte snow) { if (base.channel.checkServer(steamID)) { Provider.time = serverTime; LightingManager._cycle = newCycle; LightingManager._offset = newOffset; this.updateLighting(); LevelLighting.moon = moon; LightingManager.isCycled = (LightingManager.day > LevelLighting.bias); LightingManager.isFullMoon = (LightingManager.isCycled && LevelLighting.moon == 2); if (LightingManager.onDayNightUpdated != null) { LightingManager.onDayNightUpdated(LightingManager.isDaytime); } LevelLighting.wind = (float)wind * 2f; LevelLighting.rainyness = (ELightingRain)rain; LevelLighting.snowyness = (ELightingSnow)snow; if (LightingManager.onRainUpdated != null) { LightingManager.onRainUpdated(LevelLighting.rainyness); } if (LightingManager.onSnowUpdated != null) { LightingManager.onSnowUpdated(LevelLighting.snowyness); } Level.isLoadingLighting = false; } }
public void tellLightingSnow(CSteamID steamID, byte newSnow) { if (base.channel.checkServer(steamID)) { LevelLighting.snowyness = (ELightingSnow)newSnow; if (LightingManager.onSnowUpdated != null) { LightingManager.onSnowUpdated(LevelLighting.snowyness); } } }