Class WireConnection
Inheritance
System.Object
WireConnection
Implements
System.ComponentModel.INotifyPropertyChanged
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
Properties
AverageFlow
Declaration
public ItemStack AverageFlow { get; }
Property Value
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
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
Ray
Declaration
Property Value
ShortDesc
Declaration
public string ShortDesc { get; }
Property Value
Type |
Description |
System.String |
|
Subscriptions
Declaration
public ref ThreadSafeSubscriptions Subscriptions { get; }
Property Value
Declaration
[NewTooltip]
public virtual LocString WireConnectionTooltip { get; }
Property Value
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
AddWires(IEnumerable<WireConnection>)
Declaration
public void AddWires(IEnumerable<WireConnection> wires)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<WireConnection> |
wires |
|
ClearWires()
Declaration
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
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
System.ComponentModel.INotifyPropertyChanged
Extension Methods