Class UniqueNameObject
Last update: 09.03.2026Namespace: OpenTD
Assembly: OpenTD.dll
An object that is uniquely-identified by its name, instead of, for example, an AutoCAD handle.
[Union(0, typeof(MaterialStackData))]
[Union(1, typeof(Dataset))]
[Union(2, typeof(OpticalPropsData))]
[Union(3, typeof(SubmodelData))]
[Union(4, typeof(SymbolData))]
[Union(5, typeof(ThermoPropsData))]
public abstract class UniqueNameObject : OpenTDObject, IUpdatable
Inheritance
object ← OpenTDObject ← UniqueNameObject
Derived
Implements
Inherited Members
OpenTDObject.SetFrom(OpenTDObject), OpenTDObject.Update(), OpenTDObject.UpdateFromTD(), OpenTDObject.UpdateIn(ThermalDesktop), OpenTDObject.CreateIn(ThermalDesktop), OpenTDObject.TdProxy, object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Properties
Name
This object is uniquely-identified by this name.
public string Name { get; }
Property Value
_n
Do not use.
public string _n { get; set; }
Property Value
Methods
ModifyName(string)
protected virtual string ModifyName(string name)
Parameters
name string
Returns
ProxyRename(string, string)
protected abstract void ProxyRename(string from, string to)
Parameters
from string
to string
Rename(string)
Use this method to rename the client-side object and the TD item it is linked to.
public virtual void Rename(string to)
Parameters
to string
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
A string that represents the current object.