    

 ## On this page

  

 

 # Class Script

 Last update: 09.03.2026 

Namespace: [OpenTD](OpenTD.md)  
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.

```csharp
public abstract class Script

```

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [Script](OpenTD.Script.md)

## Inherited Members

[object.Equals(object?)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)), [object.Equals(object?, object?)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)), [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode), [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype), [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone), [object.ReferenceEquals(object?, object?)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Properties

### WorkingDirectory

One working directory for all of your scripts to use.

```csharp
public static string WorkingDirectory { get; set; }

```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

## Methods

### GetDescription()

```csharp
public abstract string GetDescription()

```

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

### GetKeywords()

```csharp
public abstract string GetKeywords()

```

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

### GetName()

```csharp
public abstract string GetName()

```

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

### Run()

```csharp
public abstract void Run()

```

### ToString()

Returns a string that represents the current object.

```csharp
public override string ToString()

```

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

A string that represents the current object.