Class LiquidConsumerComponent
Inheritance
System.Object
LiquidConsumerComponent
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
public class LiquidConsumerComponent : WorldObjectComponent, ILinkable, IOwned, IHasSerializableID, IRPCAuthChecks, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IHasInteractions, IController, IViewController, IHasUniversalID, IWireContainer
Constructors
LiquidConsumerComponent()
Declaration
public LiquidConsumerComponent()
Fields
OnConsumed
Declaration
public ThreadSafeAction<Type, float> OnConsumed
Field Value
ShouldConsumeLiquid
Declaration
public Func<bool> ShouldConsumeLiquid
Field Value
Type |
Description |
System.Func<System.Boolean> |
|
Properties
AcceptedType
Declaration
public Type AcceptedType { get; }
Property Value
Type |
Description |
System.Type |
|
Availability
Declaration
public override WorldObjectComponentClientAvailability Availability { get; }
Property Value
Overrides
BufferAmount
Declaration
public float BufferAmount { get; }
Property Value
Type |
Description |
System.Single |
|
BufferSize
Declaration
public float BufferSize { get; set; }
Property Value
Type |
Description |
System.Single |
|
Enabled
Declaration
public override bool Enabled { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
IconName
Declaration
public override string IconName { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
Declaration
public WireInput InputPipe { get; }
Property Value
Declaration
public Ray InputPosDir { get; set; }
Property Value
LastTickConsumed
Declaration
public float LastTickConsumed { get; }
Property Value
Type |
Description |
System.Single |
|
LiquidName
Declaration
public LocString LiquidName { get; }
Property Value
Wires
Declaration
public IEnumerable<WireConnection> Wires { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<WireConnection> |
|
Methods
LateTick()
Declaration
public override void LateTick()
Overrides
OnAfterObjectMoved()
Declaration
public override void OnAfterObjectMoved()
Overrides
QueueConsume(Single)
Declaration
public void QueueConsume(float amount)
Parameters
Type |
Name |
Description |
System.Single |
amount |
|
Setup(Type, Single, BlockOccupancyType, Single, LiquidConverterComponent)
Declaration
public void Setup(Type acceptedType, float consumptionRate, BlockOccupancyType blockOccupancyType, float percentRequiredFlow, LiquidConverterComponent converter = null)
Parameters
Tick()
Declaration
public override void Tick()
Overrides
Events
OnCanReceive
Declaration
public event Func<Type, float> OnCanReceive
Event Type
Type |
Description |
System.Func<System.Type, System.Single> |
|
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods