Game.UI.InGame.WeatherType
Assembly: Assembly-CSharp.dll
Namespace: Game.UI.InGame
Type: public enum
Base: System.Enum (underlying type: System.Int32)
Summary:
Enumeration of the in-game weather categories used by the UI and game systems to represent current weather conditions (cloud coverage and precipitation types). Values are ordered starting at 0.
Fields
-
Clear
Represents clear skies (no clouds or precipitation). -
Few
Represents few clouds (light cloud coverage). -
Scattered
Represents scattered clouds. -
Broken
Represents broken clouds (significant cloud coverage, but not full overcast). -
Overcast
Represents full cloud cover (overcast). -
Rain
Represents rainy conditions (precipitation: rain). -
Snow
Represents snowy conditions (precipitation: snow). -
Hail
Represents hail conditions (solid precipitation, typically short bursts). -
Storm
Represents stormy conditions (heavy precipitation and/or strong wind).
Properties
- This enum type exposes no properties.
Constructors
- No explicit constructors are defined. Enums use the default underlying integral type constructor (System.Int32). You can cast integers to WeatherType, e.g., (WeatherType)2 == WeatherType.Scattered.
Methods
- This enum defines no custom methods. Standard System.Enum methods are available (ToString(), HasFlag(), GetValues(), etc.).
Usage Example
// Example usage in a mod or UI code.
// Check current weather and respond accordingly.
WeatherType currentWeather = WeatherType.Rain;
switch (currentWeather)
{
case WeatherType.Clear:
// Clear-sky handling
break;
case WeatherType.Rain:
case WeatherType.Storm:
// Enable rain/storm effects in UI or particle systems
break;
case WeatherType.Snow:
// Enable snow effects
break;
default:
// Other cloud/precipitation handling
break;
}