mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-08 17:26:22 +01:00
feat(editor): a slip keeps in the scenery the radius of the main track it's bent with, as a switch does, the lists of the switches telling it as Rg: switch_store::main_radius_of gives it from the first path of a switch, classify takes it from there too; a slip laid on straights keeps 0
This commit is contained in:
@@ -72,6 +72,8 @@ double branch_radius(record const &Record);
|
||||
void put(record Entry, scene::layer_handle const Layer);
|
||||
void place(record &Entry, TTrack const &First);
|
||||
void classify(record &Entry, TTrack const &Switch);
|
||||
// of the first path of the switch, signed as record::main_radius: + to the right, - to the left, 0 straight
|
||||
double main_radius_of(TTrack const &Switch);
|
||||
void forget(std::string const &Name);
|
||||
// the records follow renamed switches: their parts and the records named after them; Bases renames the records of slips and
|
||||
// crossings, whose names aren't the names of their parts
|
||||
|
||||
Reference in New Issue
Block a user