Skip to content

Commit

Permalink
Update types for patch 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wopss committed Dec 5, 2023
1 parent 23279fd commit 2cb2de4
Show file tree
Hide file tree
Showing 163 changed files with 2,589 additions and 1,689 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ struct HumanComponent : AI::CAgent
static constexpr const char* ALIAS = NAME;

TweakDBID movementParamsRecord; // 4F0
uint8_t unk4F8[0x5A8 - 0x4F8]; // 4F8
uint8_t unk4F8[0x5B8 - 0x4F8]; // 4F8
};
RED4EXT_ASSERT_SIZE(HumanComponent, 0x5A8);
RED4EXT_ASSERT_SIZE(HumanComponent, 0x5B8);
} // namespace AI
using AIHumanComponent = AI::HumanComponent;
} // namespace RED4ext
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ struct DrivePanicTreeNodeDefinition : AI::behavior::DriveTreeNodeDefinition
Handle<AI::ArgumentMapping> disableStuckDetection; // 60
Handle<AI::ArgumentMapping> useSpeedBasedLookupRange; // 70
Handle<AI::ArgumentMapping> tryDriveAwayFromPlayer; // 80
Handle<AI::ArgumentMapping> needDriver; // 90
};
RED4EXT_ASSERT_SIZE(DrivePanicTreeNodeDefinition, 0x90);
RED4EXT_ASSERT_SIZE(DrivePanicTreeNodeDefinition, 0xA0);
} // namespace AI::behavior
using AIbehaviorDrivePanicTreeNodeDefinition = AI::behavior::DrivePanicTreeNodeDefinition;
} // namespace RED4ext
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#pragma once

// clang-format off

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

#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Handle.hpp>
#include <RED4ext/Scripting/Natives/Generated/AI/behavior/TaskDefinition.hpp>

namespace RED4ext
{
namespace AI { struct ArgumentMapping; }

namespace AI::behavior
{
struct RestoreSavedPatrolProgressTaskDefinition : AI::behavior::TaskDefinition
{
static constexpr const char* NAME = "AIbehaviorRestoreSavedPatrolProgressTaskDefinition";
static constexpr const char* ALIAS = NAME;

Handle<AI::ArgumentMapping> path; // 38
Handle<AI::ArgumentMapping> savedState; // 48
Handle<AI::ArgumentMapping> patrolProgress; // 58
Handle<AI::ArgumentMapping> destinationPosition; // 68
Handle<AI::ArgumentMapping> destinationTangent; // 78
};
RED4EXT_ASSERT_SIZE(RestoreSavedPatrolProgressTaskDefinition, 0x88);
} // namespace AI::behavior
using AIbehaviorRestoreSavedPatrolProgressTaskDefinition = AI::behavior::RestoreSavedPatrolProgressTaskDefinition;
} // namespace RED4ext

// clang-format on
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#pragma once

// clang-format off

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

#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Handle.hpp>
#include <RED4ext/Scripting/Natives/Generated/AI/behavior/TaskDefinition.hpp>

namespace RED4ext
{
namespace AI { struct ArgumentMapping; }

namespace AI::behavior
{
struct SavePatrolProgressTaskDefinition : AI::behavior::TaskDefinition
{
static constexpr const char* NAME = "AIbehaviorSavePatrolProgressTaskDefinition";
static constexpr const char* ALIAS = NAME;

Handle<AI::ArgumentMapping> patrolProgress; // 38
Handle<AI::ArgumentMapping> savedState; // 48
bool saveOnDeactivation; // 58
uint8_t unk59[0x60 - 0x59]; // 59
};
RED4EXT_ASSERT_SIZE(SavePatrolProgressTaskDefinition, 0x60);
} // namespace AI::behavior
using AIbehaviorSavePatrolProgressTaskDefinition = AI::behavior::SavePatrolProgressTaskDefinition;
} // namespace RED4ext

