Skip to main content

OpenTD reference 2026 R1

Class LogicObject

Last update: 09.03.2026

Namespace: OpenTD
Assembly: OpenTD.dll

Base class for TD logic objects.

[DataContract]
public class LogicObject : OpenTDObject, IUpdatable

Inheritance

object ← OpenTDObject ← LogicObject

Implements

IUpdatable

Inherited Members

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

LogicObject()

public LogicObject()

Properties

Comment

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

Property Value

string

EnabledExp

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

Property Value

ExpressionData

GroupName

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

Property Value

string

Handle

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

Property Value

string

Submodel

[DataMember]
public SubmodelNameData Submodel { get; set; }

Property Value

SubmodelNameData

Type

public LogicObject.LogicType Type { get; }

Property Value

LogicObject.LogicType

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

Connect with Ansys