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.

[MessagePackObject(true)]
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.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

List<Bay>

Comment

public string Comment { get; set; }

Property Value

string

CompartmentId

public int CompartmentId { get; set; }

Property Value

int

Enabled

public int Enabled { get; set; }

Property Value

int

EnabledExp

public ExpressionData EnabledExp { get; set; }

Property Value

ExpressionData

LiquidColor

public int LiquidColor { get; set; }

Property Value

int

LumpHandle

[IgnoreMember]
public string LumpHandle { get; }

Property Value

string

PackingFactor

public double PackingFactor { get; set; }

Property Value

double

PackingFactorExp

public ExpressionData PackingFactorExp { get; set; }

Property Value

ExpressionData

ShowIds

public bool ShowIds { get; set; }

Property Value

bool

ShowLV

public int ShowLV { get; set; }

Property Value

int

ShowLVExp

public ExpressionData ShowLVExp { get; set; }

Property Value

ExpressionData

ShowSelectionRing

public int ShowSelectionRing { get; set; }

Property Value

int

ShowSelectionRingExp

public ExpressionData ShowSelectionRingExp { get; set; }

Property Value

ExpressionData

Ties

public List<CompartmentTie> Ties { get; set; }

Property Value

List<CompartmentTie>

TwinLump

public int TwinLump { get; set; }

Property Value

int

_LumpHandle

Do not use.

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