Show / Hide Table of Contents

Class PowerGridManager

A central manager for all power grids. It is responsible for handling changes in power grid structure and for ticking all power grids.

Inheritance
System.Object
PowerGridManager
Implements
IThreadedPlugin
IShutdownablePlugin
IServerPlugin
IDisplayablePlugin
IGUIPlugin
IHasDisplayTabs
IDisplayTab
Namespace: Eco.Gameplay.PowerGrids
Assembly: Eco.Gameplay.dll
Syntax
public class PowerGridManager : Singleton<PowerGridManager>, IThreadedPlugin, IShutdownablePlugin, IServerPlugin, IDisplayablePlugin, IGUIPlugin, IHasDisplayTabs, IDisplayTab

Constructors

PowerGridManager()

Declaration
public PowerGridManager()

Properties

OnQueuedEvent

Declaration
public static AutoResetEvent OnQueuedEvent { get; }
Property Value
Type Description
System.Threading.AutoResetEvent

PowerGrids

Declaration
public ConcurrentHashSet<PowerGrid> PowerGrids { get; }
Property Value
Type Description
ConcurrentCollections.ConcurrentHashSet<PowerGrid>

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

QueueComponentAdded(PowerGridComponent)

Declaration
public static void QueueComponentAdded(PowerGridComponent component)
Parameters
Type Name Description
PowerGridComponent component

QueueComponentRemoved(PowerGridComponent)

Declaration
public static void QueueComponentRemoved(PowerGridComponent component)
Parameters
Type Name Description
PowerGridComponent component

Run()

Declaration
public void Run()

ShutdownAsync()

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

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String

Implements

IThreadedPlugin
IShutdownablePlugin
IServerPlugin
IDisplayablePlugin
IGUIPlugin
IHasDisplayTabs
IDisplayTab

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
☀
☾