Show / Hide Table of Contents

Class WorldLayerManager

Inheritance
System.Object
WorldLayerManager
Implements
IThreadedPlugin
IShutdownablePlugin
IServerPlugin
IDisplayablePlugin
IGUIPlugin
IHasDisplayTabs
IDisplayTab
ICustomUIPlugin
ISaveablePlugin
IInitializablePlugin
IController
IViewController
IHasUniversalID
Namespace: Eco.Simulation.WorldLayers
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
Type Description
DebrisCache

HeightLayer

Declaration
public WorldLayer HeightLayer
Field Value
Type Description
WorldLayer

Initializing

Declaration
public WorldLayerManager.LayerInitOperation Initializing
Field Value
Type Description
WorldLayerManager.LayerInitOperation

LogTicks

Declaration
public bool LogTicks
Field Value
Type Description
System.Boolean

NameToSettings

Declaration
public Dictionary<string, WorldLayerSettings> NameToSettings
Field Value
Type Description
System.Collections.Generic.Dictionary<System.String, WorldLayerSettings>

OnWorldLayerQueried

Declaration
public readonly ThreadSafeAction<INetClient, WorldLayer> OnWorldLayerQueried
Field Value
Type Description
ThreadSafeAction<INetClient, WorldLayer>

TailingsCache

Declaration
public TailingsCache TailingsCache
Field Value
Type Description
TailingsCache

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

BiomeLayers

Declaration
public Dictionary<string, WorldLayer> BiomeLayers { get; }
Property Value
Type Description
System.Collections.Generic.Dictionary<System.String, WorldLayer>

Climate

Declaration
public ClimateState Climate { get; }
Property Value
Type Description
ClimateState

ClimateSim

Declaration
public ClimateSim ClimateSim { get; }
Property Value
Type Description
ClimateSim

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
Type Description
ThreadSafeAction

OnTicked

Declaration
public ThreadSafeAction OnTicked { get; }
Property Value
Type Description
ThreadSafeAction

Settings

Declaration
public IEnumerable<WorldLayerSettings> Settings { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<WorldLayerSettings>

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
Type Description
System.Collections.Generic.Dictionary<Species, SpeciesLayer>

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
Type Name Description
WorldLayer layer

DescribePos(Vector2i)

Declaration
public LocString DescribePos(Vector2i pos)
Parameters
Type Name Description
Vector2i pos
Returns
Type Description
LocString

DoWork()

Declaration
public TimeSpan DoWork()
Returns
Type Description
System.TimeSpan

ForceTick()

Declaration
public void ForceTick()

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
Type Description
WorldLayer

GetStatus()

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

Initialize(TimedTask)

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

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
Type Name Description
Vector2i pos
Returns
Type Description
System.Single

Regenerate()

Declaration
public void Regenerate()

RemoveLayer(WorldLayer)

Declaration
public void RemoveLayer(WorldLayer layer)
Parameters
Type Name Description
WorldLayer layer

RemoveLayer(String)

Declaration
public void RemoveLayer(string layerName)
Parameters
Type Name Description
System.String layerName

Reset()

Declaration
public void Reset()

Run()

Declaration
public void Run()

SaveAll()

Declaration
public void SaveAll()

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
public void Tick()

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
Type Name Description
WorldLayerSettings layer
System.Boolean value

Implements

IThreadedPlugin
IShutdownablePlugin
IServerPlugin
IDisplayablePlugin
IGUIPlugin
IHasDisplayTabs
IDisplayTab
ICustomUIPlugin
ISaveablePlugin
IInitializablePlugin
IController
IViewController
IHasUniversalID
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