Candidate generation containing a validated library and deterministic layout. 更多...
#include <HouseGenTarget.h>
Public 成员函数 | |
| HouseGenPreviewRuntime () | |
| House gen preview runtime. | |
| ~HouseGenPreviewRuntime () | |
| House gen preview runtime. | |
| Result< void > | publish (const HouseGenDocumentTarget &document) |
| Generate entirely in temporary state before replacing the active preview. | |
| Result< EditorGizmoSnapshot > | gizmo (Revision expectedRevision) const |
| Build grid cells, component bounds and room overlays for the active generation. | |
| const housegen::HouseLayout * | layout () const |
| Access the published layout. | |
| const housegen::HouseComponentLibrary * | library () const |
| Access the published component library. | |
| Revision | revision () const |
| Revision. | |
详细描述
Candidate generation containing a validated library and deterministic layout.
在文件 HouseGenTarget.h 第 122 行定义.
构造及析构函数说明
◆ HouseGenPreviewRuntime()
|
default |
House gen preview runtime.
◆ ~HouseGenPreviewRuntime()
|
default |
House gen preview runtime.
成员函数说明
◆ gizmo()
| Result< EditorGizmoSnapshot > eve::housegen_editing::HouseGenPreviewRuntime::gizmo | ( | Revision | expectedRevision | ) | const |
Build grid cells, component bounds and room overlays for the active generation.
在文件 HouseGenRuntime.cpp 第 38 行定义.
引用了 c, eve::editing::GizmoPrimitive::id, index, p, eve::editing::GizmoSnapshot::primitives, eve::editing::GizmoSnapshot::status, eve::editing::GizmoSnapshot::target , 以及 eve::editing::GizmoSnapshot::targetRevision.
◆ layout()
|
inline |
Access the published layout.
- 返回
- Borrowed pointer owned by this runtime. @lifetime Valid until the next successful publish or destruction.
在文件 HouseGenTarget.h 第 134 行定义.
被这些函数引用 publish().
◆ library()
|
inline |
Access the published component library.
- 返回
- Borrowed pointer owned by this runtime. @lifetime Valid until the next successful publish or destruction.
在文件 HouseGenTarget.h 第 137 行定义.
被这些函数引用 publish().
◆ publish()
| Result< void > eve::housegen_editing::HouseGenPreviewRuntime::publish | ( | const HouseGenDocumentTarget & | document | ) |
Generate entirely in temporary state before replacing the active preview.
在文件 HouseGenRuntime.cpp 第 15 行定义.
引用了 eve::housegen_editing::HouseGenDocumentTarget::components(), eve::housegen::HouseGenerator::generate(), layout(), library(), eve::housegen::HouseComponentLibrary::registerComponent(), eve::housegen_editing::HouseGenDocumentTarget::request(), required, eve::editing::EditableTargetState::revision() , 以及 eve::housegen_editing::HouseGenDocumentTarget::validate().
◆ revision()
|
inline |
Revision.
在文件 HouseGenTarget.h 第 139 行定义.
该类的文档由以下文件生成:
- src/modules/procgen/editing/HouseGenTarget.h
- src/modules/procgen/editing/HouseGenRuntime.cpp