Kelsidavis-WoWee/include/pipeline/wdt_loader.hpp

27 lines
631 B
C++
Raw Normal View History

#pragma once
#include <cstdint>
#include <string>
#include <vector>
namespace wowee {
namespace pipeline {
struct WDTInfo {
uint32_t mphdFlags = 0;
bool isWMOOnly() const { return mphdFlags & 0x01; } // WDTF_GLOBAL_WMO
std::string rootWMOPath; // from MWMO chunk (null-terminated string)
// MODF placement (only valid for WMO-only maps):
float position[3] = {}; // ADT placement space coords
float rotation[3] = {}; // degrees
uint16_t flags = 0;
uint16_t doodadSet = 0;
};
WDTInfo parseWDT(const std::vector<uint8_t>& data);
} // namespace pipeline
} // namespace wowee