48 lines
1.8 KiB
C++
48 lines
1.8 KiB
C++
#pragma once
|
|
|
|
#include "gk/structs/skeleton.h"
|
|
|
|
namespace gk {
|
|
|
|
class NuiSensor;
|
|
|
|
// Live object addressed by *(gamekdm.dll+0x3cf1b4). Unrecovered regions remain
|
|
// byte storage rather than invented fields. All pointers are represented as
|
|
// 32-bit target addresses so this layout remains stable even in host tools.
|
|
GK_PACK_PUSH(8)
|
|
struct LiveManager {
|
|
std::uint32_t nui_thread_address; // +0x0000
|
|
std::uint8_t storage_0004[0x08];
|
|
std::uint32_t committed_subsystems; // +0x000c
|
|
std::uint32_t subsystem_mask; // +0x0010
|
|
std::uint32_t flags; // +0x0014
|
|
std::uint8_t storage_0018[0x08];
|
|
Vec3 reference_direction; // +0x0020
|
|
Vec4 gravity; // +0x002c
|
|
std::uint8_t storage_003c[0x164];
|
|
SkeletonFrame skeleton_frame; // +0x01a0
|
|
std::uint8_t storage_0c08[0x09e8];
|
|
std::uint32_t requested_tracking_ids[2]; // +0x15f0
|
|
std::uint8_t skeleton_tracking_enabled; // +0x15f8
|
|
std::uint8_t storage_15f9[0x03];
|
|
std::uint32_t nui_sensor_address; // +0x15fc
|
|
std::uint8_t storage_1600[0x84];
|
|
std::uint32_t selected_tracking_ids[2]; // +0x1684
|
|
std::uint8_t storage_168c[0x168];
|
|
std::uint8_t synthetic_tracking_mode; // +0x17f4
|
|
};
|
|
|
|
// Cursor-controller state reached through DAT_103d2bb8. The pointer at +0 is
|
|
// an opaque target address; no MSVC vtable or RTTI bytes are reproduced.
|
|
struct CursorControllerState {
|
|
std::uint32_t inner_address;
|
|
std::uint8_t storage_0004[0x104];
|
|
float player1_x;
|
|
float player1_y;
|
|
float player2_x;
|
|
float player2_y;
|
|
};
|
|
GK_PACK_POP
|
|
|
|
} // namespace gk
|