// clang-format on
4 changes: 3 additions & 1 deletion include/RED4ext/Scripting/Natives/Generated/CMesh.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ struct __declspec(align(0x10)) CMesh : res::StreamedResource
Handle<IRenderResourceBlob> renderResourceBlob; // 1F8
bool useRayTracingShadowLODBias; // 208
bool castsRayTracedShadowsFromOriginalGeometry; // 209
uint8_t unk20A[0x219 - 0x20A]; // 20A
bool isShadowMesh; // 20A
bool isPlayerShadowMesh; // 20B
uint8_t unk20C[0x219 - 0x20C]; // 20C
ERenderObjectType objectType; // 219
uint8_t unk21A[0x230 - 0x21A]; // 21A
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ enum class EDecalRenderMode : uint8_t
DRM_AllStatic = 0,
DRM_ObjectType = 1,
DRM_AllDynamic = 2,
DRM_All = 3,
};
} // namespace RED4ext

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ struct __declspec(align(0x10)) RayTracingCustomData : ICameraStorageCustomData
static constexpr const char* NAME = "RayTracingCustomData";
static constexpr const char* ALIAS = NAME;

uint8_t unk18[0x8510 - 0x18]; // 18
uint8_t unk18[0x8610 - 0x18]; // 18
};
RED4EXT_ASSERT_SIZE(RayTracingCustomData, 0x8510);
RED4EXT_ASSERT_SIZE(RayTracingCustomData, 0x8610);
} // namespace RED4ext

// clang-format on
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ struct __declspec(align(0x10)) BaseCameraComponent : ent::IPlacedComponent
float fov; // 128
uint8_t unk12C[0x15C - 0x12C]; // 12C
float zoom; // 15C
uint8_t unk160[0x164 - 0x160]; // 160
float nearPlaneOverride; // 164
float farPlaneOverride; // 168
float motionBlurScale; // 16C
uint8_t unk170[0x174 - 0x170]; // 170
SWeaponPlaneParams weaponPlane; // 174
uint8_t unk190[0x1E0 - 0x190]; // 190
uint8_t unk160[0x168 - 0x160]; // 160
float nearPlaneOverride; // 168
float farPlaneOverride; // 16C
float motionBlurScale; // 170
uint8_t unk174[0x178 - 0x174]; // 174
SWeaponPlaneParams weaponPlane; // 178
uint8_t unk194[0x1E0 - 0x194]; // 194
};
RED4EXT_ASSERT_SIZE(BaseCameraComponent, 0x1E0);
} // namespace ent
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#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/Vector4.hpp>
#include <RED4ext/Scripting/Natives/Generated/WorldPosition.hpp>

namespace RED4ext
{
namespace ent
{
struct __declspec(align(0x10)) ImpactPointData
{
static constexpr const char* NAME = "entImpactPointData";
static constexpr const char* ALIAS = "ImpactPointData";

WorldPosition worldPosition; // 00
uint8_t unk0C[0x10 - 0xC]; // C
Vector4 worldNormal; // 10
float forceMagnitude; // 20
float impulseMagnitude; // 24
float maxForceMagnitude; // 28
float maxImpulseMagnitude; // 2C
};
RED4EXT_ASSERT_SIZE(ImpactPointData, 0x30);
} // namespace ent
using entImpactPointData = ent::ImpactPointData;
using ImpactPointData = ent::ImpactPointData;
} // namespace RED4ext

// clang-format on
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#pragma once

// clang-format off

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

#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/DynArray.hpp>
#include <RED4ext/Handle.hpp>
#include <RED4ext/Scripting/Natives/Generated/ent/ImpactPointData.hpp>
#include <RED4ext/Scripting/Natives/Generated/red/Event.hpp>

