Class WeatherManager
Inheritance
System.Object
WeatherManager
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
public sealed class WeatherManager : Singleton<WeatherManager>, IController, IViewController, IHasUniversalID, INotifyPropertyChanged, IEditablePluginData, ISimplePluginData, IStorage, ISerializable
Constructors
WeatherManager()
Declaration
Properties
Active
Declaration
public bool Active { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Config
Declaration
public WeatherConfig Config { get; }
Property Value
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
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
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
Initialize(TimedTask)
Declaration
public void Initialize(TimedTask timer)
Parameters
OnCreate()
Declaration
OnEditObjectChanged(Object, String)
Declaration
public void OnEditObjectChanged(object o, string param)
Parameters
| Type |
Name |
Description |
| System.Object |
o |
|
| System.String |
param |
|
OnLoaded()
Declaration
RandomizeWeather()
Declaration
public void RandomizeWeather()
Run()
Declaration
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
System.ComponentModel.INotifyPropertyChanged
Extension Methods