Skip to content

Commit

Permalink
Update types for patch 2.11
Browse files Browse the repository at this point in the history
  • Loading branch information
wopss committed Jan 31, 2024
1 parent e2876dc commit 4f00a0a
Show file tree
Hide file tree
Showing 32 changed files with 388 additions and 144 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#pragma once

// clang-format off

// This file is generated from the Game's Reflection data

#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Scripting/Natives/Generated/AI/Command.hpp>

namespace RED4ext
{
namespace AI
{
struct RunAwayFromPlayerCommand : AI::Command
{
static constexpr const char* NAME = "AIRunAwayFromPlayerCommand";
static constexpr const char* ALIAS = NAME;

};
RED4EXT_ASSERT_SIZE(RunAwayFromPlayerCommand, 0x60);
} // namespace AI
using AIRunAwayFromPlayerCommand = AI::RunAwayFromPlayerCommand;
} // namespace RED4ext

// clang-format on
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@ struct VehicleOnSplineCommand : AI::VehicleCommand
bool rubberBandingBool; // 94
uint8_t unk95[0x98 - 0x95]; // 95
WeakHandle<game::Object> rubberBandingTargetRef; // 98
float rubberBandingMinDistance; // A8
float rubberBandingMaxDistance; // AC
bool rubberBandingStopAndWait; // B0
bool rubberBandingTeleportToCatchUp; // B1
bool rubberBandingStayInFront; // B2
uint8_t unkB3[0xB8 - 0xB3]; // B3
float rubberBandingTargetForwardOffset; // A8
float rubberBandingMinDistance; // AC
float rubberBandingMaxDistance; // B0
bool rubberBandingStopAndWait; // B4
bool rubberBandingTeleportToCatchUp; // B5
bool rubberBandingStayInFront; // B6
uint8_t unkB7[0xB8 - 0xB7]; // B7
WeakHandle<vehicle::AudioCurvesParam> audioCurvesParam; // B8
};
RED4EXT_ASSERT_SIZE(VehicleOnSplineCommand, 0xC8);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ struct VehicleRacingCommand : AI::VehicleCommand
bool startFromClosest; // 76
bool rubberBandingBool; // 77
WeakHandle<game::Object> rubberBandingTargetRef; // 78
float rubberBandingMinDistance; // 88
float rubberBandingMaxDistance; // 8C
bool rubberBandingStopAndWait; // 90
bool rubberBandingTeleportToCatchUp; // 91
bool rubberBandingStayInFront; // 92
uint8_t unk93[0x98 - 0x93]; // 93
float rubberBandingTargetForwardOffset; // 88
float rubberBandingMinDistance; // 8C
float rubberBandingMaxDistance; // 90
bool rubberBandingStopAndWait; // 94
bool rubberBandingTeleportToCatchUp; // 95
bool rubberBandingStayInFront; // 96
uint8_t unk97[0x98 - 0x97]; // 97
};
RED4EXT_ASSERT_SIZE(VehicleRacingCommand, 0x98);
} // namespace AI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ struct VehicleToNodeCommand : AI::VehicleCommand
Handle<vehicle::PortalsList> portals; // 88
bool trafficTryNeighborsForStart; // 98
bool trafficTryNeighborsForEnd; // 99
uint8_t unk9A[0xA0 - 0x9A]; // 9A
bool ignoreNoAIDrivingLanes; // 9A
uint8_t unk9B[0xA0 - 0x9B]; // 9B
};
RED4EXT_ASSERT_SIZE(VehicleToNodeCommand, 0xA0);
} // namespace AI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ struct DriveRacingTreeNodeDefinition : AI::behavior::DriveTreeNodeDefinition
Handle<AI::ArgumentMapping> keepDistanceParamDistance; // F0
Handle<AI::ArgumentMapping> rubberBandingBool; // 100
Handle<AI::ArgumentMapping> rubberBandingTargetRef; // 110
Handle<AI::ArgumentMapping> rubberBandingMinDistance; // 120
Handle<AI::ArgumentMapping> rubberBandingMaxDistance; // 130
Handle<AI::ArgumentMapping> rubberBandingStopAndWait; // 140
Handle<AI::ArgumentMapping> rubberBandingTeleportToCatchUp; // 150
Handle<AI::ArgumentMapping> rubberBandingStayInFront; // 160
Handle<AI::ArgumentMapping> rubberBandingTargetForwardOffset; // 120
Handle<AI::ArgumentMapping> rubberBandingMinDistance; // 130
Handle<AI::ArgumentMapping> rubberBandingMaxDistance; // 140
Handle<AI::ArgumentMapping> rubberBandingStopAndWait; // 150
Handle<AI::ArgumentMapping> rubberBandingTeleportToCatchUp; // 160
Handle<AI::ArgumentMapping> rubberBandingStayInFront; // 170
};
RED4EXT_ASSERT_SIZE(DriveRacingTreeNodeDefinition, 0x170);
RED4EXT_ASSERT_SIZE(DriveRacingTreeNodeDefinition, 0x180);
} // namespace AI::behavior
using AIbehaviorDriveRacingTreeNodeDefinition = AI::behavior::DriveRacingTreeNodeDefinition;
} // namespace RED4ext
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ struct DriveToNodeTreeNodeDefinition : AI::behavior::DriveTreeNodeDefinition
Handle<AI::ArgumentMapping> portals; // D0
Handle<AI::ArgumentMapping> trafficTryNeighborsForStart; // E0
Handle<AI::ArgumentMapping> trafficTryNeighborsForEnd; // F0
Handle<AI::ArgumentMapping> ignoreNoAIDrivingLanes; // 100
};
RED4EXT_ASSERT_SIZE(DriveToNodeTreeNodeDefinition, 0x100);
RED4EXT_ASSERT_SIZE(DriveToNodeTreeNodeDefinition, 0x110);
} // namespace AI::behavior
using AIbehaviorDriveToNodeTreeNodeDefinition = AI::behavior::DriveToNodeTreeNodeDefinition;
} // namespace RED4ext
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ struct MeleeWeaponConfiguration : audio::AudioMetadata
audio::MeleeSound parrySound; // B8
audio::MeleeSound attackChargedSound; // C8
audio::MeleeSound attackDischargedSound; // D8
Handle<audio::MeleeHitTypeMeleeSoundDictionary> meleeSoundsByHitPerMaterialType; // E8
audio::MeleeRigTypeMeleeWeaponConfigurationMap meleeWeaponConfigurationsByRigTypeMap; // F8
float attackChargedThreshold; // E8
uint8_t unkEC[0xF0 - 0xEC]; // EC
Handle<audio::MeleeHitTypeMeleeSoundDictionary> meleeSoundsByHitPerMaterialType; // F0
audio::MeleeRigTypeMeleeWeaponConfigurationMap meleeWeaponConfigurationsByRigTypeMap; // 100
};
RED4EXT_ASSERT_SIZE(MeleeWeaponConfiguration, 0x108);
RED4EXT_ASSERT_SIZE(MeleeWeaponConfiguration, 0x110);
} // namespace audio
using audioMeleeWeaponConfiguration = audio::MeleeWeaponConfiguration;
} // namespace RED4ext
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ struct PlayerSystem : game::PlayerSystem
static constexpr const char* NAME = "cpPlayerSystem";
static constexpr const char* ALIAS = "PlayerSystem";

