rodecomp/Source/Contents/World/WorldModelLoading.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

46 lines
1.1 KiB
C++

#ifndef RAGNAROK_SOURCE_CONTENTS_WORLD_WORLDMODELLOADING_H
#define RAGNAROK_SOURCE_CONTENTS_WORLD_WORLDMODELLOADING_H
#include <cstddef>
#include <vector>
#include <windows.h>
class C3dActor;
class ResourceMgr;
class BinkMovies;
struct WorldModelRecord;
struct ModelLightingContext;
struct WorldSpatialTree;
struct TerrainHeight;
struct DeferredWorldModel {
/* 0000 */ float distance;
/* 0004 */ const WorldModelRecord* placement;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(DeferredWorldModel) == 8);
static_assert(offsetof(DeferredWorldModel, placement) == 4);
#endif
struct WorldModelLoading {
ResourceMgr& resources;
BinkMovies& movies;
ModelLightingContext& lighting;
std::vector<C3dActor*>& models;
int& published;
int& pending;
std::vector<DeferredWorldModel>& deferred;
HANDLE& thread;
void Schedule(const WorldModelRecord& placement, const TerrainHeight& terrain, int column, int row, float* center);
void Start();
void Run();
void Publish(WorldSpatialTree& root);
void Finish();
private:
static DWORD WINAPI ThreadEntry(void* context);
};
#endif