    

 ## On this page

  

 

 # OpenTD.MaterialStack Class Reference

 Last update: 16.07.2025 

Client-side representation of a Material Stack entity in a TD instance. [More...](#details)

Inheritance diagram for OpenTD.MaterialStack:

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



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

override void [Update](#a191f3dbcf4c04507f99fa5fee3870166) () Updates the TD entity with the latest client data.   
 override void [UpdateFromTD](#ab4316c6698c12908e4563f6722b50862) () Updates the client-side instance with the latest data from the TD entity.   
 override void [CreateIn](#aeb39d949254194ff19cc39fc189eb035) ([ThermalDesktop](class_open_t_d_1_1_thermal_desktop.xhtml) td) Creates the TD entity in the specified TD instance.   
 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.   
 override string [ToString](class_open_t_d_1_1_unique_name_object.xhtml#af373d173d2d75fd2b4c6edb8ee4165b2) () 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="pro-methods" name="pro-methods"></a>Protected Member Functions

override void [ProxyRename](class_open_t_d_1_1_material_stack_data.xhtml#a0f2ff397d309e08b18f5306569ff40e2) (string from, string to) virtual string [ModifyName](class_open_t_d_1_1_unique_name_object.xhtml#a1343e99cd573893ee16d36c337fde7b1) (string name) ## <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 [Comment](class_open_t_d_1_1_material_stack_data.xhtml#a93da4e1189a5dfba7825077c21f89a56)` [get, set]` List&lt; [MaterialStackLayerData](class_open_t_d_1_1_material_stack_layer_data.xhtml) &gt; [Layers](class_open_t_d_1_1_material_stack_data.xhtml#ad72839a5fa60c97f91991c9265afaaa1)` [get, set]` int [GenerateLateralConductors](class_open_t_d_1_1_material_stack_data.xhtml#a2b57c6858159ba85a3957283292edff2)` [get, set]` 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

Client-side representation of a Material Stack entity 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.")

## Member Function Documentation

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

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

 virtual string OpenTD.UniqueNameObject.ModifyName  ( string *name*)   inlineprotectedvirtualinherited 

Reimplemented in [OpenTD.SubmodelData](class_open_t_d_1_1_submodel_data.xhtml#a607b0ad2b1e47186137ea8149940f481).





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

 override void OpenTD.MaterialStackData.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="af373d173d2d75fd2b4c6edb8ee4165b2" name="af373d173d2d75fd2b4c6edb8ee4165b2"></a>## [◆ ](#af373d173d2d75fd2b4c6edb8ee4165b2)ToString()

 override string OpenTD.UniqueNameObject.ToString  ( )   inlineinherited 





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

 override void OpenTD.MaterialStack.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="ab4316c6698c12908e4563f6722b50862" name="ab4316c6698c12908e4563f6722b50862"></a>## [◆ ](#ab4316c6698c12908e4563f6722b50862)UpdateFromTD()

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

 string OpenTD.UniqueNameObject.\_n  getsetinherited 

Do not use.





<a id="a93da4e1189a5dfba7825077c21f89a56" name="a93da4e1189a5dfba7825077c21f89a56"></a>## [◆ ](#a93da4e1189a5dfba7825077c21f89a56)Comment

 string OpenTD.MaterialStackData.Comment  getsetinherited 





<a id="a2b57c6858159ba85a3957283292edff2" name="a2b57c6858159ba85a3957283292edff2"></a>## [◆ ](#a2b57c6858159ba85a3957283292edff2)GenerateLateralConductors

 int OpenTD.MaterialStackData.GenerateLateralConductors  getsetinherited 





<a id="ad72839a5fa60c97f91991c9265afaaa1" name="ad72839a5fa60c97f91991c9265afaaa1"></a>## [◆ ](#ad72839a5fa60c97f91991c9265afaaa1)Layers

 List&lt;[MaterialStackLayerData](class_open_t_d_1_1_material_stack_layer_data.xhtml)&gt; OpenTD.MaterialStackData.Layers  getsetinherited 





<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/**MaterialStack.cs**