Class Compartment
Last update: 09.03.2026Namespace: OpenTD.FloCAD
Assembly: OpenTD.dll
Client-side representation of a Compartment entity in a TD instance.
[DataContract]
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.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()
Constructors
Compartment()
public Compartment()
Properties
Bays
[DataMember]
public List<Bay> Bays { get; set; }
Property Value
Comment
[DataMember]
public string Comment { get; set; }
Property Value
CompartmentId
[DataMember]
public int CompartmentId { get; set; }
Property Value
Enabled
[DataMember]
public int Enabled { get; set; }
Property Value
EnabledExp
[DataMember]
public ExpressionData EnabledExp { get; set; }
Property Value
LiquidColor
[DataMember]
public int LiquidColor { get; set; }
Property Value
LumpHandle
public string LumpHandle { get; }
Property Value
PackingFactor
[DataMember]
public double PackingFactor { get; set; }
Property Value
PackingFactorExp
[DataMember]
public ExpressionData PackingFactorExp { get; set; }
Property Value
ShowIds
[DataMember]
public bool ShowIds { get; set; }
Property Value
ShowLV
[DataMember]
public int ShowLV { get; set; }
Property Value
ShowLVExp
[DataMember]
public ExpressionData ShowLVExp { get; set; }
Property Value
ShowSelectionRing
[DataMember]
public int ShowSelectionRing { get; set; }
Property Value
ShowSelectionRingExp
[DataMember]
public ExpressionData ShowSelectionRingExp { get; set; }
Property Value
Ties
[DataMember]
public List<CompartmentTie> Ties { get; set; }
Property Value
TwinLump
[DataMember]
public int TwinLump { get; set; }
Property Value
_LumpHandle
Do not use.
[DataMember]
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()