Skip to main content

OpenTD reference 2026 R1

Class UniqueNameObject

Last update: 09.03.2026

Namespace: OpenTD
Assembly: OpenTD.dll

An object that is uniquely-identified by its name, instead of, for example, an AutoCAD handle.

[DataContract]
public abstract class UniqueNameObject : OpenTDObject, IUpdatable

Inheritance

object ← OpenTDObject ← UniqueNameObject

Derived

Dataset

Implements

IUpdatable

Inherited Members

OpenTDObject.SetFrom(OpenTDObject), OpenTDObject.Update(), OpenTDObject.UpdateFromTD(), OpenTDObject.UpdateIn(ThermalDesktop), OpenTDObject.CreateIn(ThermalDesktop), OpenTDObject.TdProxy, object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()

Properties

Name

This object is uniquely-identified by this name.

public string Name { get; }

Property Value

string

_n

Do not use.

[DataMember]
public string _n { get; set; }

Property Value

string

Methods

ModifyName(string)

protected virtual string ModifyName(string name)

Parameters

name string

Returns

string

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

string

A string that represents the current object.

See Also

OpenTDObject

Connect with Ansys