18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-20 22:04:59 +01:00

Merge branch 'master' into feat/renderers-cleanup

This commit is contained in:
2026-11-16 21:44:48 +01:00
264 changed files with 41203 additions and 10041 deletions

View File

@@ -940,6 +940,9 @@ public:
// legacy method, sends list of vehicles over network
void
DynamicList( bool const Onlycontrolled = false ) const;
// records the odometer states of the vehicles and saves them for the next sessions
void
save_odometers();
private:
// maintenance; removes from tracks consists with vehicles marked as disabled
@@ -952,6 +955,13 @@ private:
std::vector<std::vector<std::uint32_t>> m_groups;
std::vector<std::uint32_t> m_threadgroups;
std::vector<std::uint32_t> m_maingroups;
// marks the vehicles the physical coupler model covers (couplerphysics yes in eu07.ini): the player's train and
// the trains it closes in on
void
update_coupler_physics() const;
double m_odometersavetimer { 0.0 }; // simulation time since the odometers were last saved
};