mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-31 08:50:52 +01:00
feat(scenery): models laid along curves (sweep nodes), bent to follow the paths or repeated along them, loaded and saved with the scenery; trainsets put on a path while the simulation runs; trainset turned around by reversed after its header: the first vehicle stays at the offset and leads towards point 1, the rest stands behind it; launcher keeps reversed trainsets and can turn one around; memory cells saved with the new name of the path they name; events tell their targets and the events of a multiple event; renderer tells whether the cursor is over a surface; vehicle placed in the editor entered when the driving goes on
This commit is contained in:
@@ -95,6 +95,10 @@ void scenery_scanner::parse_trainset(cParser &parser)
|
||||
parser >> trainset.name >> trainset.track >> trainset.offset >> trainset.velocity;
|
||||
|
||||
parser.getTokens();
|
||||
if (parser.peek() == "reversed") {
|
||||
trainset.reversed = true;
|
||||
parser.getTokens();
|
||||
}
|
||||
while (parser.peek() == "node") {
|
||||
trainset.vehicles.emplace_back();
|
||||
dynamic_desc &dyn = trainset.vehicles.back();
|
||||
|
||||
Reference in New Issue
Block a user