    

 ## On this page

  

 

 # OpenTD.DbObject Class Reference

 Last update: 16.07.2025 

Base class for objects stored in the AutoCAD database and uniquely-identified by AutoCAD handles. [More...](#details)

Inheritance diagram for OpenTD.DbObject:

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



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

 [DbObject](#a480a9b60e17ce9a0eab8073318817f82) () void [SetFrom](#a595c3f7ce20889de96e2adf759fb4c2c) ([DbObject](class_open_t_d_1_1_db_object.xhtml) x)  [DbObject](#aae6f74f19e87ba6014f5a233f0a4c029) (string \_Handle) override void [Update](#a18304eff52add0793e578464eaecb4fb) () Updates the TD entity with the latest client data.   
 override void [UpdateFromTD](#a0d02db5bdd966c2ec9f83d3f07c4a6e8) () Updates the client-side instance with the latest data from the TD entity.   
 override void [CreateIn](#ab2b049c600a1290764920ab3a5e4f1b6) ([ThermalDesktop](class_open_t_d_1_1_thermal_desktop.xhtml) td) Creates the TD entity in the specified TD instance.   
 override bool [Equals](#a07cda25341543659c639e815879e5e38) (object obj) override int [GetHashCode](#a10d2aadcea2f0c8dbdd597c71cd1f7ad) () void [SetFrom](class_open_t_d_1_1_open_t_d_object.xhtml#aa2e0aa2793e95a56891ef59fb4843ca2) ([OpenTDObject](class_open_t_d_1_1_open_t_d_object.xhtml) x) void [UpdateIn](class_open_t_d_1_1_open_t_d_object.xhtml#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.   
 ## <a id="pub-static-methods" name="pub-static-methods"></a>Static Public Member Functions

static bool [operator==](#adc17b71dfa209f83a3a1730c95a032a6) ([DbObject](class_open_t_d_1_1_db_object.xhtml) first, [DbObject](class_open_t_d_1_1_db_object.xhtml) second) static bool [operator!=](#ae362d2d78aad41f0cec5dcc3c345b33d) ([DbObject](class_open_t_d_1_1_db_object.xhtml) first, [DbObject](class_open_t_d_1_1_db_object.xhtml) second) ## <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](class_open_t_d_1_1_open_t_d_object.xhtml#a0da16592e6b635ca0def27b355d669b3) ## <a id="properties" name="properties"></a>Properties

string [Handle](#a64061b4cada0773c01f886b2670ab156)` [get, set]` string [TypeName](#ab9ed363a260a75e71e606e61d3f86352)` [get, set]` <a id="details" name="details"></a>## Detailed Description

Base class for objects stored in the AutoCAD database and uniquely-identified by AutoCAD handles.



## Constructor &amp; Destructor Documentation

<a id="a480a9b60e17ce9a0eab8073318817f82" name="a480a9b60e17ce9a0eab8073318817f82"></a>## [◆ ](#a480a9b60e17ce9a0eab8073318817f82)DbObject() \[1/2\]

 OpenTD.DbObject.DbObject  ( )   inline 





<a id="aae6f74f19e87ba6014f5a233f0a4c029" name="aae6f74f19e87ba6014f5a233f0a4c029"></a>## [◆ ](#aae6f74f19e87ba6014f5a233f0a4c029)DbObject() \[2/2\]

 OpenTD.DbObject.DbObject  ( string *\_Handle*)   inline 





## Member Function Documentation

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

 override void OpenTD.DbObject.CreateIn  ( [ThermalDesktop](class_open_t_d_1_1_thermal_desktop.xhtml) *td*)   inline 

Creates the TD entity in the specified TD instance.

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





<a id="a07cda25341543659c639e815879e5e38" name="a07cda25341543659c639e815879e5e38"></a>## [◆ ](#a07cda25341543659c639e815879e5e38)Equals()

 override bool OpenTD.DbObject.Equals  ( object *obj*)   inline 





<a id="a10d2aadcea2f0c8dbdd597c71cd1f7ad" name="a10d2aadcea2f0c8dbdd597c71cd1f7ad"></a>## [◆ ](#a10d2aadcea2f0c8dbdd597c71cd1f7ad)GetHashCode()

 override int OpenTD.DbObject.GetHashCode  ( )   inline 





<a id="ae362d2d78aad41f0cec5dcc3c345b33d" name="ae362d2d78aad41f0cec5dcc3c345b33d"></a>## [◆ ](#ae362d2d78aad41f0cec5dcc3c345b33d)operator!=()

 static bool OpenTD.DbObject.operator!=  ( [DbObject](class_open_t_d_1_1_db_object.xhtml) *first*,    [DbObject](class_open_t_d_1_1_db_object.xhtml) *second* )  inlinestatic 





<a id="adc17b71dfa209f83a3a1730c95a032a6" name="adc17b71dfa209f83a3a1730c95a032a6"></a>## [◆ ](#adc17b71dfa209f83a3a1730c95a032a6)operator==()

 static bool OpenTD.DbObject.operator==  ( [DbObject](class_open_t_d_1_1_db_object.xhtml) *first*,    [DbObject](class_open_t_d_1_1_db_object.xhtml) *second* )  inlinestatic 





<a id="a595c3f7ce20889de96e2adf759fb4c2c" name="a595c3f7ce20889de96e2adf759fb4c2c"></a>## [◆ ](#a595c3f7ce20889de96e2adf759fb4c2c)SetFrom() \[1/2\]

 void OpenTD.DbObject.SetFrom  ( [DbObject](class_open_t_d_1_1_db_object.xhtml) *x*)   inline 





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

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





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

 override void OpenTD.DbObject.Update  ( )   inline 

Updates the TD entity with the latest client data.

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





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

 override void OpenTD.DbObject.UpdateFromTD  ( )   inline 

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*)   inlineinherited 

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  protectedinherited 





## Property Documentation

<a id="a64061b4cada0773c01f886b2670ab156" name="a64061b4cada0773c01f886b2670ab156"></a>## [◆ ](#a64061b4cada0773c01f886b2670ab156)Handle

 string OpenTD.DbObject.Handle  getset 





<a id="ab9ed363a260a75e71e606e61d3f86352" name="ab9ed363a260a75e71e606e61d3f86352"></a>## [◆ ](#ab9ed363a260a75e71e606e61d3f86352)TypeName

 string OpenTD.DbObject.TypeName  getset 





---

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