Class LiquidTank
Inheritance
System.Object
LiquidTank
Assembly: Eco.Gameplay.dll
Syntax
public class LiquidTank : Object, IController, IViewController, IHasUniversalID, IWireContainer
Constructors
LiquidTank()
Declaration
LiquidTank(String, Type, Int32, Ray, Ray, Single)
Declaration
public LiquidTank(string name, Type itemType, int tankSize, Ray inputPosDir, Ray outputPosDir, float throughputItemsPerSecond)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Type |
itemType |
|
System.Int32 |
tankSize |
|
Ray |
inputPosDir |
|
Ray |
outputPosDir |
|
System.Single |
throughputItemsPerSecond |
|
Fields
owner
Declaration
protected WorldObject owner
Field Value
ToSend
Declaration
Field Value
Type |
Description |
System.Int32 |
|
Properties
AvailableSpace
Declaration
public int AvailableSpace { get; }
Property Value
Type |
Description |
System.Int32 |
|
Contents
Declaration
public ItemStack Contents { get; set; }
Property Value
ControllerID
Declaration
public ref int ControllerID { get; }
Property Value
Type |
Description |
System.Int32 |
|
Enabled
Declaration
public virtual bool Enabled { get; }
Property Value
Type |
Description |
System.Boolean |
|
Fraction
Declaration
public float Fraction { get; set; }
Property Value
Type |
Description |
System.Single |
|
Declaration
public WireInput InputPipe { get; }
Property Value
Declaration
public Ray InputPosDir { get; set; }
Property Value
Name
Declaration
public string Name { get; set; }
Property Value
Type |
Description |
System.String |
|
OutputPipe
Declaration
public WireOutput OutputPipe { get; }
Property Value
OutputPosDir
Declaration
public Ray OutputPosDir { get; set; }
Property Value
TankSize
Declaration
public int TankSize { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Throughput
Declaration
public float Throughput { get; set; }
Property Value
Type |
Description |
System.Single |
|
Wires
Declaration
public IEnumerable<WireConnection> Wires { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<WireConnection> |
|
Methods
CanAdd(Type)
Declaration
public bool CanAdd(Type itemType)
Parameters
Type |
Name |
Description |
System.Type |
itemType |
|
Returns
Type |
Description |
System.Boolean |
|
CopySettings(LiquidTank)
Declaration
public virtual void CopySettings(LiquidTank tank)
Parameters
Destroy()
Declaration
Initialize(WorldObject)
Declaration
public void Initialize(WorldObject owner)
Parameters
Tick(Single)
Declaration
public virtual void Tick(float delta)
Parameters
Type |
Name |
Description |
System.Single |
delta |
|
Implements
Extension Methods