rodecomp/Source/Contents/World/WorldRayQuery.h
ragnarok-clanker 9ac3d05245 Maintenance: Add mandatory field offset markers /* XXXX */ and assertions to Contents headers (part 2: Items, Models, Movies, Skills,
Batch #1063 by ragnarok-clanker: no function's compiled code changes; checked with 62 compiled unit(s), including every includer of Source/Contents/Items/ItemNaming.h, Source/Contents/Models/ModelActor.h, Source/Contents/Models/ModelRendering.h, Source/Contents/Models/ModelSpatial.h, Source/Contents/Movies/BinkMovie.h, Source/Contents/Movies/BinkMovies.h, Source/Contents/PlayerNameDictionary.h, Source/Contents/Skills/AutomaticSkills.h, Source/Contents/Skills/ClientSkills.h, Source/Contents/Skills/PlayerSkillBundle.h, Source/Contents/Skills/SkillInfo.h, Source/Contents/Sound/SoundMgr.h, Source/Contents/UserData/NormalItemSlots.h, Source/Contents/World/WorldModelLoading.h, Source/Contents/World/WorldModelView.h, Source/Contents/World/WorldRayQuery.h.
2026-10-27 13:52:05 +00:00

27 lines
773 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;
bool 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