mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
27 lines
631 B
C++
27 lines
631 B
C++
|
|
#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
|