Show / Hide Table of Contents

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
Object
Object
Component
Behaviour
MonoBehaviour
WeatherManager
Namespace: DaggerfallWorkshop.Game
Assembly: Assembly-CSharp.dll
Syntax
public class WeatherManager : MonoBehaviour

Fields

| Improve this Doc View Source

currentOutdoorFogSettings

Declaration
public WeatherManager.FogSettings currentOutdoorFogSettings
Field Value
Type Description
WeatherManager.FogSettings
| Improve this Doc View Source

DaggerfallSky

Declaration
public DaggerfallSky DaggerfallSky
Field Value
Type Description
DaggerfallSky
| Improve this Doc View Source

DungeonFogSettings

Declaration
public WeatherManager.FogSettings DungeonFogSettings
Field Value
Type Description
WeatherManager.FogSettings
| Improve this Doc View Source

HeavyFogSettings

Declaration
public WeatherManager.FogSettings HeavyFogSettings
Field Value
Type Description
WeatherManager.FogSettings
| Improve this Doc View Source

InteriorFogSettings

Declaration
public WeatherManager.FogSettings InteriorFogSettings
Field Value
Type Description
WeatherManager.FogSettings
| Improve this Doc View Source

OvercastFogSettings

Declaration
public WeatherManager.FogSettings OvercastFogSettings
Field Value
Type Description
WeatherManager.FogSettings
| Improve this Doc View Source

OvercastShadowStrength

Declaration
[Range(0F, 1F)]
public float OvercastShadowStrength
Field Value
Type Description
Single
| Improve this Doc View Source

OvercastSunlightScale

Declaration
[Range(0F, 1F)]
public float OvercastSunlightScale
Field Value
Type Description
Single
| Improve this Doc View Source

PlayerWeather

Declaration
public PlayerWeather PlayerWeather
Field Value
Type Description
PlayerWeather
| Improve this Doc View Source

RainShadowStrength

Declaration
[Range(0F, 1F)]
public float RainShadowStrength
Field Value
Type Description
Single
| Improve this Doc View Source

RainSunlightScale

Declaration
[Range(0F, 1F)]
public float RainSunlightScale
Field Value
Type Description
Single
| Improve this Doc View Source

RainyFogSettings

Declaration
public WeatherManager.FogSettings RainyFogSettings
Field Value
Type Description
WeatherManager.FogSettings
| Improve this Doc View Source

SnowShadowStrength

Declaration
[Range(0F, 1F)]
public float SnowShadowStrength
Field Value
Type Description
Single
| Improve this Doc View Source

SnowSunlightScale

Declaration
[Range(0F, 1F)]
public float SnowSunlightScale
Field Value
Type Description
Single
| Improve this Doc View Source

SnowyFogSettings

Declaration
public WeatherManager.FogSettings SnowyFogSettings
Field Value
Type Description
WeatherManager.FogSettings
| Improve this Doc View Source

StormShadowStrength

Declaration
[Range(0F, 1F)]
public float StormShadowStrength
Field Value
Type Description
Single
| Improve this Doc View Source

StormSunlightScale

Declaration
[Range(0F, 1F)]
public float StormSunlightScale
Field Value
Type Description
Single
| Improve this Doc View Source

SunlightManager

Declaration
public SunlightManager SunlightManager
Field Value
Type Description
SunlightManager
| Improve this Doc View Source

SunnyFogSettings

Declaration
public WeatherManager.FogSettings SunnyFogSettings
Field Value
Type Description
WeatherManager.FogSettings
| Improve this Doc View Source

WeatherEffects

Declaration
public AmbientEffectsPlayer WeatherEffects
Field Value
Type Description
AmbientEffectsPlayer
| Improve this Doc View Source

WinterShadowStrength

Declaration
[Range(0F, 1F)]
public float WinterShadowStrength
Field Value
Type Description
Single
| Improve this Doc View Source

WinterSunlightScale

Declaration
[Range(0F, 1F)]
public float WinterSunlightScale
Field Value
Type Description
Single

Properties

| Improve this Doc View Source

IsOvercast

Declaration
public bool IsOvercast { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

IsRaining

Declaration
public bool IsRaining { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

IsSnowing

Declaration
public bool IsSnowing { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

IsStorming

Declaration
public bool IsStorming { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

UpdateWeatherFromClimateArray

Declaration
public bool UpdateWeatherFromClimateArray { get; set; }
Property Value
Type Description
Boolean

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
Type Description
Boolean
| 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
Type Name Description
WeatherManager.FogSettings fogSettings
Boolean isInteriorOrDungeonFog
| 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
Type Name Description
WeatherType next
| 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
Type Description
WeatherManager.OnWeatherChangeHandler

Extension Methods

MBExtensions.Invoke(MonoBehaviour, Action, Single)
MBExtensions.Invoke<T>(MonoBehaviour, Action<T>, T, Single)
MBExtensions.Invoke<T1, T2>(MonoBehaviour, Action<T1, T2>, T1, T2, Single)
MBExtensions.Invoke<T1, T2, T3>(MonoBehaviour, Action<T1, T2, T3>, T1, T2, T3, Single)
MBExtensions.Invoke<T1, T2, T3, T4>(MonoBehaviour, Action<T1, T2, T3, T4>, T1, T2, T3, T4, Single)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX