OpenTD.UniqueNameObject Class Reference
Last update: 16.07.2025An object that is uniquely-identified by its name, instead of, for example, an AutoCAD handle. More...

Public Member Functions | |
| virtual void | Rename (string to) |
| Use this method to rename the client-side object and the TD item it is linked to. | |
| override string | ToString () |
| void | SetFrom (OpenTDObject x) |
| void | Update () |
| Updates the TD entity with the latest client data. | |
| void | UpdateFromTD () |
| Updates the client-side instance with the latest data from the TD entity. | |
| void | UpdateIn (ThermalDesktop td) |
| Updates the TD entity corresponding to this object in the specified TD instance, if possible. | |
| void | CreateIn (ThermalDesktop td) |
| Creates the TD entity in the specified TD instance. | |
Protected Member Functions | |
| virtual string | ModifyName (string name) |
| void | ProxyRename (string from, string to) |
Protected Attributes | |
| ITdCommander | TdProxy |
Properties | |
| string | Name [get] |
| This object is uniquely-identified by this name. | |
| string | _n [get, set] |
| Do not use. | |
Detailed Description
An object that is uniquely-identified by its name, instead of, for example, an AutoCAD handle.
- See also
- OpenTD.OpenTDObject
Member Function Documentation
◆ CreateIn()
|
abstractinherited |
Creates the TD entity in the specified TD instance.
Implements OpenTD.IReassignable.
◆ ModifyName()
|
inlineprotectedvirtual |
Reimplemented in OpenTD.SubmodelData.
◆ ProxyRename()
|
abstractprotected |
◆ Rename()
|
inlinevirtual |
Use this method to rename the client-side object and the TD item it is linked to.
◆ SetFrom()
|
inlineinherited |
◆ ToString()
|
inline |
◆ Update()
|
abstractinherited |
Updates the TD entity with the latest client data.
Implements OpenTD.IUpdatable.
◆ UpdateFromTD()
|
abstractinherited |
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
◆ _n
|
getset |
Do not use.
◆ Name
|
get |
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/UniqueNameObject.cs