Files
2026-10-02 14:40:41 -05:00

76 lines
4.8 KiB
C++

#pragma once
#include "Engine/Game/Build/fingerprint.h"
#include "engine.h"
#include <array>
#include <cstdint>
namespace dingosdk::game::build::v20260929::park_editor {
// The calls native dropper movement (0x7c63f0) uses to update an existing
// object: physics component query, physics body setter and transform setter.
inline constexpr std::array<Fingerprint, 3> movement_contracts{
{{0x6fd220,
{0x40, 0x53, 0x48, 0x81, 0xec, 0x80, 0x00, 0x00, 0x00, 0x48, 0x8b, 0x05, 0x90, 0x71, 0xac, 0x06,
0x48, 0x33, 0xc4, 0x48, 0x89, 0x44, 0x24, 0x78, 0x48, 0x8b, 0xda, 0x48, 0x8b, 0x11, 0x48, 0x8d}},
{0x25dcbf0,
{0x48, 0x83, 0xec, 0x48, 0xc5, 0xf8, 0x10, 0x42, 0x10, 0xc5, 0xf8, 0x10, 0x0a, 0x48, 0x8d, 0x54,
0x24, 0x20, 0xc5, 0xf9, 0x7f, 0x44, 0x24, 0x20, 0xc5, 0xf9, 0x7f, 0x4c, 0x24, 0x30, 0xe8, 0xed}},
{0x287c980,
{0x48, 0x8b, 0xc4, 0x53, 0x57, 0x41, 0x55, 0x41, 0x56, 0x48, 0x81, 0xec, 0x18, 0x01, 0x00, 0x00,
0xc5, 0xf8, 0x10, 0x01, 0xc5, 0xfb, 0x10, 0x49, 0x10, 0x49, 0x8b, 0xd8, 0x48, 0x8b, 0xf9, 0x4c}}}};
// Source argument for the native transform setter's change notification.
inline constexpr std::uintptr_t transform_notification_source = 0x74d5868;
// Native Build Kit color override scope: query (constructor), finish (destructor)
// and the settings manager lookup.
inline constexpr std::array<Fingerprint, 3> highlight_contracts{
{{0x79f5e0,
{0x40, 0x53, 0x48, 0x81, 0xec, 0x80, 0x00, 0x00, 0x00, 0x48, 0x8b, 0x05, 0xd0, 0x4d, 0xa2, 0x06,
0x48, 0x33, 0xc4, 0x48, 0x89, 0x44, 0x24, 0x78, 0x48, 0x8b, 0xda, 0x48, 0x8b, 0x11, 0x48, 0x8d}},
{0x7a2d30,
{0x4c, 0x8b, 0xdc, 0x53, 0x56, 0x41, 0x56, 0x48, 0x83, 0xec, 0x50, 0x48, 0x8d, 0x05, 0x46, 0x96,
0x93, 0x05, 0x48, 0x8b, 0xf1, 0x48, 0x89, 0x01, 0x48, 0x8b, 0x1d, 0x39, 0xfa, 0xa3, 0x06, 0x48}},
{engine::settings_lookup,
{0x48, 0x89, 0x5c, 0x24, 0x08, 0x48, 0x89, 0x74, 0x24, 0x10, 0x57, 0x48, 0x83, 0xec, 0x20, 0x48,
0x8d, 0x59, 0x70, 0x48, 0x8b, 0xf9, 0x48, 0x8b, 0xcb, 0x48, 0x8b, 0xf2, 0xe8, 0x6f, 0x8e, 0xcb}}}};
// Picking: hit body, body valid, body entity, entity mapping manager, mapped
// entity lookup and Build Kit component query.
inline constexpr std::array<Fingerprint, 6> picking_contracts{
{{0x25d5430,
{0x40, 0x53, 0x48, 0x83, 0xec, 0x20, 0x48, 0x8b, 0x41, 0x10, 0x48, 0x8b, 0xda, 0x44, 0x8b, 0x49,
0x08, 0x48, 0x8b, 0x09, 0x4c, 0x8b, 0x40, 0x28, 0x47, 0x8b, 0x04, 0x88, 0xe8, 0xcf, 0x13, 0x0c}},
{0x25d7e00,
{0x4c, 0x8b, 0xc1, 0x8b, 0x49, 0x08, 0x83, 0xf9, 0xff, 0x74, 0x3a, 0x49, 0x8b, 0x00, 0x8b, 0xd1,
0x48, 0xc1, 0xea, 0x03, 0x44, 0x8b, 0xd1, 0x80, 0xe1, 0x07, 0x4c, 0x8b, 0x48, 0x28, 0x49, 0x8b}},
{0x3d09a20,
{0x48, 0x89, 0x5c, 0x24, 0x08, 0x57, 0x48, 0x83, 0xec, 0x30, 0x48, 0x8b, 0xda, 0x48, 0x8b, 0xf9,
0xe8, 0xeb, 0x66, 0xba, 0x01, 0x48, 0x8d, 0x54, 0x24, 0x20, 0x48, 0x8b, 0xcb, 0xe8, 0x7e, 0xc5}},
{0x470a20,
{0x48, 0x8b, 0x05, 0x99, 0x3e, 0xd7, 0x06, 0xc3, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc,
0x48, 0x8d, 0x05, 0xb9, 0x12, 0xda, 0x06, 0xc3, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc}},
{0x471030,
{0x4c, 0x8b, 0xd2, 0x48, 0x8b, 0xd1, 0xb8, 0x48, 0x00, 0x00, 0x00, 0x45, 0x85, 0xc9, 0x74, 0x0c,
0x41, 0x83, 0xf9, 0x01, 0xb9, 0x70, 0x00, 0x00, 0x00, 0x0f, 0x44, 0xc1, 0x8b, 0x4c, 0x10, 0x08}},
{0x46aa70,
{0x40, 0x53, 0x48, 0x81, 0xec, 0x80, 0x00, 0x00, 0x00, 0x48, 0x8b, 0x05, 0x40, 0x99, 0xd5, 0x06,
0x48, 0x33, 0xc4, 0x48, 0x89, 0x44, 0x24, 0x78, 0x48, 0x8b, 0xda, 0x48, 0x8b, 0x11, 0x48, 0x8d}}}};
// Surface probe: physics world, camera ray query, scope allocator and result
// release. The ray query (0x26afdc0) and the dropper's sphere query (0x26c0fd0)
// share the 0x2664c00 implementation and collision filter; 0x7cc4f0 and
// 0x175fed0 clean up the result the same way.
inline constexpr std::array<Fingerprint, 4> surface_contracts{
{{0x3d2e920,
{0x48, 0x83, 0xec, 0x28, 0x48, 0x85, 0xc9, 0x74, 0x41, 0x8b, 0x05, 0x61, 0x3b, 0x29, 0x03, 0x83,
0x3c, 0x08, 0x03, 0x74, 0x35, 0x48, 0x89, 0x4c, 0x24, 0x30, 0x48, 0x8d, 0x4c, 0x24, 0x30, 0xe8}},
{0x26afdc0,
{0x4c, 0x8b, 0xdc, 0x53, 0x48, 0x81, 0xec, 0x90, 0x00, 0x00, 0x00, 0xc4, 0xc1, 0x7a, 0x10, 0x40,
0x28, 0x4d, 0x8d, 0x50, 0x10, 0x48, 0x8b, 0xda, 0x48, 0x8d, 0x05, 0x11, 0xa4, 0x9c, 0x03, 0x49}},
{0x2640f50,
{0x48, 0x8b, 0x05, 0x01, 0x74, 0xaf, 0x04, 0xc3, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc,
0xc4, 0xc1, 0x7a, 0x6f, 0x00, 0x4c, 0x8b, 0xda, 0x48, 0x8b, 0x11, 0xc5, 0xf1, 0x72, 0xf0, 0x02}},
{0x25fa1d0,
{0x48, 0x89, 0x5c, 0x24, 0x08, 0x57, 0x48, 0x83, 0xec, 0x20, 0x48, 0x8b, 0xfa, 0x48, 0x8b, 0xd9,
0x33, 0xd2, 0x48, 0x39, 0x51, 0x08, 0x48, 0x0f, 0x45, 0xd1, 0x48, 0x8b, 0xcf, 0xe8, 0xbe, 0x93}}}};
}