CVehicleGadgetNodeData (#12)

This commit is contained in:
Ryan 2024-06-13 17:03:39 -04:00 committed by GitHub
parent 1d566f2332
commit c6c93b1286
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 22 additions and 0 deletions

View File

@ -13,6 +13,7 @@
#include "network/sync/player/CPlayerHealthData.hpp" #include "network/sync/player/CPlayerHealthData.hpp"
#include "network/sync/vehicle/CVehicleCreationData.hpp" #include "network/sync/vehicle/CVehicleCreationData.hpp"
#include "network/sync/vehicle/CVehicleProximityMigrationData.hpp" #include "network/sync/vehicle/CVehicleProximityMigrationData.hpp"
#include "network/sync/vehicle/CVehicleGadgetData.hpp"
#include "network/sync/CProjectBaseSyncDataNode.hpp" #include "network/sync/CProjectBaseSyncDataNode.hpp"
#include "network/sync/netSyncDataNode.hpp" #include "network/sync/netSyncDataNode.hpp"
#include "network/sync/netSyncNodeBase.hpp" #include "network/sync/netSyncNodeBase.hpp"

View File

@ -0,0 +1,21 @@
#pragma once
#include <cstdint>
class CGadgetData
{
public:
uint32_t m_type;
uint8_t m_data[0xF3];
};
static_assert(sizeof(CGadgetData) == 0xF8);
class CVehicleGadgetNodeData
{
public:
bool m_has_position;
char pad_0001[15];
float m_position[4];
uint32_t m_num_gadgets;
CGadgetData m_gadgets[2];
};
static_assert(sizeof(CVehicleGadgetNodeData) == 0x214); // Needs to be 0x220, prob from packing at 16.