namespace RED4ext
{
namespace ent { struct Entity; }

namespace ent
{
struct MechanicalComponentImpactEvent : red::Event
{
static constexpr const char* NAME = "entMechanicalComponentImpactEvent";
static constexpr const char* ALIAS = "MechanicalComponentImpactEvent";

WeakHandle<ent::Entity> otherEntity; // 40
DynArray<ent::ImpactPointData> impactPoints; // 50
};
RED4EXT_ASSERT_SIZE(MechanicalComponentImpactEvent, 0x60);
} // namespace ent
using entMechanicalComponentImpactEvent = ent::MechanicalComponentImpactEvent;
using MechanicalComponentImpactEvent = ent::MechanicalComponentImpactEvent;
} // namespace RED4ext

// clang-format on
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#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/ent/IComponent.hpp>

namespace RED4ext
{
namespace ent
{
struct MechanicalImpactComponent : ent::IComponent
{
static constexpr const char* NAME = "entMechanicalImpactComponent";
static constexpr const char* ALIAS = "MechanicalImpactComponent";

};
RED4EXT_ASSERT_SIZE(MechanicalImpactComponent, 0x90);
} // namespace ent
using entMechanicalImpactComponent = ent::MechanicalImpactComponent;
using MechanicalImpactComponent = ent::MechanicalImpactComponent;
} // namespace RED4ext

// clang-format on
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ struct __declspec(align(0x10)) RenderToTextureCameraComponent : ent::BaseCameraC
RenderSceneLayer renderSceneLayer; // 9F4
bool overrideBackgroundColor; // 9F5
ent::RenderToTextureFeatures features; // 9F6
uint8_t unk9FE[0xA00 - 0x9FE]; // 9FE
uint8_t unk9FE[0xA10 - 0x9FE]; // 9FE
};
RED4EXT_ASSERT_SIZE(RenderToTextureCameraComponent, 0xA00);
RED4EXT_ASSERT_SIZE(RenderToTextureCameraComponent, 0xA10);
} // namespace ent
using entRenderToTextureCameraComponent = ent::RenderToTextureCameraComponent;
} // namespace RED4ext
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#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/red/Event.hpp>

namespace RED4ext
{
namespace ent::events
{
struct ToggleImpulseDestruction : red::Event
{
static constexpr const char* NAME = "enteventsToggleImpulseDestruction";
static constexpr const char* ALIAS = "ToggleImpulseDestruction";

bool enable; // 40
uint8_t unk41[0x48 - 0x41]; // 41
};
RED4EXT_ASSERT_SIZE(ToggleImpulseDestruction, 0x48);
} // namespace ent::events
using enteventsToggleImpulseDestruction = ent::events::ToggleImpulseDestruction;
using ToggleImpulseDestruction = ent::events::ToggleImpulseDestruction;
} // namespace RED4ext

// clang-format on
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ struct AchievementSystem : game::IAchievementSystem
static constexpr const char* NAME = "gameAchievementSystem";
static constexpr const char* ALIAS = "AchievementSystem";

uint8_t unk48[0x60 - 0x48]; // 48
uint8_t unk48[0x68 - 0x48]; // 48
};
RED4EXT_ASSERT_SIZE(AchievementSystem, 0x60);
RED4EXT_ASSERT_SIZE(AchievementSystem, 0x68);
} // namespace game
using gameAchievementSystem = game::AchievementSystem;
using AchievementSystem = game::AchievementSystem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ struct AttitudeAgentPS : game::ComponentPS
static constexpr const char* ALIAS = NAME;

CName currentAttitudeGroup; // 68
CName currentAttitudeGroupUnsavable; // 70
};
RED4EXT_ASSERT_SIZE(AttitudeAgentPS, 0x70);
RED4EXT_ASSERT_SIZE(AttitudeAgentPS, 0x78);
} // namespace game
using gameAttitudeAgentPS = game::AttitudeAgentPS;
} // namespace RED4ext
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ struct FreeCameraSettings

