Class WorldLayerManager
Inheritance
System.Object
WorldLayerManager
Assembly: Eco.Simulation.dll
Syntax
public sealed class WorldLayerManager : Singleton<WorldLayerManager>, IThreadedPlugin, IShutdownablePlugin, IServerPlugin, IDisplayablePlugin, IGUIPlugin, IHasDisplayTabs, IDisplayTab, ICustomUIPlugin, ISaveablePlugin, IInitializablePlugin, IController, IViewController, IHasUniversalID
Constructors
WorldLayerManager()
Declaration
public WorldLayerManager()
Fields
DebrisCache
Declaration
public DebrisCache DebrisCache
Field Value
HeightLayer
Declaration
public WorldLayer HeightLayer
Field Value
Initializing
Declaration
public WorldLayerManager.LayerInitOperation Initializing
Field Value
LogTicks
Declaration
Field Value
Type |
Description |
System.Boolean |
|
NameToSettings
Declaration
public Dictionary<string, WorldLayerSettings> NameToSettings
Field Value
OnWorldLayerQueried
Declaration
public readonly ThreadSafeAction<INetClient, WorldLayer> OnWorldLayerQueried
Field Value
TailingsCache
Declaration
public TailingsCache TailingsCache
Field Value
TypeToSettings
Declaration
public Dictionary<Type, List<WorldLayerSettings>> TypeToSettings
Field Value
Type |
Description |
System.Collections.Generic.Dictionary<System.Type, System.Collections.Generic.List<WorldLayerSettings>> |
|
WorldLayerTickTime
Declaration
public double WorldLayerTickTime
Field Value
Type |
Description |
System.Double |
|
Properties
Climate
Declaration
public ClimateState Climate { get; }
Property Value
ClimateSim
Declaration
public ClimateSim ClimateSim { get; }
Property Value
DaysPerTick
Declaration
public double DaysPerTick { get; }
Property Value
Type |
Description |
System.Double |
|
DesiredTicks
Declaration
public int DesiredTicks { get; }
Property Value
Type |
Description |
System.Int32 |
|
Enabled
Declaration
public bool Enabled { get; }
Property Value
Type |
Description |
System.Boolean |
|
FastForwardTicking
Declaration
public bool FastForwardTicking { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
LastTickedRealTime
Declaration
public double LastTickedRealTime { get; }
Property Value
Type |
Description |
System.Double |
|
LastTickTime
Declaration
public double LastTickTime { get; }
Property Value
Type |
Description |
System.Double |
|
Layers
Declaration
public IEnumerable<WorldLayer> Layers { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<WorldLayer> |
|
NextTick
Declaration
public double NextTick { get; }
Property Value
Type |
Description |
System.Double |
|
OnInited
Declaration
public ThreadSafeAction OnInited { get; }
Property Value
OnTicked
Declaration
public ThreadSafeAction OnTicked { get; }
Property Value
Settings
Declaration
public IEnumerable<WorldLayerSettings> Settings { get; }
Property Value
SortedDisplayLayers
Declaration
public IEnumerable<WorldLayer> SortedDisplayLayers { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<WorldLayer> |
|
SpeciesToLayers
Declaration
public Dictionary<Species, SpeciesLayer> SpeciesToLayers { get; }
Property Value
Ticks
Declaration
public int Ticks { get; }
Property Value
Type |
Description |
System.Int32 |
|
VisibleLayers
Declaration
public Dictionary<string, WorldLayer> VisibleLayers { get; }
Property Value
Type |
Description |
System.Collections.Generic.Dictionary<System.String, WorldLayer> |
|
WebLayersDirty
Special flag to recache web layers. For performance reasons.
Declaration
public bool WebLayersDirty { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
AddLayer(WorldLayer)
Declaration
public void AddLayer(WorldLayer layer)
Parameters
DescribePos(Vector2i)
Declaration
public LocString DescribePos(Vector2i pos)
Parameters
Returns
DoWork()
Declaration
Returns
Type |
Description |
System.TimeSpan |
|
ForceTick()
Declaration
GetCategory()
Declaration
public string GetCategory()
Returns
Type |
Description |
System.String |
|
GetCustomUIControl()
Declaration
public object GetCustomUIControl()
Returns
Type |
Description |
System.Object |
|
GetCustomUIName()
Declaration
public string GetCustomUIName()
Returns
Type |
Description |
System.String |
|
GetDisplayText()
Declaration
public string GetDisplayText()
Returns
Type |
Description |
System.String |
|
GetLayer(String)
Declaration
public WorldLayer GetLayer(string layerName)
Parameters
Type |
Name |
Description |
System.String |
layerName |
|
Returns
GetStatus()
Declaration
public string GetStatus()
Returns
Type |
Description |
System.String |
|
Initialize(TimedTask)
Declaration
public void Initialize(TimedTask timer)
Parameters
NotificateLayerPick(INetClient, String)
Declaration
public void NotificateLayerPick(INetClient client, string layerName)
Parameters
Type |
Name |
Description |
INetClient |
client |
|
System.String |
layerName |
|
PercentHeight(Vector2i)
Declaration
public float PercentHeight(Vector2i pos)
Parameters
Returns
Type |
Description |
System.Single |
|
Regenerate()
Declaration
RemoveLayer(WorldLayer)
Declaration
public void RemoveLayer(WorldLayer layer)
Parameters
RemoveLayer(String)
Declaration
public void RemoveLayer(string layerName)
Parameters
Type |
Name |
Description |
System.String |
layerName |
|
Reset()
Declaration
Run()
Declaration
SaveAll()
Declaration
SetLayerPushPullActive(String, Boolean)
Sets the PushPullActive state for a layer, enabling or disabling its activity.
Declaration
public void SetLayerPushPullActive(string layerName, bool pushActive)
Parameters
Type |
Name |
Description |
System.String |
layerName |
|
System.Boolean |
pushActive |
|
ShutdownAsync()
Declaration
public Task ShutdownAsync()
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Tick()
Declaration
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
UpdateLayerVisibility(WorldLayer, Boolean)
Sets layer visibility and triggers proper on changed events. So it will be reflected to web and client
Declaration
public void UpdateLayerVisibility(WorldLayer layer, bool value)
Parameters
Type |
Name |
Description |
WorldLayer |
layer |
|
System.Boolean |
value |
|
UpdateLayerVisibility(WorldLayerSettings, Boolean)
Declaration
public void UpdateLayerVisibility(WorldLayerSettings layer, bool value)
Parameters
Implements