Skip to main content

OpenTD .NET4 reference 2025 R2

OpenTD.Script Class Reference

Last update: 16.07.2025

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. More...

Public Member Functions

string GetName ()
 
string GetDescription ()
 
string GetKeywords ()
 
void Run ()
 
override string ToString ()
 

Properties

static string WorkingDirectory [get, set]
 One working directory for all of your scripts to use.
 

Detailed Description

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.

Member Function Documentation

◆ GetDescription()

string OpenTD.Script.GetDescription ( )
abstract

◆ GetKeywords()

string OpenTD.Script.GetKeywords ( )
abstract

◆ GetName()

string OpenTD.Script.GetName ( )
abstract

◆ Run()

void OpenTD.Script.Run ( )
abstract

◆ ToString()

override string OpenTD.Script.ToString ( )
inline

Property Documentation

◆ WorkingDirectory

string OpenTD.Script.WorkingDirectory
staticgetset

One working directory for all of your scripts to use.


The documentation for this class was generated from the following file:
  • C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/TDDEV_ALPHA/buildXX/OpenTD/Script.cs

Connect with Ansys