float movPrecision; // 00
float rotPrecision; // 04
float fov; // 08
float dofIntensity; // 0C
float dofNearBlur; // 10
float dofNearFocus; // 14
float dofFarBlur; // 18
float dofFarFocus; // 1C
int32_t iso; // 20
float shutter; // 24
float aperture; // 28
uint8_t unk2C[0x30 - 0x2C]; // 2C
float roll; // 08
float fov; // 0C
float dofIntensity; // 10
float dofNearBlur; // 14
float dofNearFocus; // 18
float dofFarBlur; // 1C
float dofFarFocus; // 20
int32_t iso; // 24
float shutter; // 28
float aperture; // 2C
DynArray<game::FreeCameraLightSettings> lights; // 30
};
RED4EXT_ASSERT_SIZE(FreeCameraSettings, 0x40);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ struct InventoryItemAttachments : IScriptable

TweakDBID SlotID; // 40
game::InventoryItemData ItemData; // 48
CString SlotName; // 2A0
game::InventoryItemAttachmentType SlotType; // 2C0
uint8_t unk2C4[0x2C8 - 0x2C4]; // 2C4
CString SlotName; // 2A8
game::InventoryItemAttachmentType SlotType; // 2C8
uint8_t unk2CC[0x2D0 - 0x2CC]; // 2CC
};
RED4EXT_ASSERT_SIZE(InventoryItemAttachments, 0x2C8);
RED4EXT_ASSERT_SIZE(InventoryItemAttachments, 0x2D0);
} // namespace game
using gameInventoryItemAttachments = game::InventoryItemAttachments;
using InventoryItemAttachments = game::InventoryItemAttachments;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@ struct InventoryItemData
DynArray<game::StatViewData> PrimaryStats; // 1D0
DynArray<game::StatViewData> SecondaryStats; // 1E0
game::InventoryItemSortData SortData; // 1F0
bool IsPerkRequired; // 228
uint8_t unk229[0x230 - 0x229]; // 229
CString PerkRequiredName; // 230
bool IsCrafted; // 250
bool IsIconic; // 251
uint8_t unk252[0x258 - 0x252]; // 252
bool IsPerkRequired; // 230
uint8_t unk231[0x238 - 0x231]; // 231
CString PerkRequiredName; // 238
bool IsCrafted; // 258
bool IsIconic; // 259
uint8_t unk25A[0x260 - 0x25A]; // 25A
};
RED4EXT_ASSERT_SIZE(InventoryItemData, 0x258);
RED4EXT_ASSERT_SIZE(InventoryItemData, 0x260);
} // namespace game
using gameInventoryItemData = game::InventoryItemData;
using InventoryItemData = game::InventoryItemData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ struct InventoryItemSortData
bool QuestItem; // 34
bool NewItem; // 35
bool DLCAddedItem; // 36
uint8_t unk37[0x38 - 0x37]; // 37
bool ChimeraMod; // 37
bool IsPlayerFavourite; // 38
uint8_t unk39[0x40 - 0x39]; // 39
};
RED4EXT_ASSERT_SIZE(InventoryItemSortData, 0x38);
RED4EXT_ASSERT_SIZE(InventoryItemSortData, 0x40);
} // namespace game
using gameInventoryItemSortData = game::InventoryItemSortData;
using InventoryItemSortData = game::InventoryItemSortData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ struct ItemChangedEvent : red::Event
Handle<game::ItemData> itemData; // 50
int32_t difference; // 60
int32_t currentQuantity; // 64
uint8_t unk68[0x70 - 0x68]; // 68
};
RED4EXT_ASSERT_SIZE(ItemChangedEvent, 0x68);
RED4EXT_ASSERT_SIZE(ItemChangedEvent, 0x70);
} // namespace game
using gameItemChangedEvent = game::ItemChangedEvent;
using ItemChangedEvent = game::ItemChangedEvent;
Expand Down
Loading

0 comments on commit 2cb2de4

Please sign in to comment.