Skip to main content

OpenTD reference 2026 R1

Class Compartment

Last update: 09.03.2026

Namespace: 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

IUpdatable

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

List<Bay>

Comment

[DataMember]
public string Comment { get; set; }

Property Value

string

CompartmentId

[DataMember]
public int CompartmentId { get; set; }

Property Value

int

Enabled

[DataMember]
public int Enabled { get; set; }

Property Value

int

EnabledExp

[DataMember]
public ExpressionData EnabledExp { get; set; }

Property Value

ExpressionData

LiquidColor

[DataMember]
public int LiquidColor { get; set; }

Property Value

int

LumpHandle

public string LumpHandle { get; }

Property Value

string

PackingFactor

[DataMember]
public double PackingFactor { get; set; }

Property Value

double

PackingFactorExp

[DataMember]
public ExpressionData PackingFactorExp { get; set; }

Property Value

ExpressionData

ShowIds

[DataMember]
public bool ShowIds { get; set; }

Property Value

bool

ShowLV

[DataMember]
public int ShowLV { get; set; }

Property Value

int

ShowLVExp

[DataMember]
public ExpressionData ShowLVExp { get; set; }

Property Value

ExpressionData

ShowSelectionRing

[DataMember]
public int ShowSelectionRing { get; set; }

Property Value

int

ShowSelectionRingExp

[DataMember]
public ExpressionData ShowSelectionRingExp { get; set; }

Property Value

ExpressionData

Ties

[DataMember]
public List<CompartmentTie> Ties { get; set; }

Property Value

List<CompartmentTie>

TwinLump

[DataMember]
public int TwinLump { get; set; }

Property Value

int

_LumpHandle

Do not use.

[DataMember]
public string _LumpHandle { get; set; }

Property Value

string

Methods

CreateIn(ThermalDesktop)

Creates the TD entity in the specified TD instance.

public override void CreateIn(ThermalDesktop td)

Parameters

td ThermalDesktop

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

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()

See Also

ThermalDesktop

Connect with Ansys