Show / Hide Table of Contents

Class WireConnection

Inheritance
System.Object
WireConnection
WireInput
WireOutput
Implements
IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
IThreadSafeSubscriptions
ISubscriptions<ThreadSafeSubscriptions>
ISubscriptions
Namespace: Eco.Gameplay.Wires
Assembly: Eco.Gameplay.dll
Syntax
public class WireConnection : Object, IController, IViewController, IHasUniversalID, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions

Constructors

WireConnection(WorldObject, String, Ray, Type)

Declaration
protected WireConnection(WorldObject owner, string name, Ray inputPosDirLocal, Type connectionType)
Parameters
Type Name Description
WorldObject owner
System.String name
Ray inputPosDirLocal
System.Type connectionType

Fields

MinFlow

Declaration
public const float MinFlow = 0.001F
Field Value
Type Description
System.Single

OwnerRenamedEvent

Declaration
public static readonly ThreadSafeAction<WireConnection> OwnerRenamedEvent
Field Value
Type Description
ThreadSafeAction<WireConnection>

Properties

AverageFlow

Declaration
public ItemStack AverageFlow { get; }
Property Value
Type Description
ItemStack

ConnectionBlockType

Declaration
public Type ConnectionBlockType { get; }
Property Value
Type Description
System.Type

ControllerID

Declaration
public ref int ControllerID { get; }
Property Value
Type Description
System.Int32

Flow

Declaration
protected Flow Flow { get; }
Property Value
Type Description
Flow

IsDisconnected

Declaration
public bool IsDisconnected { get; }
Property Value
Type Description
System.Boolean

Name

Declaration
public string Name { get; protected set; }
Property Value
Type Description
System.String

Owner

Declaration
public WorldObject Owner { get; protected set; }
Property Value
Type Description
WorldObject

Ray

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

ShortDesc

Declaration
public string ShortDesc { get; }
Property Value
Type Description
System.String

Subscriptions

Declaration
public ref ThreadSafeSubscriptions Subscriptions { get; }
Property Value
Type Description
ThreadSafeSubscriptions

WireConnectionTooltip

Declaration
[NewTooltip]
public virtual LocString WireConnectionTooltip { get; }
Property Value
Type Description
LocString

Wires

Declaration
protected IEnumerable<WireConnection> Wires { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<WireConnection>

Methods

AddWire(WireConnection)

Declaration
public void AddWire(WireConnection wire)
Parameters
Type Name Description
WireConnection wire

AddWires(IEnumerable<WireConnection>)

Declaration
public void AddWires(IEnumerable<WireConnection> wires)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<WireConnection> wires

ClearWires()

Declaration
public void ClearWires()

Finalize()

Declaration
protected override void Finalize()

RecalculateFlows(Double)

Declaration
protected virtual void RecalculateFlows(double timePassed)
Parameters
Type Name Description
System.Double timePassed

RemoveWire(WireConnection, Boolean)

Declaration
public void RemoveWire(WireConnection wire, bool removeReverse = true)
Parameters
Type Name Description
WireConnection wire
System.Boolean removeReverse

ToString()

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

TrackFlow(PipePayload)

Declaration
public void TrackFlow(PipePayload payload)
Parameters
Type Name Description
PipePayload payload

UpdateIfNeeded()

Declaration
public virtual void UpdateIfNeeded()

UpdateRayPosition(Ray)

Declaration
public void UpdateRayPosition(Ray inputPosDirLocal)
Parameters
Type Name Description
Ray inputPosDirLocal

UpdateStatus(Double)

Declaration
public void UpdateStatus(double deltaTime)
Parameters
Type Name Description
System.Double deltaTime

Events

OnConnectionChange

Declaration
public event Action OnConnectionChange
Event Type
Type Description
System.Action

PropertyChanged

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type Description
System.ComponentModel.PropertyChangedEventHandler

Implements

IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
IThreadSafeSubscriptions
ISubscriptions<TSubscriptionsList>
ISubscriptions

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
MiscTooltipLibrary.WireConnectionTooltipTitle(WireConnection)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