OpenTD.Results.Dataset.CompareData Class Reference
Last update: 16.07.2025
Inheritance diagram for OpenTD.Results.Dataset.CompareData:

Public Member Functions | |
| CompareData (IComparerInput comparerInput, IComparerOutput comparerOutput) | |
| void | Compare (string name, DataSubtype subtype, IEnumerable< string > commonNames, IEnumerable< long > commonIndicesA, IEnumerable< long > commonIndicesB, bool msgOnSuccess=true) |
| This method implements the comparison algorithm. | |
Properties | |
| IComparerInput | ComparerInput [get, set] |
| The Comparer will send data from the datasets through this member. | |
| IComparerOutput | ComparerOutput [get, set] |
| Send output from the comparison to the Comparer through this member. | |
Constructor & Destructor Documentation
◆ CompareData()
|
inline |
Member Function Documentation
◆ Compare()
|
abstract |
This method implements the comparison algorithm.
- Parameters
-
name This is a descriptive name for the data being compared. Use it in ComparerOutput messages. subtype This is the type of data (T, TL, etc.) to compare. commonNames This is a list of Sinda names (MAIN.1, WALL.100, etc.) of entities that hold data of subtype and are common to both datasets. For example, if subtype is PL, then commonNames would be names of lumps that are common between the datasets. The comparison should be performed over all of the items in this list. commonIndicesA These are the internal indices to the commonNames list for Dataset A. commonIndicesB These are the internal indices to the commonNames list for Dataset B. msgOnSuccess If true, use ComparerOutput to write a message if this comparison is successful.
Implements OpenTD.Results.Dataset.ICompareData.
Property Documentation
◆ ComparerInput
|
getset |
The Comparer will send data from the datasets through this member.
Implements OpenTD.Results.Dataset.ICompareData.
◆ ComparerOutput
|
getset |
Send output from the comparison to the Comparer through this member.
Implements OpenTD.Results.Dataset.ICompareData.
The documentation for this class was generated from the following file:
- C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/OpenTD/OpenTD.Results/Dataset/CompareData.cs