Quick Code Guide

Note

This guide is work in progress.

Here’s a brief rundown of the source. This is not extensive, but a quick brief on where things are and what they do, so u can get the concept of how it works.

Also note that this quide is written against develop branch, so some stuff is probably incorrect as the project moves forward.

Data

  • From v0.6 and current develop branch, simulation data is stored in json. (no more sqlite).
  • Simulation data is also saved/shared in the ts2-data repository.

Startup

Track Items

Track items are objects and scenery within the simulation, such as:

The base for most track items is the abstract TrackItem class.

Signals