18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-02 00:22:42 +01:00

Merge branch 'feat/eu07m-gref' into feat/eu07m-model-inspector

The base split vehicle/DynObj.cpp into vehicle/dynamic/*: the holds of the editor on the parts and the pantographs move with
it. The table and the functions of the holds go to the end of vehicle/dynamic/visual.cpp, the held lamps and hooks are applied
in ABuLittleUpdate there, and a held pantograph is moved at the start of updatePantographMotion (vehicle/dynamic/update.cpp),
which skips the pressure-driven motion as the old loop did with continue. DynObj.h keeps both sides: the LightList of the
VehicleEnd rename and the holds.

The two reads of MoverParameters this branch added go through TDynamicObject, as the base's AGENTS.md asks outside physics/
and vehicle/: GetLength() for the fly-to distance, and a new query OccupiedCab() for the side of the cab entered.
This commit is contained in:
maj00r
2026-11-30 21:27:25 +01:00
368 changed files with 74800 additions and 59335 deletions
+10
View File
@@ -27,6 +27,7 @@ http://mozilla.org/MPL/2.0/.
#include "utilities/Timer.h"
#include "utilities/Logs.h"
#include "rendering/renderer.h"
#include "vehicle/DynObj.h"
std::list<std::weak_ptr<TAnimContainer>> TAnimModel::acAnimList;
@@ -581,6 +582,15 @@ void TAnimModel::update_instanceable_flag() {
++s_instanceable_total;
}
void TAnimModel::draw_alone() {
if( m_instanceable ) {
++s_instanceable_revoked;
m_instanceable = false;
++scene::node_state_version;
}
}
std::shared_ptr<TAnimContainer> TAnimModel::AddContainer(std::string const &Name)
{ // dodanie sterowania submodelem dla egzemplarza
if (!pModel)