TU46 Test content and patches

TU46 Test content, added missing commits by amending commit and cherry-picking to new branch, ready for iggy guis and tu46 bug fixes
This commit is contained in:
Tranqlmao authored and DrPerkyLegit committed 2026-10-22 13:55:39 -04:00
1 parent 8d6b69f599
commit ff562d1644
497 files changed
+11187 -771

No files matched your search

+47
View File
@@ -0,0 +1,47 @@
#include "stdafx.h"
#include "InputOutputStream.h"
#include "PacketListener.h"
#include "MoveVehiclePacket.h"
MoveVehiclePacket::MoveVehiclePacket()
{
x = y = z = 0.0;
yRot = xRot = 0.0f;
}
MoveVehiclePacket::MoveVehiclePacket(double x, double y, double z, float yRot, float xRot)
{
this->x = x;
this->y = y;
this->z = z;
this->yRot = yRot;
this->xRot = xRot;
}
void MoveVehiclePacket::read(DataInputStream *dis)
{
x = dis->readDouble();
y = dis->readDouble();
z = dis->readDouble();
yRot = dis->readFloat();
xRot = dis->readFloat();
}
void MoveVehiclePacket::write(DataOutputStream *dos)
{
dos->writeDouble(x);
dos->writeDouble(y);
dos->writeDouble(z);
dos->writeFloat(yRot);
dos->writeFloat(xRot);
}
void MoveVehiclePacket::handle(PacketListener *listener)
{
listener->handleMoveVehicle(shared_from_this());
}
int MoveVehiclePacket::getEstimatedSize()
{
return 32;
}