This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
dev:core:train [2023-01-11 14:14] 56independent created to the best of my ability and knowledge |
dev:core:train [2023-01-12 11:56] ywang |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
'' | '' | ||
- | The `train` table is an essential | + | The '' |
- | `train` itself | + | The '' |
- | `train` holds a whole array of information about the train, some shown below: | + | Some fields |
- | ^ Key ^ Description ^ Unit ^ | + | ^ Key ^ Description ^ Type ^ |
- | | `speed_restriction` | The speed a train is allowed to go at | m/s | | + | | '' |
- | | `routingcode` | The routing code of a train | Minetest text encoding | + | | '' |
- | | `line` | The line of a train | Minetest text encoding | + | | '' |
- | | `velocity` | The speed of a train | m/s | | + | | '' |
- | | `movedir` | Direction of movement | + | | '' |
- | | `brake` | Wether brakes are enabled | bool | | + | | '' |
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | Note that the '' |