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.

[MessagePackObject(true)]
public class NameData

Inheritance

object ← NameData

Inherited Members

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

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

public int Id { get; set; }

Property Value

int

Submodel

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