Class Compartment
Last update: 09.03.2026Namespace: OpenTD.FloCAD
Assembly: OpenTD.dll
Client-side representation of a Compartment entity in a TD instance.
[MessagePackObject(true)]
public class Compartment : TdDbEntityData, IUpdatable
Inheritance
object ← OpenTDObject ← DbObject ← TdDbEntityData ← Compartment
Implements
Inherited Members
TdDbEntityData.SetFrom(TdDbEntityData), TdDbEntityData.Layer, TdDbEntityData.ColorIndex, TdDbEntityData.ToString(string, string, string), TdDbEntityData.ToString(string, int, string), TdDbEntityData.ToString(), DbObject.SetFrom(DbObject), DbObject.Update(), DbObject.UpdateFromTD(), DbObject.CreateIn(ThermalDesktop), DbObject.Handle, DbObject.TypeName, DbObject.Equals(object), DbObject.GetHashCode(), OpenTDObject.SetFrom(OpenTDObject), OpenTDObject.Update(), OpenTDObject.UpdateFromTD(), OpenTDObject.UpdateIn(ThermalDesktop), OpenTDObject.CreateIn(ThermalDesktop), OpenTDObject.TdProxy, object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Compartment()
public Compartment()
Properties
Bays
public List<Bay> Bays { get; set; }
Property Value
Comment
public string Comment { get; set; }
Property Value
CompartmentId
public int CompartmentId { get; set; }
Property Value
Enabled
public int Enabled { get; set; }
Property Value
EnabledExp
public ExpressionData EnabledExp { get; set; }
Property Value
LiquidColor
public int LiquidColor { get; set; }
Property Value
LumpHandle
[IgnoreMember]
public string LumpHandle { get; }
Property Value
PackingFactor
public double PackingFactor { get; set; }
Property Value
PackingFactorExp
public ExpressionData PackingFactorExp { get; set; }
Property Value
ShowIds
public bool ShowIds { get; set; }
Property Value
ShowLV
public int ShowLV { get; set; }
Property Value
ShowLVExp
public ExpressionData ShowLVExp { get; set; }
Property Value
ShowSelectionRing
public int ShowSelectionRing { get; set; }
Property Value
ShowSelectionRingExp
public ExpressionData ShowSelectionRingExp { get; set; }
Property Value
Ties
public List<CompartmentTie> Ties { get; set; }
Property Value
TwinLump
public int TwinLump { get; set; }
Property Value
_LumpHandle
Do not use.
public string _LumpHandle { get; set; }
Property Value
Methods
CreateIn(ThermalDesktop)
Creates the TD entity in the specified TD instance.
public override void CreateIn(ThermalDesktop td)
Parameters
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
A string that represents the current object.
Update()
Updates the TD entity with the latest client data.
public override void Update()
UpdateFromTD()
Updates the client-side instance with the latest data from the TD entity.
public override void UpdateFromTD()