rodecomp/Source/Contents/World/WorldRayQuery.h
ragnarok-clanker a5bebe6404 Decompile 3 functions in Source/Contents/World/WorldRayQuery.cpp, Source/Contents/World/WorldRayQuery.h
Batch #11327 by cremane: 0 byte-identical, 3 confirmed by peer review.

- fn_17661 WorldRayQuery::Intersects: logic confirmed by peer review
- fn_17658 WorldRayQuery::Collect: logic confirmed by peer review
- fn_17663 WorldRayQuery::CollectNode: logic confirmed by peer review

Peer-reviewed-by: Yommy, dori, StrawberrysherbetIX
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-11-05 00:18:28 +00:00

28 lines
791 B
C++

#ifndef RAGNAROK_SOURCE_CONTENTS_WORLD_WORLDRAYQUERY_H
#define RAGNAROK_SOURCE_CONTENTS_WORLD_WORLDRAYQUERY_H
#include <cstddef>
#include <list>
struct WorldSpatialTree;
struct WorldRayQuery {
/* 0000 */ std::list<WorldSpatialTree*> nodes;
/* 0008 */ float origin[3];
/* 0014 */ float direction[3];
/* 0020 */ float limit;
WorldRayQuery();
int Intersects(const float* bounds) const;
void Collect(const float* ray, WorldSpatialTree* root);
void CollectNode(WorldSpatialTree* node, int depth);
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(WorldRayQuery) == 36);
static_assert(offsetof(WorldRayQuery, origin) == 0x0008);
static_assert(offsetof(WorldRayQuery, direction) == 0x0014);
static_assert(offsetof(WorldRayQuery, limit) == 0x0020);
#endif
#endif