uint8_t unk70[0x60500 - 0x70]; // 70
uint8_t unk70[0x60540 - 0x70]; // 70
};
RED4EXT_ASSERT_SIZE(PlayerSystem, 0x60500);
RED4EXT_ASSERT_SIZE(PlayerSystem, 0x60540);
} // namespace cp
using cpPlayerSystem = cp::PlayerSystem;
using PlayerSystem = cp::PlayerSystem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ struct DynamicEntityHandler
static constexpr const char* NAME = "gameDynamicEntityHandler";
static constexpr const char* ALIAS = NAME;

uint8_t unk00[0x168 - 0x0]; // 0
uint8_t unk00[0x170 - 0x0]; // 0
};
RED4EXT_ASSERT_SIZE(DynamicEntityHandler, 0x168);
RED4EXT_ASSERT_SIZE(DynamicEntityHandler, 0x170);
} // namespace game
using gameDynamicEntityHandler = game::DynamicEntityHandler;
} // namespace RED4ext
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ struct DynamicSpawnSystem : game::IDynamicSpawnSystem
static constexpr const char* NAME = "gameDynamicSpawnSystem";
static constexpr const char* ALIAS = "DynamicSpawnSystem";

uint8_t unk48[0x130 - 0x48]; // 48
uint8_t unk48[0x150 - 0x48]; // 48
};
RED4EXT_ASSERT_SIZE(DynamicSpawnSystem, 0x130);
RED4EXT_ASSERT_SIZE(DynamicSpawnSystem, 0x150);
} // namespace game
using gameDynamicSpawnSystem = game::DynamicSpawnSystem;
using DynamicSpawnSystem = game::DynamicSpawnSystem;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#pragma once

// clang-format off

// This file is generated from the Game's Reflection data

#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Scripting/Natives/Generated/game/EffectObjectFilter_HitRepresentation.hpp>

