Class Script
Last update: 09.03.2026Namespace: 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
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
Methods
GetDescription()
public abstract string GetDescription()
Returns
GetKeywords()
public abstract string GetKeywords()
Returns
GetName()
public abstract string GetName()
Returns
Run()
public abstract void Run()
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
A string that represents the current object.