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

Merge feat/eu07m-skin-compute into feat/eu07m-clip-event

This commit is contained in:
maj00r
2026-11-30 00:33:50 +01:00
366 changed files with 74634 additions and 59192 deletions
+13 -12
View File
@@ -34,6 +34,7 @@ http://mozilla.org/MPL/2.0/.
#include "utilities/Timer.h"
#include "utilities/Logs.h"
#include "widgets/map_objects.h"
#include "physics/vehicle.h"
#include <format>
@@ -729,7 +730,7 @@ putvalues_event::run_() {
else {
// przekazanie do pojazdu
WriteLog( " Vehicle: [" + m_activator->name() +"]" );
m_activator->MoverParameters->PutCommand(
m_activator->physics->PutCommand(
m_input.data_text,
m_input.data_value_1,
m_input.data_value_2,
@@ -1041,7 +1042,7 @@ whois_event::run_() {
m_activator->ctOwner ) };
auto const consistbrakelevel { (
owner != nullptr ?
owner->fReady :
owner->BrakesReleaseLevel() :
-1.0 ) };
auto const collisiondistance { (
owner != nullptr ?
@@ -1049,30 +1050,30 @@ whois_event::run_() {
-1.0 ) };
targetcell->UpdateValues(
m_activator->MoverParameters->TypeName, // typ pojazdu
m_activator->physics->TypeName, // typ pojazdu
consistbrakelevel,
collisiondistance,
m_input.flags & ( flags::text | flags::value1 | flags::value2 ) );
WriteLog(
"Type: WhoIs (" + std::to_string( m_input.flags ) + ") - "
+ "[type: " + m_activator->MoverParameters->TypeName + "], "
+ "[type: " + m_activator->physics->TypeName + "], "
+ "[consist brake level: " + to_string( consistbrakelevel, 2 ) + "], "
+ "[obstacle distance: " + to_string( collisiondistance, 2 ) + " m]" );
}
else {
// jeśli parametry ładunku
targetcell->UpdateValues(
m_activator->MoverParameters->LoadType.name, // nazwa ładunku
m_activator->MoverParameters->LoadAmount, // aktualna ilość
m_activator->MoverParameters->MaxLoad, // maksymalna ilość
m_activator->physics->LoadType.name, // nazwa ładunku
m_activator->physics->LoadAmount(), // aktualna ilość
m_activator->physics->MaxLoad(), // maksymalna ilość
m_input.flags & ( flags::text | flags::value1 | flags::value2 ) );
WriteLog(
"Type: WhoIs (" + std::to_string( m_input.flags ) + ") - "
+ "[load type: " + m_activator->MoverParameters->LoadType.name + "], "
+ "[current load: " + to_string( m_activator->MoverParameters->LoadAmount, 2 ) + "], "
+ "[max load: " + to_string( m_activator->MoverParameters->MaxLoad, 2 ) + "]" );
+ "[load type: " + m_activator->physics->LoadType.name + "], "
+ "[current load: " + to_string( m_activator->physics->LoadAmount(), 2 ) + "], "
+ "[max load: " + to_string( m_activator->physics->MaxLoad(), 2 ) + "]" );
}
}
// +8
@@ -1080,14 +1081,14 @@ whois_event::run_() {
targetcell->UpdateValues(
m_activator->asDestination, // adres docelowy
m_activator->DirectionGet(), // kierunek pojazdu względem czoła składu (1=zgodny,-1=przeciwny)
m_activator->MoverParameters->Power, // moc pojazdu silnikowego: 0 dla wagonu
m_activator->physics->Power, // moc pojazdu silnikowego: 0 dla wagonu
m_input.flags & ( flags::text | flags::value1 | flags::value2 ) );
WriteLog(
"Type: WhoIs (" + std::to_string( m_input.flags ) + ") - "
+ "[destination: " + m_activator->asDestination + "], "
+ "[direction: " + std::to_string( m_activator->DirectionGet() ) + "], "
+ "[engine power: " + to_string( m_activator->MoverParameters->Power, 2 ) + "]" );
+ "[engine power: " + to_string( m_activator->physics->Power, 2 ) + "]" );
}
// +0
else {