Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tnc1997/dart-train-simulator-client

A client for accessing Train Simulator.
https://github.com/tnc1997/dart-train-simulator-client

client dart train-simulator

Last synced: 4 days ago
JSON representation

A client for accessing Train Simulator.

Awesome Lists containing this project

README

        

# Train Simulator Client

A client for accessing Train Simulator.

## Usage

A simple usage example:

```dart
import 'package:train_simulator_client/train_simulator_client.dart';

Future main() async {
final client = TrainSimulatorClient(
rootPath: 'C:\\Program Files (x86)\\Steam\\steamapps\\common\\RailWorks',
);

await for (final directory in client.routes.list()) {
print(await client.routes.readRouteProperties(directory));
}

await for (final directory in client.scenarios.list()) {
print(await client.scenarios.readScenarioProperties(directory));
}
}
```

## Features and bugs

Please file feature requests and bugs at the [issue tracker][tracker].

[tracker]: https://github.com/tnc1997/dart-train-simulator-client/issues