    

 ## On this page

  

 

 # OpenTD.CaseSetManager Class Reference

 Last update: 16.07.2025 

Use the [CaseSetManager](class_open_t_d_1_1_case_set_manager.xhtml "Use the CaseSetManager to run cases in batch mode, or to perform other operations available in TD's C...") to run cases in batch mode, or to perform other operations available in TD's Case Set Manager. [More...](#details)

Inheritance diagram for OpenTD.CaseSetManager:

 ![](/sites/default/files/migrate-content/opentd_refefence_net_8_2025_r2_doc_1/class_open_t_d_1_1_case_set_manager.png)



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

 [CaseSetManager](#a727fdc6fb75205ef2fcf78858525a421) ([ThermalDesktop](class_open_t_d_1_1_thermal_desktop.xhtml) \_td) List&lt; [CaseSet](class_open_t_d_1_1_case_set.xhtml) &gt; [GetCaseSets](#a2d8fd24a900de6bd5520a3b11748e534) () [CaseSet](class_open_t_d_1_1_case_set.xhtml) [Add](#a3d850fc8e8e45e31376f56a82e47791c) (string name, string groupName="", string sindaFilenames="") void [Rename](#a61761ff35dca0540eec74c28f02bb051) (string name, string groupName, string newName, string newGroupName) void [Delete](#a2d6685652f4fd2afd3894e4afcf42910) (string name, string groupName="") void [Run](#a395ee6fa6edc924e7a7cfc0eb81aaca7) (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](#a7de51d83a27f910b402123c2bc92a6d3) (IEnumerable&lt; int &gt; 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](#a515ad34f6486161111d7cab17f64aa47) () Some types of cases return control to TD before they finish. Example: cases involving Dynamic Sinda. This also means they return control to [OpenTD](namespace_open_t_d.xhtml "Base Thermal Desktop functionality.") 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](#a5709fd246dfbed52a029f3b621d03ec0) () Updates the TD entity with the latest client data.   
 void [UpdateFromTD](#aff0927db6de95d73b60c22cd91091792) () Updates the client-side instance with the latest data from the TD entity.   
 ## <a id="properties" name="properties"></a>Properties

[CaseSetManagerOptions](class_open_t_d_1_1_case_set_manager_options.xhtml) [Options](#a1fac0495361317962ee9baea4398e85c)` [get]` <a id="details" name="details"></a>## Detailed Description

Use the [CaseSetManager](class_open_t_d_1_1_case_set_manager.xhtml "Use the CaseSetManager to run cases in batch mode, or to perform other operations available in TD's C...") to run cases in batch mode, or to perform other operations available in TD's Case Set Manager.

See also[OpenTD.CaseSet](class_open_t_d_1_1_case_set.xhtml "Client-side representation of a Case Set in a TD instance.")

## Constructor &amp; Destructor Documentation

<a id="a727fdc6fb75205ef2fcf78858525a421" name="a727fdc6fb75205ef2fcf78858525a421"></a>## [◆ ](#a727fdc6fb75205ef2fcf78858525a421)CaseSetManager()

 OpenTD.CaseSetManager.CaseSetManager  ( [ThermalDesktop](class_open_t_d_1_1_thermal_desktop.xhtml) *\_td*)   inline 





## Member Function Documentation

<a id="a3d850fc8e8e45e31376f56a82e47791c" name="a3d850fc8e8e45e31376f56a82e47791c"></a>## [◆ ](#a3d850fc8e8e45e31376f56a82e47791c)Add()

 [CaseSet](class_open_t_d_1_1_case_set.xhtml) OpenTD.CaseSetManager.Add  ( string *name*,    string *groupName* = "",    string *sindaFilenames* = "" )  inline 





<a id="a2d6685652f4fd2afd3894e4afcf42910" name="a2d6685652f4fd2afd3894e4afcf42910"></a>## [◆ ](#a2d6685652f4fd2afd3894e4afcf42910)Delete()

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





<a id="a2d8fd24a900de6bd5520a3b11748e534" name="a2d8fd24a900de6bd5520a3b11748e534"></a>## [◆ ](#a2d8fd24a900de6bd5520a3b11748e534)GetCaseSets()

 List&lt; [CaseSet](class_open_t_d_1_1_case_set.xhtml) &gt; OpenTD.CaseSetManager.GetCaseSets  ( )   inline 





<a id="a515ad34f6486161111d7cab17f64aa47" name="a515ad34f6486161111d7cab17f64aa47"></a>## [◆ ](#a515ad34f6486161111d7cab17f64aa47)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](namespace_open_t_d.xhtml "Base Thermal Desktop functionality.") 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



<a id="a61761ff35dca0540eec74c28f02bb051" name="a61761ff35dca0540eec74c28f02bb051"></a>## [◆ ](#a61761ff35dca0540eec74c28f02bb051)Rename()

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





<a id="a7de51d83a27f910b402123c2bc92a6d3" name="a7de51d83a27f910b402123c2bc92a6d3"></a>## [◆ ](#a7de51d83a27f910b402123c2bc92a6d3)Run() \[1/2\]

 void OpenTD.CaseSetManager.Run  ( IEnumerable&lt; int &gt; *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



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



<a id="a5709fd246dfbed52a029f3b621d03ec0" name="a5709fd246dfbed52a029f3b621d03ec0"></a>## [◆ ](#a5709fd246dfbed52a029f3b621d03ec0)Update()

 void OpenTD.CaseSetManager.Update  ( )   inline 

Updates the TD entity with the latest client data.

Implements [OpenTD.IUpdatable](interface_open_t_d_1_1_i_updatable.xhtml#a162ef7c717f51047a1d45c7df4282470).





<a id="aff0927db6de95d73b60c22cd91091792" name="aff0927db6de95d73b60c22cd91091792"></a>## [◆ ](#aff0927db6de95d73b60c22cd91091792)UpdateFromTD()

 void OpenTD.CaseSetManager.UpdateFromTD  ( )   inline 

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

Implements [OpenTD.IUpdatable](interface_open_t_d_1_1_i_updatable.xhtml#a47f3096415cfb5694fd822df8a1eceb0).





## Property Documentation

<a id="a1fac0495361317962ee9baea4398e85c" name="a1fac0495361317962ee9baea4398e85c"></a>## [◆ ](#a1fac0495361317962ee9baea4398e85c)Options

 [CaseSetManagerOptions](class_open_t_d_1_1_case_set_manager_options.xhtml) 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**