Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/tnc1997/dart-train-simulator-client
- Owner: tnc1997
- License: mit
- Created: 2020-09-30T09:40:27.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-22T16:19:50.000Z (over 2 years ago)
- Last Synced: 2023-03-01T06:16:49.643Z (over 1 year ago)
- Topics: client, dart, train-simulator
- Language: Dart
- Homepage:
- Size: 306 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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