namespace RED4ext
{
namespace game
{
struct EffectObjectFilter_HitRepresentation_Quickhack : game::EffectObjectFilter_HitRepresentation
{
static constexpr const char* NAME = "gameEffectObjectFilter_HitRepresentation_Quickhack";
static constexpr const char* ALIAS = NAME;

};
RED4EXT_ASSERT_SIZE(EffectObjectFilter_HitRepresentation_Quickhack, 0x40);
} // namespace game
using gameEffectObjectFilter_HitRepresentation_Quickhack = game::EffectObjectFilter_HitRepresentation_Quickhack;
} // namespace RED4ext

// clang-format on
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ struct ItemModParams
int32_t quantity; // 18
uint8_t unk1C[0x50 - 0x1C]; // 1C
DynArray<ItemID> customPartsToInstall; // 50
uint8_t unk60[0x68 - 0x60]; // 60
};
RED4EXT_ASSERT_SIZE(ItemModParams, 0x60);
RED4EXT_ASSERT_SIZE(ItemModParams, 0x68);
} // namespace game
using gameItemModParams = game::ItemModParams;
using ItemModParams = game::ItemModParams;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ struct JournalCodexGroup : game::JournalContainerEntry
static constexpr const char* NAME = "gameJournalCodexGroup";
static constexpr const char* ALIAS = "JournalCodexGroup";

LocalizationString groupName; // 88
bool isSorted; // 88
uint8_t unk89[0x90 - 0x89]; // 89
LocalizationString groupName; // 90
};
RED4EXT_ASSERT_SIZE(JournalCodexGroup, 0xB0);
RED4EXT_ASSERT_SIZE(JournalCodexGroup, 0xB8);
} // namespace game
using gameJournalCodexGroup = game::JournalCodexGroup;
using JournalCodexGroup = game::JournalCodexGroup;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ struct RazerChromaEffectsSystem : game::IRazerChromaEffectsSystem
static constexpr const char* NAME = "gameRazerChromaEffectsSystem";
static constexpr const char* ALIAS = "RazerChromaEffectsSystem";

