mirror of
https://github.com/YimMenu/RDR-Classes.git
synced 2024-12-22 14:37:30 +08:00
Class Optimizations (#34)
This commit is contained in:
parent
ad824270b9
commit
fe55483cea
@ -1,30 +1,18 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <cstdint>
|
|
||||||
#include "rage/vector.hpp"
|
#include "rage/vector.hpp"
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
struct CProjectileCreationData
|
|
||||||
{
|
struct CProjectileCreationData {
|
||||||
uint16_t unk_0000;
|
char m_Pad1[2];
|
||||||
uint16_t m_OwnerObjectId;
|
uint16_t m_OwnerObjectId;
|
||||||
uint32_t m_AmmoHash;
|
uint32_t m_AmmoHash;
|
||||||
uint32_t m_WeaponHash;
|
uint32_t m_WeaponHash;
|
||||||
uint32_t unk_000C;
|
char m_Pad2[4];
|
||||||
rage::vector3 m_Vector;
|
rage::vector3 m_Velocity;
|
||||||
uint32_t unk_0020;
|
char m_Pad3[4];
|
||||||
uint16_t m_ObjectId2;
|
uint16_t m_ObjectId2;
|
||||||
char pad_0026[2];
|
char m_Pad4[26];
|
||||||
bool unk_0028;
|
rage::matrix34 m_InitialPosition;
|
||||||
char pad_0029[3];
|
|
||||||
uint32_t unk_002C;
|
|
||||||
bool pad_0030;
|
|
||||||
bool unk_0031;
|
|
||||||
char pad_0032[2];
|
|
||||||
float unk_0034;
|
|
||||||
bool unk_0038;
|
|
||||||
bool unk_0039;
|
|
||||||
bool unk_003A;
|
|
||||||
bool unk_003B;
|
|
||||||
char pad_003C[4];
|
|
||||||
rage::matrix34 m_Matrix;
|
|
||||||
};
|
};
|
||||||
static_assert(sizeof(CProjectileCreationData) == 0x80);
|
static_assert(sizeof(CProjectileCreationData) == 0x80);
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
class CGadgetData
|
class CGadgetData {
|
||||||
{
|
|
||||||
public:
|
public:
|
||||||
uint32_t m_Type;
|
uint32_t m_Type;
|
||||||
uint8_t m_Data[0xF3];
|
uint8_t m_Data[0xF3];
|
||||||
@ -10,8 +9,7 @@ public:
|
|||||||
static_assert(sizeof(CGadgetData) == 0xF8);
|
static_assert(sizeof(CGadgetData) == 0xF8);
|
||||||
|
|
||||||
// TODO: Fix this
|
// TODO: Fix this
|
||||||
class CVehicleGadgetDataNode
|
class CVehicleGadgetData {
|
||||||
{
|
|
||||||
public:
|
public:
|
||||||
bool m_HasPosition;
|
bool m_HasPosition;
|
||||||
char pad_0001[15];
|
char pad_0001[15];
|
||||||
@ -20,4 +18,4 @@ public:
|
|||||||
char pad_0002[12];
|
char pad_0002[12];
|
||||||
CGadgetData m_Gadgets[2];
|
CGadgetData m_Gadgets[2];
|
||||||
};
|
};
|
||||||
static_assert(sizeof(CVehicleGadgetDataNode) == 0x220);
|
static_assert(sizeof(CVehicleGadgetData) == 0x220);
|
Loading…
Reference in New Issue
Block a user