    

 ## On this page

  

 

 # Class LogicObject

 Last update: 09.03.2026 

Namespace: [OpenTD](OpenTD.md)  
Assembly: OpenTD.dll

Base class for TD logic objects.

```csharp
[MessagePackObject(true)]
public class LogicObject : OpenTDObject, IUpdatable

```

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [OpenTDObject](OpenTD.OpenTDObject.md) ← [LogicObject](OpenTD.LogicObject.md)

## Implements

[IUpdatable](OpenTD.IUpdatable.md)

## Inherited Members

[OpenTDObject.SetFrom(OpenTDObject)](OpenTD.OpenTDObject.md#OpenTD_OpenTDObject_SetFrom_OpenTD_OpenTDObject_), [OpenTDObject.Update()](OpenTD.OpenTDObject.md#OpenTD_OpenTDObject_Update), [OpenTDObject.UpdateFromTD()](OpenTD.OpenTDObject.md#OpenTD_OpenTDObject_UpdateFromTD), [OpenTDObject.UpdateIn(ThermalDesktop)](OpenTD.OpenTDObject.md#OpenTD_OpenTDObject_UpdateIn_OpenTD_ThermalDesktop_), [OpenTDObject.CreateIn(ThermalDesktop)](OpenTD.OpenTDObject.md#OpenTD_OpenTDObject_CreateIn_OpenTD_ThermalDesktop_), [OpenTDObject.TdProxy](OpenTD.OpenTDObject.md#OpenTD_OpenTDObject_TdProxy), [object.Equals(object?)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)), [object.Equals(object?, object?)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)), [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode), [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype), [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone), [object.ReferenceEquals(object?, object?)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Constructors

### LogicObject()

```csharp
public LogicObject()

```

## Properties

### Comment

```csharp
public string Comment { get; set; }

```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### EnabledExp

```csharp
public ExpressionData EnabledExp { get; set; }

```

#### Property Value

[ExpressionData](OpenTD.ExpressionData.md)

### GroupName

```csharp
public string GroupName { get; set; }

```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### Handle

```csharp
public string Handle { get; set; }

```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### Submodel

```csharp
public SubmodelNameData Submodel { get; set; }

```

#### Property Value

[SubmodelNameData](OpenTD.SubmodelNameData.md)

### Type

```csharp
[IgnoreMember]
public LogicObject.LogicType Type { get; }

```

#### Property Value

[LogicObject](OpenTD.LogicObject.md).[LogicType](OpenTD.LogicObject.LogicType.md)

## Methods

### CreateIn(ThermalDesktop)

Creates the TD entity in the specified TD instance.

```csharp
public override void CreateIn(ThermalDesktop td)

```

#### Parameters

`td` [ThermalDesktop](OpenTD.ThermalDesktop.md)

### ToString()

Returns a string that represents the current object.

```csharp
public override string ToString()

```

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

A string that represents the current object.

### Update()

Updates the TD entity with the latest client data.

```csharp
public override void Update()

```

### UpdateFromTD()

Updates the client-side instance with the latest data from the TD entity.

```csharp
public override void UpdateFromTD()

```