OpenTD.LayerData Class Reference
Last update: 16.07.2025<exclude > More...
Inheritance diagram for OpenTD.LayerData:

Public Member Functions | |
| LayerData () | |
| Initializes a new instance of the LayerData class. | |
| LayerData (string name) | |
| Initializes a new instance of the LayerData class. | |
| override void | Update () |
| Updates the TD entity with the latest client data. | |
| override void | UpdateFromTD () |
| Updates the client-side instance with the latest data from the TD entity. | |
| override void | CreateIn (ThermalDesktop td) |
| Creates the TD entity in the specified TD instance. | |
| override string | ToString () |
| void | SetFrom (OpenTDObject x) |
| void | UpdateIn (ThermalDesktop td) |
| Updates the TD entity corresponding to this object in the specified TD instance, if possible. | |
Static Public Member Functions | |
| static implicit | operator LayerData (string name) |
| static implicit | operator string (LayerData x) |
Protected Attributes | |
| ITdCommander | TdProxy |
Properties | |
| string | Handle [get, set] |
| string | Name [get, set] |
| int | ColorIndex [get, set] |
| AutoCAD color index. You can find these by hovering over color swatches in the AutoCAD Layer Properties Manager. | |
| bool | Locked [get, set] |
| bool | Off [get, set] |
| bool | Frozen [get, set] |
| bool | Current [get, set] |
Detailed Description
<exclude >
Constructor & Destructor Documentation
◆ LayerData() [1/2]
|
inline |
Initializes a new instance of the LayerData class.
◆ LayerData() [2/2]
|
inline |
Initializes a new instance of the LayerData class.
- Parameters
-
name The layer name.
Member Function Documentation
◆ CreateIn()
|
inline |
Creates the TD entity in the specified TD instance.
Implements OpenTD.IReassignable.
◆ operator LayerData()
|
inlinestatic |
◆ operator string()
|
inlinestatic |
◆ SetFrom()
|
inlineinherited |
◆ ToString()
|
inline |
◆ Update()
|
inline |
Updates the TD entity with the latest client data.
Implements OpenTD.IUpdatable.
◆ UpdateFromTD()
|
inline |
Updates the client-side instance with the latest data from the TD entity.
Implements OpenTD.IUpdatable.
◆ UpdateIn()
|
inlineinherited |
Updates the TD entity corresponding to this object in the specified TD instance, if possible.
Implements OpenTD.IReassignable.
Member Data Documentation
◆ TdProxy
|
protectedinherited |
Property Documentation
◆ ColorIndex
|
getset |
AutoCAD color index. You can find these by hovering over color swatches in the AutoCAD Layer Properties Manager.
◆ Current
|
getset |
◆ Frozen
|
getset |
◆ Handle
|
getset |
◆ Locked
|
getset |
◆ Name
|
getset |
◆ Off
|
getset |
The documentation for this class was generated from the following file:
- C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/OpenTD/OpenTD/Layer.cs