source2sdk/sdk/include/source2sdk/client/CBuoyancyHelper.hpp

53 lines
2.5 KiB
C++
Raw Normal View History

2024-09-10 22:33:16 +00:00
#pragma once
#include "source2sdk/source2gen.hpp"
#include <cstddef>
#include <cstdint>
// /////////////////////////////////////////////////////////////
// Module: client
// Created using source2gen - github.com/neverlosecc/source2gen
// /////////////////////////////////////////////////////////////
namespace source2sdk::client
{
// Registered alignment: unknown
2024-11-08 14:13:12 +00:00
// Alignment: 0x8
2024-09-10 22:33:16 +00:00
// Standard-layout class: true
2024-11-08 14:13:12 +00:00
// Size: 0x100
2024-09-10 22:33:16 +00:00
// Has VTable
#pragma pack(push, 1)
class CBuoyancyHelper
{
public:
[[maybe_unused]] std::uint8_t pad_0x00[0x18]; // 0x0
2024-11-08 14:13:12 +00:00
CUtlStringToken m_nFluidType; // 0x18
float m_flFluidDensity; // 0x1c
// m_vecFractionOfWheelSubmergedForWheelFriction has a template type with potentially unknown template parameters. You can try uncommenting the field below.
// CUtlVector<float> m_vecFractionOfWheelSubmergedForWheelFriction;
char m_vecFractionOfWheelSubmergedForWheelFriction[0x18]; // 0x20
// m_vecWheelFrictionScales has a template type with potentially unknown template parameters. You can try uncommenting the field below.
// CUtlVector<float> m_vecWheelFrictionScales;
char m_vecWheelFrictionScales[0x18]; // 0x38
// m_vecFractionOfWheelSubmergedForWheelDrag has a template type with potentially unknown template parameters. You can try uncommenting the field below.
// CUtlVector<float> m_vecFractionOfWheelSubmergedForWheelDrag;
char m_vecFractionOfWheelSubmergedForWheelDrag[0x18]; // 0x50
// m_vecWheelDrag has a template type with potentially unknown template parameters. You can try uncommenting the field below.
// CUtlVector<float> m_vecWheelDrag;
char m_vecWheelDrag[0x18]; // 0x68
[[maybe_unused]] std::uint8_t pad_0x80[0x80];
2024-09-10 22:33:16 +00:00
// Datamap fields:
// void m_pController; // 0x8
};
#pragma pack(pop)
2024-11-08 14:13:12 +00:00
static_assert(offsetof(CBuoyancyHelper, m_nFluidType) == 0x18);
static_assert(offsetof(CBuoyancyHelper, m_flFluidDensity) == 0x1c);
static_assert(offsetof(CBuoyancyHelper, m_vecFractionOfWheelSubmergedForWheelFriction) == 0x20);
static_assert(offsetof(CBuoyancyHelper, m_vecWheelFrictionScales) == 0x38);
static_assert(offsetof(CBuoyancyHelper, m_vecFractionOfWheelSubmergedForWheelDrag) == 0x50);
static_assert(offsetof(CBuoyancyHelper, m_vecWheelDrag) == 0x68);
2024-09-10 22:33:16 +00:00
2024-11-08 14:13:12 +00:00
static_assert(sizeof(CBuoyancyHelper) == 0x100);
2024-09-10 22:33:16 +00:00
};