载入中...
搜索中...
未找到
ArchSpaceImport.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
5#include "common/Result.h"
6
7#include <cstdint>
8#include <string>
9#include <vector>
10
11namespace eve::archspace {
12
13class Document;
14
20enum class ImportCellKind : std::uint8_t { Empty = 0, Floor = 1, Wall = 2, Portal = 3, Solid = 4 };
21
28 int width = 0;
29 int height = 0;
30 double cellSize = 1.0;
31 double originX = 0.0;
32 double originZ = 0.0;
33 std::vector<ImportCellKind> cells;
34};
35
53[[nodiscard]] EVENGINE_API_WORLD eve::Result<void> importCellGrid(Document& document, const std::string& levelId,
54 const CellGridImport& grid,
55 const std::string& idPrefix = "cell");
56
57} // namespace eve::archspace
#define EVENGINE_API_WORLD
Definition Export.h:109
Move-only, checked operation results for the common layer.
Move-only operation result carrying either a value or Status.
Definition Result.h:176
Authoritative ArchSpace document (Pascal-like node graph).
ImportCellKind
Raster cell kinds accepted by dungeon/cave grid import (procgen-facing).
eve::Result< void > importCellGrid(Document &document, const std::string &levelId, const CellGridImport &grid, const std::string &idPrefix)
Import a dungeon/cave occupancy grid into an existing level.
Flat row-major cell grid in level XZ (x grows with column, z with row).
std::vector< ImportCellKind > cells