mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-09 18:43:51 +00:00
23 lines
656 B
C++
23 lines
656 B
C++
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "pipeline/adt_loader.hpp"
|
||
|
|
#include <string>
|
||
|
|
|
||
|
|
namespace wowee {
|
||
|
|
namespace editor {
|
||
|
|
|
||
|
|
// Wowee Open Terrain Format (.wot)
|
||
|
|
// JSON + binary heightmap — no Blizzard formats, fully open
|
||
|
|
class WoweeTerrain {
|
||
|
|
public:
|
||
|
|
// Export terrain to open format: .wot (JSON metadata) + .whm (binary heightmap)
|
||
|
|
static bool exportOpen(const pipeline::ADTTerrain& terrain,
|
||
|
|
const std::string& basePath, int tileX, int tileY);
|
||
|
|
|
||
|
|
// Import terrain from open format back to ADTTerrain
|
||
|
|
static bool importOpen(const std::string& basePath, pipeline::ADTTerrain& terrain);
|
||
|
|
};
|
||
|
|
|
||
|
|
} // namespace editor
|
||
|
|
} // namespace wowee
|