Class WireOutput
Inheritance
System.Object
WireOutput
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
public class WireOutput : WireConnection, IController, IViewController, IHasUniversalID, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions
Constructors
WireOutput(WorldObject, Type, Ray, String)
Declaration
public WireOutput(WorldObject owner, Type connectionType, Ray posDirLocal, string name = "Output")
Parameters
Type |
Name |
Description |
WorldObject |
owner |
|
System.Type |
connectionType |
|
Ray |
posDirLocal |
|
System.String |
name |
|
WireOutput(WorldObject, Type, String)
Declaration
public WireOutput(WorldObject owner, Type connectionType, string name = "Output")
Parameters
Type |
Name |
Description |
WorldObject |
owner |
|
System.Type |
connectionType |
|
System.String |
name |
|
Properties
CachedChunks
Declaration
public ThreadSafeHashSet<Vector3i> CachedChunks { get; }
Property Value
CachedOpenEnds
Declaration
public ThreadSafeList<Ray> CachedOpenEnds { get; }
Property Value
HorizontalLength
Declaration
public int HorizontalLength { get; }
Property Value
Type |
Description |
System.Int32 |
|
TotalLength
Declaration
public int TotalLength { get; }
Property Value
Type |
Description |
System.Int32 |
|
VerticalLength
Declaration
public int VerticalLength { get; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public override LocString WireConnectionTooltip { get; }
Property Value
Overrides
Methods
Destroy()
Declaration
MaxCanReceive(Type)
Declaration
public float MaxCanReceive(Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Single |
|
SendItem(PipePayload, Boolean)
Declaration
public float SendItem(PipePayload payload, bool divideAmongOutputs = true)
Parameters
Type |
Name |
Description |
PipePayload |
payload |
|
System.Boolean |
divideAmongOutputs |
|
Returns
Type |
Description |
System.Single |
|
SendItemConsume(ItemStack, Int32, Single)
Declaration
public void SendItemConsume(ItemStack stack, int maxToSend, float time)
Parameters
Type |
Name |
Description |
ItemStack |
stack |
|
System.Int32 |
maxToSend |
|
System.Single |
time |
|
SendSignal(Single)
Declaration
public void SendSignal(float val)
Parameters
Type |
Name |
Description |
System.Single |
val |
|
StopSendingItems()
Declaration
public void StopSendingItems()
UpdateIfNeeded()
Declaration
public override void UpdateIfNeeded()
Overrides
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods