Show / Hide Table of Contents

Class BaseNetConnectorComponent<TNetType>

Inheritance
System.Object
BaseNetConnectorComponent<TNetType>
BaseApcNetComponent
BasePowerNetComponent
PowerConsumerComponent
PowerSupplierComponent
Implements
IBaseNetConnectorComponent<TNetType>
Namespace: Content.Server.Power.Components
Assembly: Content.Server.dll
Syntax
public abstract class BaseNetConnectorComponent<TNetType> : Component, IBaseNetConnectorComponent<TNetType> where TNetType : class
Type Parameters
Name Description
TNetType

Properties

| Improve this Doc View Source

NeedsNet

Declaration
public bool NeedsNet { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Net

Declaration
public TNetType Net { get; set; }
Property Value
Type Description
TNetType
| Improve this Doc View Source

NodeId

Declaration
public string? NodeId { get; set; }
Property Value
Type Description
System.Nullable<System.String>
| Improve this Doc View Source

Voltage

Declaration
public Voltage Voltage { get; set; }
Property Value
Type Description
Voltage

Methods

| Improve this Doc View Source

AddSelfToNet(TNetType)

Declaration
protected abstract void AddSelfToNet(TNetType net)
Parameters
Type Name Description
TNetType net
| Improve this Doc View Source

ClearNet()

Declaration
public void ClearNet()
| Improve this Doc View Source

OnRemove()

Declaration
protected override void OnRemove()
| Improve this Doc View Source

RemoveSelfFromNet(TNetType)

Declaration
protected abstract void RemoveSelfFromNet(TNetType net)
Parameters
Type Name Description
TNetType net
| Improve this Doc View Source

TryFindAndSetNet()

Declaration
public void TryFindAndSetNet()

Implements

IBaseNetConnectorComponent<TNetType>
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