Class LiquidConverterComponent
Inheritance
System.Object
LiquidConverterComponent
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable
Assembly: Eco.Gameplay.dll
Syntax
[RequireComponent]
[RequireComponent]
public sealed class LiquidConverterComponent : WorldObjectComponent, ILinkable, IOwned, IHasSerializableID, IRPCAuthChecks, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IHasInteractions, IController, IViewController, IHasUniversalID, IDisposable
Constructors
LiquidConverterComponent()
Declaration
public LiquidConverterComponent()
Properties
Enabled
Declaration
public override bool Enabled { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
In
Declaration
public LiquidConsumerComponent In { get; }
Property Value
Out
Declaration
public LiquidProducerComponent Out { get; }
Property Value
Methods
Dispose()
Declaration
LateTick()
Declaration
public override void LateTick()
Overrides
OnCanReceive(Type)
Declaration
public float OnCanReceive(Type itemType)
Parameters
Type |
Name |
Description |
System.Type |
itemType |
|
Returns
Type |
Description |
System.Single |
|
Setup(Type, Type, BlockOccupancyType, BlockOccupancyType, Single, Single)
Declaration
public void Setup(Type inputType, Type outputsType, BlockOccupancyType inputBlockType, BlockOccupancyType outputBlockType, float consumptionRate = 1F, float requiredFlow = 0.9F)
Parameters
Type |
Name |
Description |
System.Type |
inputType |
|
System.Type |
outputsType |
|
BlockOccupancyType |
inputBlockType |
|
BlockOccupancyType |
outputBlockType |
|
System.Single |
consumptionRate |
|
System.Single |
requiredFlow |
|
Events
OnConvert
Declaration
public event Action<float> OnConvert
Event Type
Type |
Description |
System.Action<System.Single> |
|
ShouldConvertLiquid
Declaration
public event Func<bool> ShouldConvertLiquid
Event Type
Type |
Description |
System.Func<System.Boolean> |
|
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable
Extension Methods