uint8_t unk48[0x50 - 0x48]; // 48
uint8_t unk48[0xC8 - 0x48]; // 48
};
RED4EXT_ASSERT_SIZE(RazerChromaEffectsSystem, 0x50);
RED4EXT_ASSERT_SIZE(RazerChromaEffectsSystem, 0xC8);
} // namespace game
using gameRazerChromaEffectsSystem = game::RazerChromaEffectsSystem;
using RazerChromaEffectsSystem = game::RazerChromaEffectsSystem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ struct __declspec(align(0x10)) HitEvent : red::Event
Vector4 hitPosition; // 50
CName physicsMaterial; // 60
float damage; // 68
bool isTargetPuppet; // 6C
uint8_t unk6D[0x70 - 0x6D]; // 6D
uint8_t unk6C[0x70 - 0x6C]; // 6C
CName targetPuppetMeleeMaterial; // 70
bool isTargetPuppetHead; // 78
uint8_t unk79[0x80 - 0x79]; // 79
bool isTargetPuppet; // 78
bool isTargetPuppetHead; // 79
uint8_t unk7A[0x80 - 0x7A]; // 7A
};
RED4EXT_ASSERT_SIZE(HitEvent, 0x80);
} // namespace game::audio::events
Expand Down
137 changes: 69 additions & 68 deletions include/RED4ext/Scripting/Natives/Generated/game/data/ItemType.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,74 +45,75 @@ enum class ItemType : uint32_t
Gen_Misc = 32,
Gen_MoneyShard = 33,
Gen_Readable = 34,
GrenadeDelivery = 35,
Grenade_Core = 36,
Prt_AR_SMG_LMGMod = 37,
Prt_BladeMod = 38,
Prt_BluntMod = 39,
Prt_BootsFabricEnhancer = 40,
Prt_Capacitor = 41,
Prt_FabricEnhancer = 42,
Prt_FaceFabricEnhancer = 43,
Prt_Fragment = 44,
Prt_HandgunMod = 45,
Prt_HandgunMuzzle = 46,
Prt_HeadFabricEnhancer = 47,
Prt_LongScope = 48,
Prt_Magazine = 49,
Prt_MeleeMod = 50,
Prt_Mod = 51,
Prt_Muzzle = 52,
Prt_OuterTorsoFabricEnhancer = 53,
Prt_PantsFabricEnhancer = 54,
Prt_PowerMod = 55,
Prt_PowerSniperScope = 56,
Prt_Precision_Sniper_RifleMod = 57,
Prt_Program = 58,
Prt_RangedMod = 59,
Prt_Receiver = 60,
Prt_RifleMuzzle = 61,
Prt_Scope = 62,
Prt_ScopeRail = 63,
Prt_ShortScope = 64,
Prt_ShotgunMod = 65,
Prt_SmartMod = 66,
Prt_Stock = 67,
Prt_TargetingSystem = 68,
Prt_TechMod = 69,
Prt_TechSniperScope = 70,
Prt_ThrowableMod = 71,
Prt_TorsoFabricEnhancer = 72,
VendorToken = 73,
Wea_AssaultRifle = 74,
Wea_Axe = 75,
Wea_Chainsword = 76,
Wea_Fists = 77,
Wea_GrenadeLauncher = 78,
Wea_Hammer = 79,
Wea_Handgun = 80,
Wea_HeavyMachineGun = 81,
Wea_Katana = 82,
Wea_Knife = 83,
Wea_LightMachineGun = 84,
Wea_LongBlade = 85,
Wea_Machete = 86,
Wea_Melee = 87,
Wea_OneHandedClub = 88,
Wea_PrecisionRifle = 89,
Wea_Revolver = 90,
Wea_Rifle = 91,
Wea_ShortBlade = 92,
Wea_Shotgun = 93,
Wea_ShotgunDual = 94,
Wea_SniperRifle = 95,
Wea_SubmachineGun = 96,
Wea_Sword = 97,
Wea_TwoHandedClub = 98,
Wea_VehicleMissileLauncher = 99,
Wea_VehiclePowerWeapon = 100,
Count = 101,
Invalid = 102,
Gen_Tarot = 35,
GrenadeDelivery = 36,
Grenade_Core = 37,
Prt_AR_SMG_LMGMod = 38,
Prt_BladeMod = 39,
Prt_BluntMod = 40,
Prt_BootsFabricEnhancer = 41,
Prt_Capacitor = 42,
Prt_FabricEnhancer = 43,
Prt_FaceFabricEnhancer = 44,
Prt_Fragment = 45,
Prt_HandgunMod = 46,
Prt_HandgunMuzzle = 47,
Prt_HeadFabricEnhancer = 48,
Prt_LongScope = 49,
Prt_Magazine = 50,
Prt_MeleeMod = 51,
Prt_Mod = 52,
Prt_Muzzle = 53,
Prt_OuterTorsoFabricEnhancer = 54,
Prt_PantsFabricEnhancer = 55,
Prt_PowerMod = 56,
Prt_PowerSniperScope = 57,
Prt_Precision_Sniper_RifleMod = 58,
Prt_Program = 59,
Prt_RangedMod = 60,
Prt_Receiver = 61,
Prt_RifleMuzzle = 62,
Prt_Scope = 63,
Prt_ScopeRail = 64,
Prt_ShortScope = 65,
Prt_ShotgunMod = 66,
Prt_SmartMod = 67,
Prt_Stock = 68,
Prt_TargetingSystem = 69,
Prt_TechMod = 70,
Prt_TechSniperScope = 71,
Prt_ThrowableMod = 72,
Prt_TorsoFabricEnhancer = 73,
VendorToken = 74,
Wea_AssaultRifle = 75,
Wea_Axe = 76,
Wea_Chainsword = 77,
Wea_Fists = 78,
Wea_GrenadeLauncher = 79,
Wea_Hammer = 80,
Wea_Handgun = 81,
Wea_HeavyMachineGun = 82,
Wea_Katana = 83,
Wea_Knife = 84,
Wea_LightMachineGun = 85,
Wea_LongBlade = 86,
Wea_Machete = 87,
Wea_Melee = 88,
Wea_OneHandedClub = 89,
Wea_PrecisionRifle = 90,
Wea_Revolver = 91,
Wea_Rifle = 92,
Wea_ShortBlade = 93,
Wea_Shotgun = 94,
Wea_ShotgunDual = 95,
Wea_SniperRifle = 96,
Wea_SubmachineGun = 97,
Wea_Sword = 98,
Wea_TwoHandedClub = 99,
Wea_VehicleMissileLauncher = 100,
Wea_VehiclePowerWeapon = 101,
Count = 102,
Invalid = 103,
};
} // namespace game::data
using gamedataItemType = game::data::ItemType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ struct StatusEffectPrereq_Record : game::data::IPrereq_Record
static constexpr const char* NAME = "gamedataStatusEffectPrereq_Record";
static constexpr const char* ALIAS = "StatusEffectPrereq_Record";

uint8_t unk58[0x98 - 0x58]; // 58
uint8_t unk58[0xA0 - 0x58]; // 58
};
RED4EXT_ASSERT_SIZE(StatusEffectPrereq_Record, 0x98);
RED4EXT_ASSERT_SIZE(StatusEffectPrereq_Record, 0xA0);
} // namespace game::data
using gamedataStatusEffectPrereq_Record = game::data::StatusEffectPrereq_Record;
using StatusEffectPrereq_Record = game::data::StatusEffectPrereq_Record;
Expand Down
Loading

0 comments on commit 4f00a0a

Please sign in to comment.