Class WireInput
Inheritance
System.Object
WireInput
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
public class WireInput : WireConnection, IController, IViewController, IHasUniversalID, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions
Properties
Declaration
public Flow AvailableFlow { get; }
Property Value
Declaration
public Func<Type, float> CanReceive { get; }
Property Value
Type |
Description |
System.Func<System.Type, System.Single> |
|
Declaration
public WireInput.OnReceiveHandler OnReceive { get; }
Property Value
Methods
Declaration
public static WireInput CreatePipeInput(WorldObject owner, string name, Ray posDir, Func<Type, float> canReceive, WireInput.OnReceiveHandler onReceive)
Parameters
Returns
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
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
Declaration
protected override void RecalculateFlows(double timePassed)
Parameters
Type |
Name |
Description |
System.Double |
timePassed |
|
Overrides
Declaration
public float Receive(PipePayload input)
Parameters
Returns
Type |
Description |
System.Single |
|
Declaration
public static float ReceiveSignalOnly(Type itemType)
Parameters
Type |
Name |
Description |
System.Type |
itemType |
|
Returns
Type |
Description |
System.Single |
|
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods