    

 ## On this page

  

 

 # OpenTD.OpenTDObject Class Reference

 Last update: 16.07.2025 

Base class for client-side objects linked to entities in a TD instance. [More...](#details)

Inheritance diagram for OpenTD.OpenTDObject:

 ![](/sites/default/files/migrate-content/opentd_net4_reference_2025_r2_1/class_open_t_d_1_1_open_t_d_object.png)



## <a id="pub-methods" name="pub-methods"></a>Public Member Functions

 [OpenTDObject](#aacbb53e68ae093098be71e5e29258d8a) () void [SetFrom](#aa2e0aa2793e95a56891ef59fb4843ca2) ([OpenTDObject](class_open_t_d_1_1_open_t_d_object.xhtml) x) void [Update](#a3197588bb4f42e3ec88659349dbf4905) () Updates the TD entity with the latest client data.   
 void [UpdateFromTD](#a61901cd5539657cbd9989fcfa361b8e7) () Updates the client-side instance with the latest data from the TD entity.   
 void [UpdateIn](#a1e5228ce309c9a85ec09e8119318024d) ([ThermalDesktop](class_open_t_d_1_1_thermal_desktop.xhtml) td) Updates the TD entity corresponding to this object in the specified TD instance, if possible.   
 void [CreateIn](#a9805906b2a067b0ec475e7b6513a8d4f) ([ThermalDesktop](class_open_t_d_1_1_thermal_desktop.xhtml) td) Creates the TD entity in the specified TD instance.   
 ## <a id="pro-attribs" name="pro-attribs"></a>Protected Attributes

[ITdCommander](interface_open_t_d_1_1_internal_1_1_communication_1_1_i_td_commander.xhtml) [TdProxy](#a0da16592e6b635ca0def27b355d669b3) <a id="details" name="details"></a>## Detailed Description

Base class for client-side objects linked to entities in a TD instance.

See also[OpenTD.ThermalDesktop](class_open_t_d_1_1_thermal_desktop.xhtml "Represents one instance of Thermal Desktop. This is the top-level class for interacting with OpenTD.")

## Constructor &amp; Destructor Documentation

<a id="aacbb53e68ae093098be71e5e29258d8a" name="aacbb53e68ae093098be71e5e29258d8a"></a>## [◆ ](#aacbb53e68ae093098be71e5e29258d8a)OpenTDObject()

 OpenTD.OpenTDObject.OpenTDObject  ( )   inline 





## Member Function Documentation

<a id="a9805906b2a067b0ec475e7b6513a8d4f" name="a9805906b2a067b0ec475e7b6513a8d4f"></a>## [◆ ](#a9805906b2a067b0ec475e7b6513a8d4f)CreateIn()

 void OpenTD.OpenTDObject.CreateIn  ( [ThermalDesktop](class_open_t_d_1_1_thermal_desktop.xhtml) *td*)   abstract 

Creates the TD entity in the specified TD instance.

Implements [OpenTD.IReassignable](interface_open_t_d_1_1_i_reassignable.xhtml#a94cbc52d002a10e44f5dc2daaf9c87db).





<a id="aa2e0aa2793e95a56891ef59fb4843ca2" name="aa2e0aa2793e95a56891ef59fb4843ca2"></a>## [◆ ](#aa2e0aa2793e95a56891ef59fb4843ca2)SetFrom()

 void OpenTD.OpenTDObject.SetFrom  ( [OpenTDObject](class_open_t_d_1_1_open_t_d_object.xhtml) *x*)   inline 





<a id="a3197588bb4f42e3ec88659349dbf4905" name="a3197588bb4f42e3ec88659349dbf4905"></a>## [◆ ](#a3197588bb4f42e3ec88659349dbf4905)Update()

 void OpenTD.OpenTDObject.Update  ( )   abstract 

Updates the TD entity with the latest client data.

Implements [OpenTD.IUpdatable](interface_open_t_d_1_1_i_updatable.xhtml#a162ef7c717f51047a1d45c7df4282470).





<a id="a61901cd5539657cbd9989fcfa361b8e7" name="a61901cd5539657cbd9989fcfa361b8e7"></a>## [◆ ](#a61901cd5539657cbd9989fcfa361b8e7)UpdateFromTD()

 void OpenTD.OpenTDObject.UpdateFromTD  ( )   abstract 

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

Implements [OpenTD.IUpdatable](interface_open_t_d_1_1_i_updatable.xhtml#a47f3096415cfb5694fd822df8a1eceb0).





<a id="a1e5228ce309c9a85ec09e8119318024d" name="a1e5228ce309c9a85ec09e8119318024d"></a>## [◆ ](#a1e5228ce309c9a85ec09e8119318024d)UpdateIn()

 void OpenTD.OpenTDObject.UpdateIn  ( [ThermalDesktop](class_open_t_d_1_1_thermal_desktop.xhtml) *td*)   inline 

Updates the TD entity corresponding to this object in the specified TD instance, if possible.

Implements [OpenTD.IReassignable](interface_open_t_d_1_1_i_reassignable.xhtml#a90dffde7dd442e9d940f9e5c5fabde14).





## Member Data Documentation

<a id="a0da16592e6b635ca0def27b355d669b3" name="a0da16592e6b635ca0def27b355d669b3"></a>## [◆ ](#a0da16592e6b635ca0def27b355d669b3)TdProxy

 [ITdCommander](interface_open_t_d_1_1_internal_1_1_communication_1_1_i_td_commander.xhtml) OpenTD.OpenTDObject.TdProxy  protected 





---

The documentation for this class was generated from the following file:- C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/TDDEV\_ALPHA/buildXX/OpenTD/**OpenTDObject.cs**