载入中...
搜索中...
未找到
HouseGeneration.h
浏览该文件的文档.
1#pragma once
2
3#include "common/Export.h"
4#include "common/Result.h"
5
6#include <memory>
7#include <string>
8#include <vector>
9
10namespace eve::procgen {
11class Grid2D;
12}
13namespace eve::housegen {
14class HouseLayout;
15class HouseComponentLibrary;
16struct HouseRequest;
17namespace house_detail {
18struct State;
19}
20
30public:
40 HouseGeneration& operator=(HouseGeneration&&) noexcept;
44 [[nodiscard]] Result<void> configure(const HouseRequest& request, const HouseComponentLibrary& library);
49 [[nodiscard]] Result<procgen::Grid2D> nextFloorGrid();
54 [[nodiscard]] Result<void> emitFloor(const procgen::Grid2D& grid, const std::vector<std::string>& roomTypes);
58 [[nodiscard]] Result<HouseLayout> finish() const;
60 [[nodiscard]] int floorCount() const noexcept;
61
62private:
63 std::unique_ptr<house_detail::State> state_;
64};
65} // namespace eve::housegen
#define EVENGINE_API_DOMAINS
Definition Export.h:110
const GltfImportRequest & request
Move-only, checked operation results for the common layer.
Move-only operation result carrying either a value or Status.
Definition Result.h:176
房屋组件注册表(按 id 索引,支持分类/风格查询)。
Editable floor-by-floor house generation with an owning component-library snapshot.
HouseGeneration(const HouseGeneration &)=delete
HouseGeneration(HouseGeneration &&) noexcept
Transfer ownership of staging data.
~HouseGeneration()
Release staging data without publishing entities.
HouseGeneration()
Construct an inexpensive empty session.
HouseGeneration & operator=(const HouseGeneration &)=delete
一次生成的房屋布局:实例 + 房间 + 元信息,可 JSON 序列化 / 实例化。
Definition HouseLayout.h:23
一次房屋生成请求(参数集)。