Show / Hide Table of Contents

Class WeatherManager

Inheritance
System.Object
WeatherManager
Implements
IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
IEditablePluginData
ISimplePluginData
IStorage
ISerializable
Namespace: Eco.Gameplay.Weather
Assembly: Eco.Gameplay.dll
Syntax
public sealed class WeatherManager : Singleton<WeatherManager>, IController, IViewController, IHasUniversalID, INotifyPropertyChanged, IEditablePluginData, ISimplePluginData, IStorage, ISerializable

Constructors

WeatherManager()

Declaration
public WeatherManager()

Properties

Active

Declaration
public bool Active { get; set; }
Property Value
Type Description
System.Boolean

Config

Declaration
public WeatherConfig Config { get; }
Property Value
Type Description
WeatherConfig

ControllerID

Declaration
public ref int ControllerID { get; }
Property Value
Type Description
System.Int32

EditObject

Declaration
public object EditObject { get; set; }
Property Value
Type Description
System.Object

EndTime

Declaration
public double EndTime { get; set; }
Property Value
Type Description
System.Double

ID

Declaration
public int ID { get; }
Property Value
Type Description
System.Int32

NetObjectCreationRealtime

Declaration
public double NetObjectCreationRealtime { get; set; }
Property Value
Type Description
System.Double

StartTime

Declaration
public double StartTime { get; set; }
Property Value
Type Description
System.Double

TimeRemaining

Declaration
public double TimeRemaining { get; }
Property Value
Type Description
System.Double

Weather

Declaration
public WeatherEventType Weather { get; set; }
Property Value
Type Description
WeatherEventType

WeatherSwitchEnabled

Declaration
public bool WeatherSwitchEnabled { get; }
Property Value
Type Description
System.Boolean

Methods

GetCategory()

Declaration
public string GetCategory()
Returns
Type Description
System.String

GetDisplayText()

Declaration
public string GetDisplayText()
Returns
Type Description
System.String

GetStatus()

Declaration
public string GetStatus()
Returns
Type Description
System.String

GetWeatherStatus()

Declaration
public LocString GetWeatherStatus()
Returns
Type Description
LocString

Initialize(TimedTask)

Declaration
public void Initialize(TimedTask timer)
Parameters
Type Name Description
TimedTask timer

OnCreate()

Declaration
public void OnCreate()

OnEditObjectChanged(Object, String)

Declaration
public void OnEditObjectChanged(object o, string param)
Parameters
Type Name Description
System.Object o
System.String param

OnLoaded()

Declaration
public void OnLoaded()

RandomizeWeather()

Sets random weather

Declaration
public void RandomizeWeather()

Run()

Declaration
public void Run()

SetWeather(WeatherEventType, Double)

Sets requested weather. Duration can be overriden with durationSeconds parameter

Declaration
public void SetWeather(WeatherEventType weatherEvent, double durationSeconds = -1)
Parameters
Type Name Description
WeatherEventType weatherEvent
System.Double durationSeconds

SetWeatherSwitch(Boolean)

Sets the ability to switch weather by all sources. Useful to block it permanently like after meteor atmosphere destroyed, etc

Declaration
public void SetWeatherSwitch(bool value)
Parameters
Type Name Description
System.Boolean value

ShutdownAsync()

Declaration
public Task ShutdownAsync()
Returns
Type Description
System.Threading.Tasks.Task

Events

PropertyChanged

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type Description
System.ComponentModel.PropertyChangedEventHandler

Implements

IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
IEditablePluginData
ISimplePluginData
IStorage
ISerializable

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