Candidate-first BiomeRules generation. 更多...
#include <BiomeTarget.h>
Public 成员函数 | |
| BiomeDocumentRuntime () | |
| Biome document runtime. | |
| ~BiomeDocumentRuntime () | |
| Biome document runtime. | |
| Result< void > | publish (const BiomeDocumentTarget &, const IBiomeSpatialResolver &) |
| Publish. | |
| Result< std::unique_ptr< procgen::PointSet > > | preview (procgen::SpatialData *domain, float spacing, std::uint32_t seed, float jitter, Revision expectedRevision) |
| Generate a PointSet from a previously published candidate. | |
| procgen::BiomeRules * | rules () const |
| Published BiomeRules, or null before the first successful publish. @ownership Borrowed from this runtime; callers must not delete it. @lifetime Valid until the next publish() or this runtime is destroyed. @thread Owner-thread only. | |
| Revision | revision () const |
| Revision. | |
详细描述
Candidate-first BiomeRules generation.
在文件 BiomeTarget.h 第 147 行定义.
构造及析构函数说明
◆ BiomeDocumentRuntime()
|
default |
Biome document runtime.
◆ ~BiomeDocumentRuntime()
|
default |
Biome document runtime.
成员函数说明
◆ preview()
| Result< std::unique_ptr< procgen::PointSet > > eve::biome_editing::BiomeDocumentRuntime::preview | ( | procgen::SpatialData * | domain, |
| float | spacing, | ||
| std::uint32_t | seed, | ||
| float | jitter, | ||
| Revision | expectedRevision | ||
| ) |
Generate a PointSet from a previously published candidate.
- 参数
-
domain Borrowed spatial query domain; must outlive this call. @ownership Success transfers the PointSet to the caller. @thread Owner-thread only.
在文件 BiomeRuntime.cpp 第 52 行定义.
引用了 eve::editing::failed(), points, seed , 以及 spacing.
◆ publish()
| Result< void > eve::biome_editing::BiomeDocumentRuntime::publish | ( | const BiomeDocumentTarget & | document, |
| const IBiomeSpatialResolver & | resolver | ||
| ) |
Publish.
在文件 BiomeRuntime.cpp 第 14 行定义.
引用了 eve::biome_editing::BiomeDocumentTarget::exclusions(), layer, eve::biome_editing::BiomeDocumentTarget::layers(), reference, eve::biome_editing::IBiomeSpatialResolver::resolve(), eve::editing::EditableTargetState::revision(), spatial , 以及 eve::biome_editing::BiomeDocumentTarget::validate().
◆ revision()
|
inline |
Revision.
在文件 BiomeTarget.h 第 172 行定义.
◆ rules()
|
inline |
Published BiomeRules, or null before the first successful publish. @ownership Borrowed from this runtime; callers must not delete it. @lifetime Valid until the next publish() or this runtime is destroyed. @thread Owner-thread only.
在文件 BiomeTarget.h 第 170 行定义.
该类的文档由以下文件生成:
- src/modules/procgen/biome/editing/BiomeTarget.h
- src/modules/procgen/biome/editing/BiomeRuntime.cpp