Class DatasetFactory
Last update: 09.03.2026Namespace: OpenTD.Results.Dataset
Assembly: OpenTD.Results.dll
Use to load various datasets from disk.
public static class DatasetFactory
Inheritance
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
Load(string)
With the supplied pathname, this method will determine whether it is a savX, CSR, or sav and return an IDataset that can be used to access it.
public static IDataset Load(string pathname)
Parameters
pathname string
Returns
Exceptions
OpenTDException
LoadRadkDatabase(string, string, bool)
With the supplied radk path This method will generate a radk class instance
public static RadkDatabase LoadRadkDatabase(string directoryPath, string fileName, bool isHeatrate)
Parameters
directoryPath string
fileName string
isHeatrate bool
Returns
Exceptions
OpenTDException