Show / Hide Table of Contents

Class WireInput

Inheritance
System.Object
WireConnection
WireInput
Implements
IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
IThreadSafeSubscriptions
ISubscriptions<ThreadSafeSubscriptions>
ISubscriptions
Inherited Members
WireConnection.MinFlow
WireConnection.OwnerRenamedEvent
WireConnection.Finalize()
WireConnection.AddWire(WireConnection)
WireConnection.AddWires(IEnumerable<WireConnection>)
WireConnection.RemoveWire(WireConnection, Boolean)
WireConnection.ClearWires()
WireConnection.TrackFlow(PipePayload)
WireConnection.UpdateStatus(Double)
WireConnection.ToString()
WireConnection.UpdateIfNeeded()
WireConnection.UpdateRayPosition(Ray)
WireConnection.Owner
WireConnection.Ray
WireConnection.Flow
WireConnection.ConnectionBlockType
WireConnection.Name
WireConnection.IsDisconnected
WireConnection.AverageFlow
WireConnection.Wires
WireConnection.WireConnectionTooltip
WireConnection.ShortDesc
WireConnection.Subscriptions
WireConnection.ControllerID
WireConnection.OnConnectionChange
WireConnection.PropertyChanged
Namespace: Eco.Gameplay.Wires
Assembly: Eco.Gameplay.dll
Syntax
public class WireInput : WireConnection, IController, IViewController, IHasUniversalID, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions

Properties

AvailableFlow

Declaration
public Flow AvailableFlow { get; }
Property Value
Type Description
Flow

CanReceive

Declaration
public Func<Type, float> CanReceive { get; }
Property Value
Type Description
System.Func<System.Type, System.Single>

OnReceive

Declaration
public WireInput.OnReceiveHandler OnReceive { get; }
Property Value
Type Description
WireInput.OnReceiveHandler

Methods

CreatePipeInput(WorldObject, String, Ray, Func<Type, Single>, WireInput.OnReceiveHandler)

Declaration
public static WireInput CreatePipeInput(WorldObject owner, string name, Ray posDir, Func<Type, float> canReceive, WireInput.OnReceiveHandler onReceive)
Parameters
Type Name Description
WorldObject owner
System.String name
Ray posDir
System.Func<System.Type, System.Single> canReceive
WireInput.OnReceiveHandler onReceive
Returns
Type Description
WireInput

CreateSignalInput(WorldObject, Ray, String, Action<Int32>)

Declaration
public static WireInput CreateSignalInput(WorldObject owner, Ray posDir, string name, Action<int> onReceive)
Parameters
Type Name Description
WorldObject owner
Ray posDir
System.String name
System.Action<System.Int32> onReceive
Returns
Type Description
WireInput

CreateSignalInput(WorldObject, String, Action<Int32>)

Declaration
public static WireInput CreateSignalInput(WorldObject owner, string name, Action<int> onReceive)
Parameters
Type Name Description
WorldObject owner
System.String name
System.Action<System.Int32> onReceive
Returns
Type Description
WireInput

RecalculateFlows(Double)

Declaration
protected override void RecalculateFlows(double timePassed)
Parameters
Type Name Description
System.Double timePassed
Overrides
WireConnection.RecalculateFlows(Double)

Receive(PipePayload)

Declaration
public float Receive(PipePayload input)
Parameters
Type Name Description
PipePayload input
Returns
Type Description
System.Single

ReceiveSignalOnly(Type)

Declaration
public static float ReceiveSignalOnly(Type itemType)
Parameters
Type Name Description
System.Type itemType
Returns
Type Description
System.Single

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