    

 ## On this page

  

 

 # OpenTD.Script Class Reference

 Last update: 16.07.2025 

Base class that is useful for collecting several [OpenTD](namespace_open_t_d.xhtml "Base Thermal Desktop functionality.") scripts together and presenting them to your users with a common interface. [Script](class_open_t_d_1_1_script.xhtml "Base class that is useful for collecting several OpenTD scripts together and presenting them to your ...") is used by the official CRTech [OpenTD](namespace_open_t_d.xhtml "Base Thermal Desktop functionality.") Demos. [More...](#details)

## <a id="pub-methods" name="pub-methods"></a>Public Member Functions

string [GetName](#a2eb4c004eb1630efba8bbd2f6ed7c77c) () string [GetDescription](#a3d728dcc64c2ef2a7e202c358d0ac52e) () string [GetKeywords](#abbaf2383a348aacbd1443f57c637894e) () void [Run](#a19c2812a624a95cbd4b10a7b9efe0b7e) () override string [ToString](#a528cd844d14ff61d8981df7443d04197) () ## <a id="properties" name="properties"></a>Properties

static string [WorkingDirectory](#a215015e5a4731aa4135ba99995819753)` [get, set]` One working directory for all of your scripts to use.   
 <a id="details" name="details"></a>## Detailed Description

Base class that is useful for collecting several [OpenTD](namespace_open_t_d.xhtml "Base Thermal Desktop functionality.") scripts together and presenting them to your users with a common interface. [Script](class_open_t_d_1_1_script.xhtml "Base class that is useful for collecting several OpenTD scripts together and presenting them to your ...") is used by the official CRTech [OpenTD](namespace_open_t_d.xhtml "Base Thermal Desktop functionality.") Demos.



## Member Function Documentation

<a id="a3d728dcc64c2ef2a7e202c358d0ac52e" name="a3d728dcc64c2ef2a7e202c358d0ac52e"></a>## [◆ ](#a3d728dcc64c2ef2a7e202c358d0ac52e)GetDescription()

 string OpenTD.Script.GetDescription  ( )   abstract 





<a id="abbaf2383a348aacbd1443f57c637894e" name="abbaf2383a348aacbd1443f57c637894e"></a>## [◆ ](#abbaf2383a348aacbd1443f57c637894e)GetKeywords()

 string OpenTD.Script.GetKeywords  ( )   abstract 





<a id="a2eb4c004eb1630efba8bbd2f6ed7c77c" name="a2eb4c004eb1630efba8bbd2f6ed7c77c"></a>## [◆ ](#a2eb4c004eb1630efba8bbd2f6ed7c77c)GetName()

 string OpenTD.Script.GetName  ( )   abstract 





<a id="a19c2812a624a95cbd4b10a7b9efe0b7e" name="a19c2812a624a95cbd4b10a7b9efe0b7e"></a>## [◆ ](#a19c2812a624a95cbd4b10a7b9efe0b7e)Run()

 void OpenTD.Script.Run  ( )   abstract 





<a id="a528cd844d14ff61d8981df7443d04197" name="a528cd844d14ff61d8981df7443d04197"></a>## [◆ ](#a528cd844d14ff61d8981df7443d04197)ToString()

 override string OpenTD.Script.ToString  ( )   inline 





## Property Documentation

<a id="a215015e5a4731aa4135ba99995819753" name="a215015e5a4731aa4135ba99995819753"></a>## [◆ ](#a215015e5a4731aa4135ba99995819753)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**