mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-27 05:59:32 +01:00
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:
1 parent
8d6b69f599
commit
ff562d1644
497 files changed
+11187
-771
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user