Skip to main content

OpenTD reference 2026 R1

Class NameData

Last update: 09.03.2026

Namespace: OpenTD
Assembly: OpenTD.dll

A Sinda name, e.g., MAIN.1.

[DataContract]
public class NameData

Inheritance

object ← NameData

Inherited Members

object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()

Constructors

NameData()

Initializes a new instance of the class.

public NameData()

NameData(string, int)

Initializes a new instance of the class.

public NameData(string submodel, int id)

Parameters

submodel string

The submodel.

id int

The ID.

Properties

Id

[DataMember]
public int Id { get; set; }

Property Value

int

Submodel

[DataMember]
public SubmodelNameData Submodel { get; set; }

Property Value

SubmodelNameData

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Connect with Ansys