Skip to main content

OpenTD reference 2026 R1

Class Script

Last update: 09.03.2026

Namespace: OpenTD
Assembly: OpenTD.dll

Base class that is useful for collecting several OpenTD scripts together and presenting them to your users with a common interface. Script is used by the official CRTech OpenTD Demos.

public abstract class Script

Inheritance

object ← Script

Inherited Members

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

Properties

WorkingDirectory

One working directory for all of your scripts to use.

public static string WorkingDirectory { get; set; }

Property Value

string

Methods

GetDescription()

public abstract string GetDescription()

Returns

string

GetKeywords()

public abstract string GetKeywords()

Returns

string

GetName()

public abstract string GetName()

Returns

string

Run()

public abstract void Run()

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