载入中...
搜索中...
未找到
ArchSpaceQuery.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
5#include "common/Result.h"
6
7#include <optional>
8#include <string>
9#include <vector>
10
11namespace eve::archspace {
12
13class Document;
14
25public:
31 explicit SpaceQuery(const Document& document) noexcept;
32
34 [[nodiscard]] TopologyKind topology() const noexcept;
35
37 [[nodiscard]] std::vector<std::string> strata() const;
38
40 [[nodiscard]] std::vector<SpaceRegion> regions() const;
41
47 [[nodiscard]] std::optional<SpaceRegion> regionAt(Vec2 xz, const std::string& levelId) const;
48
50 [[nodiscard]] std::vector<SpacePortal> portals() const;
51
53 [[nodiscard]] std::vector<SpacePortal> portalsFrom(const std::string& regionId) const;
54
60 [[nodiscard]] eve::Result<bool> regionsConnected(const std::string& regionAId, const std::string& regionBId) const;
61
63 [[nodiscard]] std::vector<SpaceAnchor> anchorsIn(const std::string& regionId) const;
64
65private:
66 const Document* document_ = nullptr;
67};
68
69} // namespace eve::archspace
#define EVENGINE_API_WORLD
Definition Export.h:109
Topology topology
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).
Presentation-agnostic query facade over an ArchSpace document.
TopologyKind
Document topology dialect. Storage stays one node graph; semantics and authoring helpers differ by di...
Metres on the level XZ plane.