    

 ## On this page

  

 

 # OpenTD.IDomainManager Interface Reference

 Last update: 16.07.2025 

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

void [CreateDomain](#a4dcc4d6565f9e91754991fe2ba1129d8) (string domainName, [DomainType](namespace_open_t_d.xhtml#a32fac0407236002ba6e4819e5acdf724) type, IEnumerable&lt; [Connection](class_open_t_d_1_1_connection.xhtml) &gt; items) void [SetDomain](#a82bfb50232e8ae22bc9c63e075ee968e) (string domainName, [DomainType](namespace_open_t_d.xhtml#a32fac0407236002ba6e4819e5acdf724) type, IEnumerable&lt; [Connection](class_open_t_d_1_1_connection.xhtml) &gt; items) void [DeleteDomain](#a66032d5ba6de681bea661db433078e0d) (string domainName) void [GetDomainNames](#a9f0f1d888871c92faaee1101afeee02e) (out List&lt; string &gt; domainNames, out List&lt; string &gt; dbNames, out List&lt; [DomainType](namespace_open_t_d.xhtml#a32fac0407236002ba6e4819e5acdf724) &gt; domainTypes) List&lt; [Connection](class_open_t_d_1_1_connection.xhtml) &gt; [GetEdgeDomain](#aaf8ebe17c8025352fdedbbaa5fe124ed) (string domainName) List&lt; [Connection](class_open_t_d_1_1_connection.xhtml) &gt; [GetLumpDomain](#a1d1fd7a4634979941ce28cc4d0055c3b) (string domainName) List&lt; [Connection](class_open_t_d_1_1_connection.xhtml) &gt; [GetNodeDomain](#a34267d1404951f98530cecd1d34521bf) (string domainName) List&lt; [Node](class_open_t_d_1_1_node.xhtml) &gt; [GetDomainNodes](#a167d3fdd6462d740fe0fbcc08d046ebf) (string domainName) List&lt; [Connection](class_open_t_d_1_1_connection.xhtml) &gt; [GetPathDomain](#af5b46d23e00c4ce305d4a9ce4e36826b) (string domainName) List&lt; [Connection](class_open_t_d_1_1_connection.xhtml) &gt; [GetSolidDomain](#ad1b206846b3556811a8f21b2ab99f63b) (string domainName) List&lt; [Connection](class_open_t_d_1_1_connection.xhtml) &gt; [GetSurfaceDomain](#a7dd17388ef9534b222a733c6385596f7) (string domainName) List&lt; [EntityDescriptor](struct_open_t_d_1_1_entity_descriptor.xhtml) &gt; [GetAnysetDomain](#a9fe3883bd002bcb8f45f79791a7e3c54) (string domainName) List&lt; [EntityDescriptor](struct_open_t_d_1_1_entity_descriptor.xhtml) &gt; [GetDomain](#a32096b01705b4221fd58c4cd2a0fe398) (string domainName) void [RenameDomain](#aec508a6145d42139fe60fedb2f4da543) (string oldName, string newName) <a id="details" name="details"></a>## Detailed Description

Use to manage domains in TD. Use [ThermalDesktop.GetDomainManager()](class_open_t_d_1_1_thermal_desktop.xhtml#a30a394c484062ee0f91a4ae576cc4dd4 "Gets an IDomainManager for working with domains in this TD instance.") to get an [IDomainManager](interface_open_t_d_1_1_i_domain_manager.xhtml) for that instance of TD.

See also[OpenTD.ThermalDesktop](class_open_t_d_1_1_thermal_desktop.xhtml "Represents one instance of Thermal Desktop. This is the top-level class for interacting with OpenTD."), [OpenTD.ThermalDesktop.GetDomainManager](class_open_t_d_1_1_thermal_desktop.xhtml#a30a394c484062ee0f91a4ae576cc4dd4 "Gets an IDomainManager for working with domains in this TD instance.")

## Member Function Documentation

<a id="a4dcc4d6565f9e91754991fe2ba1129d8" name="a4dcc4d6565f9e91754991fe2ba1129d8"></a>## [◆ ](#a4dcc4d6565f9e91754991fe2ba1129d8)CreateDomain()

 void OpenTD.IDomainManager.CreateDomain  ( string *domainName*,    [DomainType](namespace_open_t_d.xhtml#a32fac0407236002ba6e4819e5acdf724) *type*,    IEnumerable&lt; [Connection](class_open_t_d_1_1_connection.xhtml) &gt; *items* )





<a id="a66032d5ba6de681bea661db433078e0d" name="a66032d5ba6de681bea661db433078e0d"></a>## [◆ ](#a66032d5ba6de681bea661db433078e0d)DeleteDomain()

 void OpenTD.IDomainManager.DeleteDomain  ( string *domainName*) 





<a id="a9fe3883bd002bcb8f45f79791a7e3c54" name="a9fe3883bd002bcb8f45f79791a7e3c54"></a>## [◆ ](#a9fe3883bd002bcb8f45f79791a7e3c54)GetAnysetDomain()

 List&lt; [EntityDescriptor](struct_open_t_d_1_1_entity_descriptor.xhtml) &gt; OpenTD.IDomainManager.GetAnysetDomain  ( string *domainName*) 





<a id="a32096b01705b4221fd58c4cd2a0fe398" name="a32096b01705b4221fd58c4cd2a0fe398"></a>## [◆ ](#a32096b01705b4221fd58c4cd2a0fe398)GetDomain()

 List&lt; [EntityDescriptor](struct_open_t_d_1_1_entity_descriptor.xhtml) &gt; OpenTD.IDomainManager.GetDomain  ( string *domainName*) 





<a id="a9f0f1d888871c92faaee1101afeee02e" name="a9f0f1d888871c92faaee1101afeee02e"></a>## [◆ ](#a9f0f1d888871c92faaee1101afeee02e)GetDomainNames()

 void OpenTD.IDomainManager.GetDomainNames  ( out List&lt; string &gt; *domainNames*,    out List&lt; string &gt; *dbNames*,    out List&lt; [DomainType](namespace_open_t_d.xhtml#a32fac0407236002ba6e4819e5acdf724) &gt; *domainTypes* )





<a id="a167d3fdd6462d740fe0fbcc08d046ebf" name="a167d3fdd6462d740fe0fbcc08d046ebf"></a>## [◆ ](#a167d3fdd6462d740fe0fbcc08d046ebf)GetDomainNodes()

 List&lt; [Node](class_open_t_d_1_1_node.xhtml) &gt; OpenTD.IDomainManager.GetDomainNodes  ( string *domainName*) 





<a id="aaf8ebe17c8025352fdedbbaa5fe124ed" name="aaf8ebe17c8025352fdedbbaa5fe124ed"></a>## [◆ ](#aaf8ebe17c8025352fdedbbaa5fe124ed)GetEdgeDomain()

 List&lt; [Connection](class_open_t_d_1_1_connection.xhtml) &gt; OpenTD.IDomainManager.GetEdgeDomain  ( string *domainName*) 





<a id="a1d1fd7a4634979941ce28cc4d0055c3b" name="a1d1fd7a4634979941ce28cc4d0055c3b"></a>## [◆ ](#a1d1fd7a4634979941ce28cc4d0055c3b)GetLumpDomain()

 List&lt; [Connection](class_open_t_d_1_1_connection.xhtml) &gt; OpenTD.IDomainManager.GetLumpDomain  ( string *domainName*) 





<a id="a34267d1404951f98530cecd1d34521bf" name="a34267d1404951f98530cecd1d34521bf"></a>## [◆ ](#a34267d1404951f98530cecd1d34521bf)GetNodeDomain()

 List&lt; [Connection](class_open_t_d_1_1_connection.xhtml) &gt; OpenTD.IDomainManager.GetNodeDomain  ( string *domainName*) 





<a id="af5b46d23e00c4ce305d4a9ce4e36826b" name="af5b46d23e00c4ce305d4a9ce4e36826b"></a>## [◆ ](#af5b46d23e00c4ce305d4a9ce4e36826b)GetPathDomain()

 List&lt; [Connection](class_open_t_d_1_1_connection.xhtml) &gt; OpenTD.IDomainManager.GetPathDomain  ( string *domainName*) 





<a id="ad1b206846b3556811a8f21b2ab99f63b" name="ad1b206846b3556811a8f21b2ab99f63b"></a>## [◆ ](#ad1b206846b3556811a8f21b2ab99f63b)GetSolidDomain()

 List&lt; [Connection](class_open_t_d_1_1_connection.xhtml) &gt; OpenTD.IDomainManager.GetSolidDomain  ( string *domainName*) 





<a id="a7dd17388ef9534b222a733c6385596f7" name="a7dd17388ef9534b222a733c6385596f7"></a>## [◆ ](#a7dd17388ef9534b222a733c6385596f7)GetSurfaceDomain()

 List&lt; [Connection](class_open_t_d_1_1_connection.xhtml) &gt; OpenTD.IDomainManager.GetSurfaceDomain  ( string *domainName*) 





<a id="aec508a6145d42139fe60fedb2f4da543" name="aec508a6145d42139fe60fedb2f4da543"></a>## [◆ ](#aec508a6145d42139fe60fedb2f4da543)RenameDomain()

 void OpenTD.IDomainManager.RenameDomain  ( string *oldName*,    string *newName* )





<a id="a82bfb50232e8ae22bc9c63e075ee968e" name="a82bfb50232e8ae22bc9c63e075ee968e"></a>## [◆ ](#a82bfb50232e8ae22bc9c63e075ee968e)SetDomain()

 void OpenTD.IDomainManager.SetDomain  ( string *domainName*,    [DomainType](namespace_open_t_d.xhtml#a32fac0407236002ba6e4819e5acdf724) *type*,    IEnumerable&lt; [Connection](class_open_t_d_1_1_connection.xhtml) &gt; *items* )





---

The documentation for this interface was generated from the following file:- C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/OpenTD/OpenTD/**DomainManager.cs**