17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-08 22:07:20 +01:00

Merge branch 'master' into feat/renderers-cleanup

This commit is contained in:
2026-11-07 16:44:51 +01:00
177 changed files with 11657 additions and 833 deletions

View File

@@ -107,7 +107,8 @@ class editor_track
static bool can_edit_geometry(TTrack const &Track, std::string &Reason);
static bool is_supported(TTrack const &Track);
static void commit(std::vector<TTrack *> const &Tracks);
// Dragging: on the way, what follows them from further off waits for the commit at the end of it
static void commit(std::vector<TTrack *> const &Tracks, bool const Dragging = false);
static void commit_parameters(TTrack &Track);
static glm::dvec3 point_position(TTrack const &Track, point_ref const &Point);
@@ -568,6 +569,8 @@ class editor_track
static void bind_switch_path(TTrack &Switch, int const Path);
static void store_switch_path(TTrack &Switch, int const Path);
static void rebuild_geometry(TTrack &Track);
// adds the tracks whose shape goes by a change of the given from further off: by the switches they meet, and by rail joints running on through them
static void add_followers(std::vector<TTrack *> &Tracks);
static TTrack *clone(TTrack const &Template, std::string const &Name = {});
static TTrack *load_text(std::string const &Text, TTrack const *Template, std::string const &Name);
static void move_straight(straight const &Line, glm::dvec3 const &Start, glm::dvec3 const &End, std::function<bool(TTrack const *)> const &Member);