Quick Code Guide¶
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.
v0.6and current develop branch, simulation data is stored in json. (no more sqlite).
- Simulation data is also saved/shared in the ts2-data repository.
Track items are objects and scenery within the simulation, such as:
LineItem- a simple ‘track’ used to connect other item
PointsItem- a three way junction
PlatformItem- a colored rectangle to symbolise a platform
SignalItem- a signal of -
TextItem- display some text on layout
InvisibleLinkItem- as line, but not shown on scenery
The base for most track items is the abstract