Skip to content

Commit bb97b15

Browse files
committed
feat: add move/position properties in move::Component
- generate stub - add properties found with RedMemoryDump
1 parent bed22e8 commit bb97b15

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

include/RED4ext/Scripting/Natives/Generated/move/Component.hpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44

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

7+
#include <RED4ext/Scripting/Natives/moveComponent.hpp>
8+
9+
namespace RED4ext
10+
{
11+
RED4EXT_ASSERT_SIZE(move::Component, 0x2C0);
12+
using moveComponent = move::Component;
13+
} // namespace RED4ext
14+
15+
/*
716
#include <cstdint>
817
#include <RED4ext/Common.hpp>
918
#include <RED4ext/Scripting/Natives/Generated/ent/IMoverComponent.hpp>
@@ -23,5 +32,6 @@ RED4EXT_ASSERT_SIZE(Component, 0x2C0);
2332
} // namespace move
2433
using moveComponent = move::Component;
2534
} // namespace RED4ext
35+
*/
2636

2737
// clang-format on
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#pragma once
2+
3+
#include <cstdint>
4+
#include <RED4ext/Common.hpp>
5+
#include <RED4ext/Scripting/Natives/Vector3.hpp>
6+
#include <RED4ext/Scripting/Natives/Vector4.hpp>
7+
#include <RED4ext/Scripting/Natives/Generated/WorldTransform.hpp>
8+
#include <RED4ext/Scripting/Natives/Generated/ent/IMoverComponent.hpp>
9+
10+
namespace RED4ext
11+
{
12+
namespace move
13+
{
14+
struct Component : ent::IMoverComponent
15+
{
16+
static constexpr const char* NAME = "moveComponent";
17+
static constexpr const char* ALIAS = NAME;
18+
19+
uint8_t unk90[0x1C0 - 0x90]; // 90
20+
WorldTransform worldTransform; // 1C0
21+
uint8_t unk1E0[0x1E8 - 0x1E0]; // 1E0
22+
Vector4 position; // 1E8
23+
uint8_t unk1F8[0x220 - 0x1F8]; // 1F8
24+
Vector3 speed; // 220
25+
float deltaFrame; // 22C
26+
uint8_t unk230[0x2C0 - 0x230]; // 230
27+
};
28+
RED4EXT_ASSERT_SIZE(Component, 0x2C0);
29+
RED4EXT_ASSERT_OFFSET(Component, worldTransform, 0x1C0);
30+
RED4EXT_ASSERT_OFFSET(Component, position, 0x1E8);
31+
RED4EXT_ASSERT_OFFSET(Component, speed, 0x220);
32+
RED4EXT_ASSERT_OFFSET(Component, deltaFrame, 0x22C);
33+
} // namespace move
34+
using moveComponent = move::Component;
35+
} // namespace RED4ext

0 commit comments

Comments
 (0)