Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions include/RED4ext/Scripting/Natives/AICAgent.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#pragma once

#include <RED4ext/Common.hpp>
#include <RED4ext/Scripting/Natives/Generated/AI/behavior/Instance.hpp>
#include <RED4ext/Scripting/Natives/Generated/game/Component.hpp>
#include <cstdint>

namespace RED4ext
{
namespace AI
{
struct CAgent : game::Component
{
static constexpr const char* NAME = "AICAgent";
static constexpr const char* ALIAS = "AIComponent";

uint8_t unkA8[0xE0 - 0xA8]; // A8
behavior::Instance instance; // E0
uint8_t unk1C8[0x4F0 - 0x1C8]; // 1C8
};
RED4EXT_ASSERT_SIZE(CAgent, 0x4F0);
RED4EXT_ASSERT_OFFSET(CAgent, instance, 0xE0);
} // namespace AI
using AICAgent = AI::CAgent;
using AIComponent = AI::CAgent;
} // namespace RED4ext
11 changes: 11 additions & 0 deletions include/RED4ext/Scripting/Natives/Generated/AI/CAgent.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@

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

#include <RED4ext/Scripting/Natives/AICAgent.hpp>

namespace RED4ext
{
RED4EXT_ASSERT_SIZE(AI::CAgent, 0x4F0);
using AICAgent = AI::CAgent;
using AIComponent = AI::CAgent;
} // namespace RED4ext

/*
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Scripting/Natives/Generated/game/Component.hpp>
Expand All @@ -24,5 +34,6 @@ RED4EXT_ASSERT_SIZE(CAgent, 0x4F0);
using AICAgent = AI::CAgent;
using AIComponent = AI::CAgent;
} // namespace RED4ext
*/

// clang-format on
Loading