Class WeatherManager
Helper component to assign weather settings across multiple components.
The logic for weather changes are based on the climate and weather table described in the Daggerfall Chronicles,
pg. 47. Plus some additional logic to handle more natural weather transitions.
TODO add smooth weather transitions
Inheritance
WeatherManager
Assembly: Assembly-CSharp.dll
Syntax
public class WeatherManager : MonoBehaviour
Fields
|
Improve this Doc
View Source
currentOutdoorFogSettings
Declaration
public WeatherManager.FogSettings currentOutdoorFogSettings
Field Value
|
Improve this Doc
View Source
DaggerfallSky
Declaration
public DaggerfallSky DaggerfallSky
Field Value
|
Improve this Doc
View Source
DungeonFogSettings
Declaration
public WeatherManager.FogSettings DungeonFogSettings
Field Value
|
Improve this Doc
View Source
HeavyFogSettings
Declaration
public WeatherManager.FogSettings HeavyFogSettings
Field Value
|
Improve this Doc
View Source
InteriorFogSettings
Declaration
public WeatherManager.FogSettings InteriorFogSettings
Field Value
|
Improve this Doc
View Source
OvercastFogSettings
Declaration
public WeatherManager.FogSettings OvercastFogSettings
Field Value
|
Improve this Doc
View Source
OvercastShadowStrength
Declaration
[Range(0F, 1F)]
public float OvercastShadowStrength
Field Value
|
Improve this Doc
View Source
OvercastSunlightScale
Declaration
[Range(0F, 1F)]
public float OvercastSunlightScale
Field Value
|
Improve this Doc
View Source
PlayerWeather
Declaration
public PlayerWeather PlayerWeather
Field Value
|
Improve this Doc
View Source
RainShadowStrength
Declaration
[Range(0F, 1F)]
public float RainShadowStrength
Field Value
|
Improve this Doc
View Source
RainSunlightScale
Declaration
[Range(0F, 1F)]
public float RainSunlightScale
Field Value
|
Improve this Doc
View Source
RainyFogSettings
Declaration
public WeatherManager.FogSettings RainyFogSettings
Field Value
|
Improve this Doc
View Source
SnowShadowStrength
Declaration
[Range(0F, 1F)]
public float SnowShadowStrength
Field Value
|
Improve this Doc
View Source
SnowSunlightScale
Declaration
[Range(0F, 1F)]
public float SnowSunlightScale
Field Value
|
Improve this Doc
View Source
SnowyFogSettings
Declaration
public WeatherManager.FogSettings SnowyFogSettings
Field Value
|
Improve this Doc
View Source
StormShadowStrength
Declaration
[Range(0F, 1F)]
public float StormShadowStrength
Field Value
|
Improve this Doc
View Source
StormSunlightScale
Declaration
[Range(0F, 1F)]
public float StormSunlightScale
Field Value
|
Improve this Doc
View Source
SunlightManager
Declaration
public SunlightManager SunlightManager
Field Value
|
Improve this Doc
View Source
SunnyFogSettings
Declaration
public WeatherManager.FogSettings SunnyFogSettings
Field Value
|
Improve this Doc
View Source
WeatherEffects
Declaration
public AmbientEffectsPlayer WeatherEffects
Field Value
|
Improve this Doc
View Source
WinterShadowStrength
Declaration
[Range(0F, 1F)]
public float WinterShadowStrength
Field Value
|
Improve this Doc
View Source
WinterSunlightScale
Declaration
[Range(0F, 1F)]
public float WinterSunlightScale
Field Value
Properties
|
Improve this Doc
View Source
IsOvercast
Declaration
public bool IsOvercast { get; }
Property Value
|
Improve this Doc
View Source
IsRaining
Declaration
public bool IsRaining { get; }
Property Value
|
Improve this Doc
View Source
IsSnowing
Declaration
public bool IsSnowing { get; }
Property Value
|
Improve this Doc
View Source
IsStorming
Declaration
public bool IsStorming { get; }
Property Value
|
Improve this Doc
View Source
UpdateWeatherFromClimateArray
Declaration
public bool UpdateWeatherFromClimateArray { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
ClearAllWeather()
Declaration
public void ClearAllWeather()
|
Improve this Doc
View Source
ClearOvercast()
Declaration
public void ClearOvercast()
|
Improve this Doc
View Source
IsSnowFreeClimate(Int32)
Declaration
public static bool IsSnowFreeClimate(int climateIndex)
Parameters
Type |
Name |
Description |
Int32 |
climateIndex |
|
Returns
|
Improve this Doc
View Source
SetClimateWeathers()
Declaration
public void SetClimateWeathers()
|
Improve this Doc
View Source
SetFog(WeatherManager.FogSettings, Boolean)
Declaration
public void SetFog(WeatherManager.FogSettings fogSettings, bool isInteriorOrDungeonFog = false)
Parameters
|
Improve this Doc
View Source
SetOvercast()
Declaration
public void SetOvercast()
|
Improve this Doc
View Source
SetRainOvercast()
Declaration
public void SetRainOvercast()
|
Improve this Doc
View Source
SetSnowOvercast()
Declaration
public void SetSnowOvercast()
|
Improve this Doc
View Source
SetWeather(WeatherType)
Declaration
public void SetWeather(WeatherType next)
Parameters
|
Improve this Doc
View Source
SetWeatherFromWeatherClimateArray()
Declaration
public void SetWeatherFromWeatherClimateArray()
|
Improve this Doc
View Source
StartRaining()
Declaration
public void StartRaining()
|
Improve this Doc
View Source
StartSnowing()
Declaration
public void StartSnowing()
|
Improve this Doc
View Source
StartStorming()
Declaration
public void StartStorming()
|
Improve this Doc
View Source
StopRaining()
Declaration
public void StopRaining()
|
Improve this Doc
View Source
StopSnowing()
Declaration
public void StopSnowing()
Events
|
Improve this Doc
View Source
OnWeatherChange
Declaration
public static event WeatherManager.OnWeatherChangeHandler OnWeatherChange
Event Type
Extension Methods
MBExtensions.Invoke<T1, T2, T3, T4>(MonoBehaviour, Action<T1, T2, T3, T4>, T1, T2, T3, T4, Single)