Show / Hide Table of Contents

Class LiquidConsumerComponent

Inheritance
System.Object
WorldObjectComponent
LiquidConsumerComponent
Implements
ILinkable
IOwned
IHasSerializableID
IRPCAuthChecks
System.ComponentModel.INotifyPropertyChanged
IThreadSafeSubscriptions
ISubscriptions<ThreadSafeSubscriptions>
ISubscriptions
IHasInteractions
IController
IViewController
IHasUniversalID
IWireContainer
Inherited Members
WorldObjectComponent.IsRPCAuthorized(IWorldObserver, AccessType, Object[])
WorldObjectComponent.Initialize()
WorldObjectComponent.PostInitialize()
WorldObjectComponent.OnCreate()
WorldObjectComponent.Destroy()
WorldObjectComponent.TryPickup(Player, InventoryChangeSet, Inventory, Boolean)
WorldObjectComponent.OnPickup(Player)
WorldObjectComponent.OnBeforeObjectMoved()
WorldObjectComponent.OnLinkClicked(TooltipOrigin, TooltipClickContext, User)
WorldObjectComponent.UILinkContent()
WorldObjectComponent.Parent
WorldObjectComponent.Name
WorldObjectComponent.ForceActiveTab
WorldObjectComponent.ComponentPrefabName
WorldObjectComponent.ComponentTabName
WorldObjectComponent.IsDestroyed
WorldObjectComponent.ShouldRequestEverything
WorldObjectComponent.Owners
WorldObjectComponent.ControllerID
WorldObjectComponent.IOwned.Deed
WorldObjectComponent.Subscriptions
WorldObjectComponent.PropertyChanged
Namespace: Eco.Gameplay.Pipes.LiquidComponents
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
Type Description
ThreadSafeAction<System.Type, System.Single>

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
Type Description
WorldObjectComponentClientAvailability
Overrides
WorldObjectComponent.Availability

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
WorldObjectComponent.Enabled

IconName

Declaration
public override string IconName { get; }
Property Value
Type Description
System.String
Overrides
WorldObjectComponent.IconName

InputPipe

Declaration
public WireInput InputPipe { get; }
Property Value
Type Description
WireInput

InputPosDir

Declaration
public Ray InputPosDir { get; set; }
Property Value
Type Description
Ray

LastTickConsumed

Declaration
public float LastTickConsumed { get; }
Property Value
Type Description
System.Single

LiquidName

Declaration
public LocString LiquidName { get; }
Property Value
Type Description
LocString

Wires

Declaration
public IEnumerable<WireConnection> Wires { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<WireConnection>

Methods

LateTick()

Declaration
public override void LateTick()
Overrides
WorldObjectComponent.LateTick()

OnAfterObjectMoved()

Declaration
public override void OnAfterObjectMoved()
Overrides
WorldObjectComponent.OnAfterObjectMoved()

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
Type Name Description
System.Type acceptedType
System.Single consumptionRate
BlockOccupancyType blockOccupancyType
System.Single percentRequiredFlow
LiquidConverterComponent converter

Tick()

Declaration
public override void Tick()
Overrides
WorldObjectComponent.Tick()

Events

OnCanReceive

Declaration
public event Func<Type, float> OnCanReceive
Event Type
Type Description
System.Func<System.Type, System.Single>

Implements

ILinkable
IOwned
IHasSerializableID
IRPCAuthChecks
System.ComponentModel.INotifyPropertyChanged
IThreadSafeSubscriptions
ISubscriptions<TSubscriptionsList>
ISubscriptions
IHasInteractions
IController
IViewController
IHasUniversalID
IWireContainer

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