    

 ## On this page

  

 

 # OpenTD.Submodel Class Reference

 Last update: 16.07.2025 

A thermal submodel. Implicitly converts to/from string. [More...](#details)

Inheritance diagram for OpenTD.Submodel:

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



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

override void [CreateIn](#a9430ef7867c8ab55011f6450eb3a0016) ([ThermalDesktop](class_open_t_d_1_1_thermal_desktop.xhtml) td) Creates the TD entity in the specified TD instance.   
 override void [Update](class_open_t_d_1_1_submodel_data.xhtml#a6e0d68fe166e56185b8b05e8a47bb1a0) () Updates the TD entity with the latest client data.   
 override void [UpdateFromTD](class_open_t_d_1_1_submodel_data.xhtml#a29e6c392b8b1ea607e92478afafde477) () Updates the client-side instance with the latest data from the TD entity.   
 override string [ToString](class_open_t_d_1_1_submodel_data.xhtml#a326e96a35e8d30c72b68869f17585d3f) () virtual void [Rename](class_open_t_d_1_1_unique_name_object.xhtml#ab83691a4d2f3bd34519f9372cfc73951) (string to) Use this method to rename the client-side object and the TD item it is linked to.   
 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 implicit [operator SubmodelData](class_open_t_d_1_1_submodel_data.xhtml#a06bbedfa355da43ecf80f05b23afb3b5) (string submodelName) static implicit [operator string](class_open_t_d_1_1_submodel_data.xhtml#a5e415094045ef7bfae01280b4a879a34) ([SubmodelData](class_open_t_d_1_1_submodel_data.xhtml) s) ## <a id="pro-methods" name="pro-methods"></a>Protected Member Functions

override string [ModifyName](class_open_t_d_1_1_submodel_data.xhtml#a607b0ad2b1e47186137ea8149940f481) (string name) override void [ProxyRename](class_open_t_d_1_1_submodel_data.xhtml#a3ab88f04a4d2e3fcd0a9d9de6d224ebf) (string from, string to) ## <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 [Name](class_open_t_d_1_1_unique_name_object.xhtml#a81ee04aec6314a6dd404826b41564162)` [get]` This object is uniquely-identified by this name.   
 string [\_n](class_open_t_d_1_1_unique_name_object.xhtml#a4546becfb33773b2b9d0ae2264c9dd2d)` [get, set]` Do not use.   
 <a id="details" name="details"></a>## Detailed Description

A thermal submodel. Implicitly converts to/from string.



## Member Function Documentation

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

 override void OpenTD.Submodel.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="a607b0ad2b1e47186137ea8149940f481" name="a607b0ad2b1e47186137ea8149940f481"></a>## [◆ ](#a607b0ad2b1e47186137ea8149940f481)ModifyName()

 override string OpenTD.SubmodelData.ModifyName  ( string *name*)   inlineprotectedvirtualinherited 

Reimplemented from [OpenTD.UniqueNameObject](class_open_t_d_1_1_unique_name_object.xhtml#a1343e99cd573893ee16d36c337fde7b1).





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

 static implicit OpenTD.SubmodelData.operator string  ( [SubmodelData](class_open_t_d_1_1_submodel_data.xhtml) *s*)   inlinestaticinherited 





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

 static implicit OpenTD.SubmodelData.operator [SubmodelData](class_open_t_d_1_1_submodel_data.xhtml)  ( string *submodelName*)   inlinestaticinherited 





<a id="a3ab88f04a4d2e3fcd0a9d9de6d224ebf" name="a3ab88f04a4d2e3fcd0a9d9de6d224ebf"></a>## [◆ ](#a3ab88f04a4d2e3fcd0a9d9de6d224ebf)ProxyRename()

 override void OpenTD.SubmodelData.ProxyRename  ( string *from*,    string *to* )  inlineprotectedinherited 





<a id="ab83691a4d2f3bd34519f9372cfc73951" name="ab83691a4d2f3bd34519f9372cfc73951"></a>## [◆ ](#ab83691a4d2f3bd34519f9372cfc73951)Rename()

 virtual void OpenTD.UniqueNameObject.Rename  ( string *to*)   inlinevirtualinherited 

Use this method to rename the client-side object and the TD item it is linked to.





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





<a id="a326e96a35e8d30c72b68869f17585d3f" name="a326e96a35e8d30c72b68869f17585d3f"></a>## [◆ ](#a326e96a35e8d30c72b68869f17585d3f)ToString()

 override string OpenTD.SubmodelData.ToString  ( )   inlineinherited 





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

 override void OpenTD.SubmodelData.Update  ( )   inlineinherited 

Updates the TD entity with the latest client data.

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





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

 override void OpenTD.SubmodelData.UpdateFromTD  ( )   inlineinherited 

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="a4546becfb33773b2b9d0ae2264c9dd2d" name="a4546becfb33773b2b9d0ae2264c9dd2d"></a>## [◆ ](#a4546becfb33773b2b9d0ae2264c9dd2d)\_n

 string OpenTD.UniqueNameObject.\_n  getsetinherited 

Do not use.





<a id="a81ee04aec6314a6dd404826b41564162" name="a81ee04aec6314a6dd404826b41564162"></a>## [◆ ](#a81ee04aec6314a6dd404826b41564162)Name

 string OpenTD.UniqueNameObject.Name  getinherited 

This object is uniquely-identified by this name.





---

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