Table of Contents

Class WeatherExposureTerm

Namespace
FishMMO.Shared.Weather
Assembly
FishMMO.Shared.dll

One input's contribution to an exposure state.

[Serializable]
public class WeatherExposureTerm
Inheritance
WeatherExposureTerm
Inherited Members

Fields

Channel

[Tooltip("Which weather channel to read. Ignored unless Input is Channel.")]
public WeatherChannel Channel

Field Value

WeatherChannel

Full

[Tooltip("The input's value at which this term contributes all of its weight.")]
[Range(0, 1)]
public float Full

Field Value

float

FullWindSpeedMetersPerSecond

The wind speed, in m/s, that AirWindSpeed reads as 1.

public const float FullWindSpeedMetersPerSecond = 30

Field Value

float

Remarks

The same 30 m/s WindSpeed is normalised against, so a term reading either one is on the same scale.

Input

[Tooltip("What this term reads: a weather channel, or one of the driver's physical air properties.")]
public WeatherExposureInput Input

Field Value

WeatherExposureInput

Onset

[Tooltip("The input's value below which this term contributes nothing.")]
[Range(0, 1)]
public float Onset

Field Value

float

Weight

[Tooltip("How much of the drive this term is worth, against the other terms.")]
[Range(0, 4)]
public float Weight

Field Value

float

Methods

Evaluate(in WeatherFrame, in WeatherAir)

How much this term drives the state, 0..Weight.

public float Evaluate(in WeatherFrame frame, in WeatherAir air)

Parameters

frame WeatherFrame
air WeatherAir

Returns

float

Read(in WeatherFrame, in WeatherAir)

This term's input, normalised to 0..1.

public float Read(in WeatherFrame frame, in WeatherAir air)

Parameters

frame WeatherFrame
air WeatherAir

Returns

float