mirror of
https://github.com/Mr-X-GTA/GTAV-Classes-1.git
synced 2024-12-22 14:37:31 +08:00
fix(CI): Compiled in folders and use relative include dirs (#27)
This commit is contained in:
parent
7052c5e91b
commit
eef494452a
7
.devcontainer/Dockerfile
Normal file
7
.devcontainer/Dockerfile
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
FROM ubuntu:devel
|
||||||
|
|
||||||
|
RUN apt clean && apt update && apt install gcc g++ cmake make -y
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY . .
|
20
.devcontainer/devcontainer.json
Normal file
20
.devcontainer/devcontainer.json
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"name": "C++",
|
||||||
|
"build": {
|
||||||
|
"dockerfile": "Dockerfile",
|
||||||
|
"args": { }
|
||||||
|
},
|
||||||
|
|
||||||
|
"workspaceMount": "source=${localWorkspaceFolder},target=/app,type=bind,consistency=delegated",
|
||||||
|
"workspaceFolder": "/app",
|
||||||
|
|
||||||
|
"runArgs": ["--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined", "--network=host"],
|
||||||
|
"settings": {},
|
||||||
|
"extensions": [
|
||||||
|
"ms-vscode.cpptools",
|
||||||
|
"ms-vscode.cmake-tools",
|
||||||
|
"ms-vscode.cpptools-extension-pack",
|
||||||
|
"WakaTime.vscode-wakatime"
|
||||||
|
],
|
||||||
|
//"remoteUser": "vscode",
|
||||||
|
}
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
.vscode
|
.vscode
|
||||||
|
build/
|
||||||
*.suo
|
*.suo
|
||||||
*.db
|
*.db
|
||||||
*.db-shm
|
*.db-shm
|
||||||
|
@ -12,7 +12,7 @@ set(CMAKE_REQUIRED_QUIET ON)
|
|||||||
|
|
||||||
set(OK TRUE)
|
set(OK TRUE)
|
||||||
|
|
||||||
file(GLOB HEADERS "*.hpp")
|
file(GLOB_RECURSE HEADERS "*.hpp")
|
||||||
|
|
||||||
message(STATUS "")
|
message(STATUS "")
|
||||||
|
|
||||||
@ -34,3 +34,4 @@ if(NOT OK)
|
|||||||
file(READ "${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/CMakeError.log" LOG)
|
file(READ "${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/CMakeError.log" LOG)
|
||||||
message(STATUS ${LOG})
|
message(STATUS ${LOG})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "rage/vector.hpp"
|
#include "../rage/vector.hpp"
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "rage/vector.hpp"
|
#include "../rage/vector.hpp"
|
||||||
|
|
||||||
class CNavigation
|
class CNavigation
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "rage/fwEntity.hpp"
|
#include "../rage/fwEntity.hpp"
|
||||||
|
|
||||||
class CObject : public rage::fwEntity
|
class CObject : public rage::fwEntity
|
||||||
{}; //Size: 0x018C
|
{}; //Size: 0x018C
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
#include <typeinfo>
|
||||||
|
|
||||||
#include "fwRefAwareBase.hpp"
|
#include "fwRefAwareBase.hpp"
|
||||||
#include "fwExtensionContainer.hpp"
|
#include "fwExtensionContainer.hpp"
|
||||||
|
|
||||||
|
#include "../rage/joaat.hpp"
|
||||||
|
|
||||||
namespace rage
|
namespace rage
|
||||||
{
|
{
|
||||||
|
|
||||||
class fwExtensibleBase : public fwRefAwareBase
|
class fwExtensibleBase : public fwRefAwareBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -26,4 +28,4 @@ namespace rage
|
|||||||
}; //Size: 0x0020
|
}; //Size: 0x0020
|
||||||
static_assert(sizeof(fwExtensibleBase) == 0x20);
|
static_assert(sizeof(fwExtensibleBase) == 0x20);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include "rage/vector.hpp"
|
#include "../../rage/vector.hpp"
|
||||||
|
|
||||||
#pragma pack(push, 4)
|
#pragma pack(push, 4)
|
||||||
class CDoorCreationDataNode
|
class CDoorCreationDataNode
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include "rage/vector.hpp"
|
#include "../../rage/vector.hpp"
|
||||||
|
|
||||||
#pragma pack(push,8)
|
#pragma pack(push,8)
|
||||||
class CObjectCreationDataNode
|
class CObjectCreationDataNode
|
||||||
@ -38,4 +38,4 @@ public:
|
|||||||
bool unk_016B; //0x016B
|
bool unk_016B; //0x016B
|
||||||
}; //Size: 0x016C
|
}; //Size: 0x016C
|
||||||
static_assert(sizeof(CObjectCreationDataNode) == 0x16C);
|
static_assert(sizeof(CObjectCreationDataNode) == 0x16C);
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "CPedComponents.hpp"
|
#include "../CPedComponents.hpp"
|
||||||
|
|
||||||
#pragma pack(push, 4)
|
#pragma pack(push, 4)
|
||||||
class CPedAppearanceDataNode
|
class CPedAppearanceDataNode
|
||||||
@ -31,4 +31,4 @@ public:
|
|||||||
uint8_t unk_0x1E1; //0x1E1
|
uint8_t unk_0x1E1; //0x1E1
|
||||||
};
|
};
|
||||||
static_assert(sizeof(CPedAppearanceDataNode) == 0x1E4);
|
static_assert(sizeof(CPedAppearanceDataNode) == 0x1E4);
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include "vector.hpp"
|
#include "../../rage/vector.hpp"
|
||||||
|
|
||||||
#pragma pack(push,4)
|
#pragma pack(push,4)
|
||||||
class CPedAttachDataNode
|
class CPedAttachDataNode
|
||||||
@ -20,4 +20,4 @@ public:
|
|||||||
bool unk_00F1; //0x00F1
|
bool unk_00F1; //0x00F1
|
||||||
};
|
};
|
||||||
static_assert(sizeof(CPedAttachDataNode) == 0xF4);
|
static_assert(sizeof(CPedAttachDataNode) == 0xF4);
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include "vector.hpp"
|
#include "../../rage/vector.hpp"
|
||||||
|
|
||||||
#pragma pack(push,4)
|
#pragma pack(push,4)
|
||||||
class CPhysicalAttachDataNode
|
class CPhysicalAttachDataNode
|
||||||
@ -29,4 +29,4 @@ public:
|
|||||||
bool m_is_cargo_vehicle; //0x0116
|
bool m_is_cargo_vehicle; //0x0116
|
||||||
}; //Size: 0x0118
|
}; //Size: 0x0118
|
||||||
static_assert(sizeof(CPhysicalAttachDataNode) == 0x118);
|
static_assert(sizeof(CPhysicalAttachDataNode) == 0x118);
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include "rage/vector.hpp"
|
#include "../../rage/vector.hpp"
|
||||||
|
|
||||||
#pragma pack(push, 8)
|
#pragma pack(push, 8)
|
||||||
class CPickupPlacementCreationDataNode
|
class CPickupPlacementCreationDataNode
|
||||||
@ -22,4 +22,4 @@ public:
|
|||||||
uint64_t *unk_struct_0108; //0x0108
|
uint64_t *unk_struct_0108; //0x0108
|
||||||
}; //Size: 0x0110
|
}; //Size: 0x0110
|
||||||
static_assert(sizeof(CPickupPlacementCreationDataNode) == 0x110);
|
static_assert(sizeof(CPickupPlacementCreationDataNode) == 0x110);
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "CPedComponents.hpp"
|
#include "../CPedComponents.hpp"
|
||||||
|
|
||||||
#pragma pack(push, 4)
|
#pragma pack(push, 4)
|
||||||
class CPlayerAppearanceDataNode
|
class CPlayerAppearanceDataNode
|
||||||
@ -91,4 +91,4 @@ public:
|
|||||||
uint32_t unk_0x456; //0x456
|
uint32_t unk_0x456; //0x456
|
||||||
};
|
};
|
||||||
static_assert(sizeof(CPlayerAppearanceDataNode) == 0x45C);
|
static_assert(sizeof(CPlayerAppearanceDataNode) == 0x45C);
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include "vector.hpp"
|
#include "../../rage/vector.hpp"
|
||||||
|
|
||||||
#pragma pack(push,4)
|
#pragma pack(push,4)
|
||||||
class CPlayerSectorPosNode
|
class CPlayerSectorPosNode
|
||||||
@ -20,4 +20,4 @@ public:
|
|||||||
uint32_t m_stealth_noise; //0x00F4
|
uint32_t m_stealth_noise; //0x00F4
|
||||||
}; //Size: 0x00F8
|
}; //Size: 0x00F8
|
||||||
static_assert(sizeof(CPlayerSectorPosNode) == 0xF8);
|
static_assert(sizeof(CPlayerSectorPosNode) == 0xF8);
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "player/CPlayerInfo.hpp"
|
#include "../player/CPlayerInfo.hpp"
|
||||||
#include "player/CNonPhysicalPlayerData.hpp"
|
#include "../player/CNonPhysicalPlayerData.hpp"
|
||||||
|
|
||||||
#include "network/netPlayer.hpp"
|
#include "netPlayer.hpp"
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "network/CNetGamePlayer.hpp"
|
#include "CNetGamePlayer.hpp"
|
||||||
#include "player/CNonPhysicalPlayerData.hpp"
|
#include "../player/CNonPhysicalPlayerData.hpp"
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include "rage/netSyncTree.hpp"
|
#include "../rage/netSyncTree.hpp"
|
||||||
|
|
||||||
class CObject;
|
class CObject;
|
||||||
namespace rage
|
namespace rage
|
||||||
@ -127,4 +127,4 @@ namespace rage
|
|||||||
virtual void UpdatePendingVisibilityChanges() = 0;
|
virtual void UpdatePendingVisibilityChanges() = 0;
|
||||||
}; //Size: 0x0050
|
}; //Size: 0x0050
|
||||||
static_assert(sizeof(netObject) == 0x50);
|
static_assert(sizeof(netObject) == 0x50);
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "network/netPlayerData.hpp"
|
#include "netPlayerData.hpp"
|
||||||
|
|
||||||
namespace rage
|
namespace rage
|
||||||
{
|
{
|
||||||
|
12
ped/CPed.hpp
12
ped/CPed.hpp
@ -1,12 +1,12 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "vehicle/CAutomobile.hpp"
|
#include "../vehicle/CAutomobile.hpp"
|
||||||
#include "ped/CPedModelInfo.hpp"
|
#include "../player/CPlayerInfo.hpp"
|
||||||
#include "ped/CPedWeaponManager.hpp"
|
#include "CPedModelInfo.hpp"
|
||||||
#include "player/CPlayerInfo.hpp"
|
#include "CPedWeaponManager.hpp"
|
||||||
|
|
||||||
#include "rage/fwEntity.hpp"
|
#include "../rage/fwEntity.hpp"
|
||||||
#include "rage/vector.hpp"
|
#include "../rage/vector.hpp"
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "ped/CPed.hpp"
|
#include "CPed.hpp"
|
||||||
|
|
||||||
class CPedFactory
|
class CPedFactory
|
||||||
{
|
{
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "weapon/CWeaponInfo.hpp"
|
#include "../weapon/CWeaponInfo.hpp"
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "rage/vector.hpp"
|
#include "../rage/vector.hpp"
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "network/netPlayerData.hpp"
|
#include "../network/netPlayerData.hpp"
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "base/CBaseModelInfo.hpp"
|
#include "../base/CBaseModelInfo.hpp"
|
||||||
#include "base/CNavigation.hpp"
|
#include "../base/CNavigation.hpp"
|
||||||
#include "base/fwExtensibleBase.hpp"
|
#include "../base/fwExtensibleBase.hpp"
|
||||||
|
#include "../network/netObject.hpp"
|
||||||
#include "rage/fwDrawData.hpp"
|
#include "fwDrawData.hpp"
|
||||||
#include "network/netObject.hpp"
|
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
|
27
rage/joaat.hpp
Normal file
27
rage/joaat.hpp
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <cstdint>
|
||||||
|
#include <string_view>
|
||||||
|
|
||||||
|
namespace rage
|
||||||
|
{
|
||||||
|
using joaat_t = std::uint32_t;
|
||||||
|
inline constexpr char joaat_to_lower(char c)
|
||||||
|
{
|
||||||
|
return (c >= 'A' && c <= 'Z') ? c + ('a' - 'A') : c;
|
||||||
|
}
|
||||||
|
|
||||||
|
inline joaat_t joaat(std::string_view str)
|
||||||
|
{
|
||||||
|
joaat_t hash = 0;
|
||||||
|
for (auto c : str) {
|
||||||
|
hash += joaat_to_lower(c);
|
||||||
|
hash += (hash << 10);
|
||||||
|
hash ^= (hash >> 6);
|
||||||
|
}
|
||||||
|
hash += (hash << 3);
|
||||||
|
hash ^= (hash >> 11);
|
||||||
|
hash += (hash << 15);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
};
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "socialclub/FriendInfo.hpp"
|
#include "FriendInfo.hpp"
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "vehicle/CHandlingData.hpp"
|
#include "CHandlingData.hpp"
|
||||||
#include "vehicle/CVehicleDrawHandler.hpp"
|
#include "CVehicleDrawHandler.hpp"
|
||||||
#include "vehicle/CVehicleModelInfo.hpp"
|
#include "CVehicleModelInfo.hpp"
|
||||||
|
|
||||||
#include "rage/fwEntity.hpp"
|
#include "../rage/fwEntity.hpp"
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "rage/vector.hpp"
|
#include "../rage/vector.hpp"
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "base/CBaseModelInfo.hpp"
|
#include "../base/CBaseModelInfo.hpp"
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
@ -27,7 +27,7 @@ enum class eVehicleType : std::uint32_t
|
|||||||
class CVehicleModelInfo : public CBaseModelInfo
|
class CVehicleModelInfo : public CBaseModelInfo
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
char pad_00B0[76]; //0x00B0
|
char pad_00B0[72]; //0x00B0
|
||||||
uint8_t m_primary_color_combinations[25]; //0x00F8
|
uint8_t m_primary_color_combinations[25]; //0x00F8
|
||||||
uint8_t m_secondary_color_combinations[25]; //0x0111
|
uint8_t m_secondary_color_combinations[25]; //0x0111
|
||||||
uint8_t m_unk_color_combos1[25]; //0x012A
|
uint8_t m_unk_color_combos1[25]; //0x012A
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "weapon/CItemInfo.hpp"
|
#include "CItemInfo.hpp"
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "weapon/CAmmoInfo.hpp"
|
#include "CAmmoInfo.hpp"
|
||||||
#include "weapon/CItemInfo.hpp"
|
#include "CItemInfo.hpp"
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user