Skip to main content

OpenTD .NET8 reference 2025 R2

OpenTD.CaseSetManager Class Reference

Last update: 16.07.2025

Use the CaseSetManager to run cases in batch mode, or to perform other operations available in TD's Case Set Manager. More...

Inheritance diagram for OpenTD.CaseSetManager:
OpenTD.TdConnectedOpenTD.IUpdatable

Public Member Functions

 CaseSetManager (ThermalDesktop _td)
 
List< CaseSetGetCaseSets ()
 
CaseSet Add (string name, string groupName="", string sindaFilenames="")
 
void Rename (string name, string groupName, string newName, string newGroupName)
 
void Delete (string name, string groupName="")
 
void Run (string name, string groupName="", bool useOldMethod=false)
 Run one case. Set useOldMethod to true for a less-verbose run method that may not be compatible with every case configuration.
 
void Run (IEnumerable< int > caseIndices)
 Run multiple cases, just like selecting them and pressing the run button in the GUI. Use this method to run cases using TD batch mode.
 
bool IsCaseRunning ()
 Some types of cases return control to TD before they finish. Example: cases involving Dynamic Sinda. This also means they return control to OpenTD before the case finishes. Use this method to check whether a given TD instance is currently running this kind of case. This method is currently experimental.
 
void Update ()
 Updates the TD entity with the latest client data.
 
void UpdateFromTD ()
 Updates the client-side instance with the latest data from the TD entity.
 

Properties

CaseSetManagerOptions Options [get]
 

Detailed Description

Use the CaseSetManager to run cases in batch mode, or to perform other operations available in TD's Case Set Manager.

See also
OpenTD.CaseSet

Constructor & Destructor Documentation

◆ CaseSetManager()

OpenTD.CaseSetManager.CaseSetManager ( ThermalDesktop _td)
inline

Member Function Documentation

◆ Add()

CaseSet OpenTD.CaseSetManager.Add ( string name,
string groupName = "",
string sindaFilenames = "" )
inline

◆ Delete()

void OpenTD.CaseSetManager.Delete ( string name,
string groupName = "" )
inline

◆ GetCaseSets()

List< CaseSet > OpenTD.CaseSetManager.GetCaseSets ( )
inline

◆ IsCaseRunning()

bool OpenTD.CaseSetManager.IsCaseRunning ( )
inline

Some types of cases return control to TD before they finish. Example: cases involving Dynamic Sinda. This also means they return control to OpenTD before the case finishes. Use this method to check whether a given TD instance is currently running this kind of case. This method is currently experimental.

Returns

◆ Rename()

void OpenTD.CaseSetManager.Rename ( string name,
string groupName,
string newName,
string newGroupName )
inline

◆ Run() [1/2]

void OpenTD.CaseSetManager.Run ( IEnumerable< int > caseIndices)
inline

Run multiple cases, just like selecting them and pressing the run button in the GUI. Use this method to run cases using TD batch mode.

Parameters
caseIndices

◆ Run() [2/2]

void OpenTD.CaseSetManager.Run ( string name,
string groupName = "",
bool useOldMethod = false )
inline

Run one case. Set useOldMethod to true for a less-verbose run method that may not be compatible with every case configuration.

Parameters
name
groupName
useOldMethod

◆ Update()

void OpenTD.CaseSetManager.Update ( )
inline

Updates the TD entity with the latest client data.

Implements OpenTD.IUpdatable.

◆ UpdateFromTD()

void OpenTD.CaseSetManager.UpdateFromTD ( )
inline

Updates the client-side instance with the latest data from the TD entity.

Implements OpenTD.IUpdatable.

Property Documentation

◆ Options

CaseSetManagerOptions OpenTD.CaseSetManager.Options
get

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

Connect with Ansys