Own a complete Pcg-style terrain grid and its height, splat, detail, tree, object and probe state. Creation and every operation publish by one owner swap. History snapshots contain every domain, so undo/redo cannot expose a height/resource combination that never existed. Inputs are copied during calls and never retained. The workspace is caller-thread affine, invokes no callback, reads no clock and uses only explicitly supplied seeds. 更多...
#include <TerrainWorldWorkspace.h>
类 | |
| struct | Impl |
Public 成员函数 | |
| TerrainWorldWorkspace () | |
| Terrain world workspace. | |
| ~TerrainWorldWorkspace () | |
| Terrain world workspace. | |
| TerrainWorldWorkspace (TerrainWorldWorkspace &&) noexcept | |
| Terrain world workspace. | |
| TerrainWorldWorkspace & | operator= (TerrainWorldWorkspace &&) noexcept |
| Operator =. | |
| TerrainWorldWorkspace (const TerrainWorldWorkspace &)=delete | |
| TerrainWorldWorkspace & | operator= (const TerrainWorldWorkspace &)=delete |
| Result< int > | create (const TerrainWorldCreationSettings &settings) |
| Atomically replace the world with a zero-height centered tile grid. | |
| Result< int > | conformRoad (const MeshBuild &mesh, const road::RoadTerrainWriteOptions &options) |
| Write baked road height, texture weights, details, trees and explicit holes as one world transaction. | |
| Result< int > | conformRoadBatch (std::span< const road::RoadTerrainWrite > writes, std::size_t maximumWork) |
| Publish ordered per-road terrain writes in one native World undo frame. | |
| Result< Heightmap > | copyHoles (int index) const |
| Copy one tile's binary hole mask (one denotes missing terrain). | |
| Result< int > | stamp (const Heightmap &stamp, const TerrainStampSettings &settings, const Heightmap &localMask, const Heightmap &globalMask) |
| Apply one height stamp and record a complete-world snapshot. | |
| Result< int > | paintSplat (const Heightmap &paint, int targetLayer, const TerrainStampSettings &operation) |
| Paint one splat layer and record a complete-world snapshot. | |
| Result< int > | applyDetail (const Heightmap &fitness, const TerrainDetailSettings &settings, const TerrainStampSettings &operation, TerrainDetailMode mode, std::int32_t seed) |
| Apply one detail rule and record a complete-world snapshot. | |
| Result< int > | applyTrees (const Heightmap &fitness, const TerrainTreePlacementSettings &settings, const TerrainStampSettings &operation, TerrainTreeOperationMode mode) |
| Apply one tree rule and record a complete-world snapshot. | |
| Result< int > | applyObjects (const Heightmap &fitness, const TerrainObjectPlacementSettings &settings, const TerrainStampSettings &operation, TerrainObjectOperationMode mode) |
| Apply one game-object rule and record a complete-world snapshot. | |
| Result< int > | applyProbes (const Heightmap &fitness, const TerrainProbePlacementSettings &settings, const TerrainStampSettings &operation, TerrainProbeOperationMode mode) |
| Apply one reflection or light probe rule and record a complete-world snapshot. | |
| Result< int > | spawn (const TerrainSpawnPlan &plan) |
| Execute all enabled rules from an owned spawn plan as one complete-world transaction. | |
| Result< int > | spawnBiome (const TerrainBiomePreset &preset) |
| Compile and execute biome-active preset spawners as one complete-world transaction. | |
| Result< int > | spawnStamper (const TerrainBiomePreset &preset) |
| Compile and execute stamper-active preset spawners as one complete-world transaction. | |
| Result< TerrainWorldRunStatus > | beginSpawn (const TerrainSpawnPlan &plan) |
| Start an owned rule-by-rule spawn without exposing candidate world state. | |
| Result< TerrainWorldRunStatus > | beginSpawnBiome (const TerrainBiomePreset &preset) |
| Start the biome-active preset stack as an owned staged spawn. | |
| Result< TerrainWorldRunStatus > | beginSpawnStamper (const TerrainBiomePreset &preset) |
| Start the stamper-active preset stack as an owned staged spawn. | |
| Result< TerrainWorldRunStatus > | stepSpawn (int maxRules) |
| Execute at most maxRules rules and publish the complete world once all rules finish. | |
| Result< TerrainWorldRunStatus > | cancelSpawn () |
| Cancel a pending spawn and discard its complete-world candidate. | |
| TerrainWorldRunStatus | getSpawnStatus () const noexcept |
| Return the staged world-spawn lifecycle state. | |
| int | getSpawnCompletedRules () const noexcept |
| Return rules visited by the current or most recent staged spawn. | |
| Result< int > | flatten () |
| Flatten every owned heightmap to zero and record one complete-world snapshot. | |
| Result< int > | setHeightWorldUnits (float heightWorldUnits, float worldHeightSpan) |
| Set every owned height sample from a world-unit elevation using Pcg's Clamp01 conversion. | |
| Result< int > | clearSpawns (const TerrainWorldClearSettings &settings) |
| Clear selected spawn domains on every tile and record one complete-world snapshot. | |
| Result< int > | copyHeightmap (int index, Heightmap &output) const |
| Copy a tile heightmap by stable creation-order index. | |
| Result< int > | copySplatmap (int index, TerrainSplatmap &output) const |
| Copy a tile splatmap by stable creation-order index. | |
| Result< int > | copyDetail (int index, TerrainDetailLayer &output) const |
| Copy a tile detail layer by stable creation-order index. | |
| Result< int > | copyTrees (int index, PointSet &output) const |
| Copy a tile tree PointSet by stable creation-order index. | |
| Result< int > | copyObjects (int index, PointSet &output) const |
| Copy a tile game-object PointSet by stable creation-order index. | |
| Result< int > | copyProbes (int index, PointSet &output) const |
| Copy a tile reflection/light probe PointSet by stable creation-order index. | |
| Result< std::string > | getTileName (int index) const |
| Return a tile's persistent name copy. | |
| Result< double > | getTileOriginX (int index) const |
| Return a tile's world X origin. | |
| Result< double > | getTileOriginZ (int index) const |
| Return a tile's world Z origin. | |
| Result< double > | getTileOriginY (int index) const |
| Return the owning world height baseline for a valid tile index; no borrowed state escapes. | |
| Result< int > | undo () |
| Restore the previous complete-world snapshot. | |
| Result< int > | redo () |
| Restore the next complete-world snapshot. | |
| int | getTileCount () const noexcept |
| Return owned tile count. | |
| int | getLastChangedSamples () const noexcept |
| Return changed element count from the current snapshot. | |
| int | getLastAffectedTiles () const noexcept |
| Return affected tile count from the current snapshot. | |
| int | getOperationCount () const noexcept |
| Return retained operation count. | |
| int | getAppliedCount () const noexcept |
| Return applied operation count. | |
详细描述
Own a complete Pcg-style terrain grid and its height, splat, detail, tree, object and probe state. Creation and every operation publish by one owner swap. History snapshots contain every domain, so undo/redo cannot expose a height/resource combination that never existed. Inputs are copied during calls and never retained. The workspace is caller-thread affine, invokes no callback, reads no clock and uses only explicitly supplied seeds.
在文件 TerrainWorldWorkspace.h 第 68 行定义.
构造及析构函数说明
◆ TerrainWorldWorkspace() [1/3]
| eve::procgen::TerrainWorldWorkspace::TerrainWorldWorkspace | ( | ) |
Terrain world workspace.
在文件 TerrainWorldWorkspace.cpp 第 31 行定义.
◆ ~TerrainWorldWorkspace()
|
default |
Terrain world workspace.
◆ TerrainWorldWorkspace() [2/3]
|
defaultnoexcept |
Terrain world workspace.
◆ TerrainWorldWorkspace() [3/3]
|
delete |
成员函数说明
◆ applyDetail()
| Result< int > eve::procgen::TerrainWorldWorkspace::applyDetail | ( | const Heightmap & | fitness, |
| const TerrainDetailSettings & | settings, | ||
| const TerrainStampSettings & | operation, | ||
| TerrainDetailMode | mode, | ||
| std::int32_t | seed | ||
| ) |
Apply one detail rule and record a complete-world snapshot.
在文件 TerrainWorldWorkspace.cpp 第 179 行定义.
引用了 eve::procgen::applyTerrainDetailMultiTile(), operation, seed, settings , 以及 tiles.
◆ applyObjects()
| Result< int > eve::procgen::TerrainWorldWorkspace::applyObjects | ( | const Heightmap & | fitness, |
| const TerrainObjectPlacementSettings & | settings, | ||
| const TerrainStampSettings & | operation, | ||
| TerrainObjectOperationMode | mode | ||
| ) |
Apply one game-object rule and record a complete-world snapshot.
在文件 TerrainWorldWorkspace.cpp 第 204 行定义.
引用了 eve::procgen::applyTerrainObjectsMultiTile(), operation, settings , 以及 tiles.
◆ applyProbes()
| Result< int > eve::procgen::TerrainWorldWorkspace::applyProbes | ( | const Heightmap & | fitness, |
| const TerrainProbePlacementSettings & | settings, | ||
| const TerrainStampSettings & | operation, | ||
| TerrainProbeOperationMode | mode | ||
| ) |
Apply one reflection or light probe rule and record a complete-world snapshot.
在文件 TerrainWorldWorkspace.cpp 第 219 行定义.
引用了 eve::procgen::applyTerrainProbesMultiTile(), operation, settings , 以及 tiles.
◆ applyTrees()
| Result< int > eve::procgen::TerrainWorldWorkspace::applyTrees | ( | const Heightmap & | fitness, |
| const TerrainTreePlacementSettings & | settings, | ||
| const TerrainStampSettings & | operation, | ||
| TerrainTreeOperationMode | mode | ||
| ) |
Apply one tree rule and record a complete-world snapshot.
在文件 TerrainWorldWorkspace.cpp 第 192 行定义.
引用了 eve::procgen::applyTerrainTreesMultiTile(), operation, settings , 以及 tiles.
◆ beginSpawn()
| Result< TerrainWorldRunStatus > eve::procgen::TerrainWorldWorkspace::beginSpawn | ( | const TerrainSpawnPlan & | plan | ) |
Start an owned rule-by-rule spawn without exposing candidate world state.
在文件 TerrainWorldWorkspace.cpp 第 275 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, eve::Result< T >::success() , 以及 value.
◆ beginSpawnBiome()
| Result< TerrainWorldRunStatus > eve::procgen::TerrainWorldWorkspace::beginSpawnBiome | ( | const TerrainBiomePreset & | preset | ) |
Start the biome-active preset stack as an owned staged spawn.
在文件 TerrainWorldWorkspace.cpp 第 294 行定义.
引用了 eve::procgen::TerrainBiomePreset::compileForBiome() , 以及 eve::Result< T >::failure().
◆ beginSpawnStamper()
| Result< TerrainWorldRunStatus > eve::procgen::TerrainWorldWorkspace::beginSpawnStamper | ( | const TerrainBiomePreset & | preset | ) |
Start the stamper-active preset stack as an owned staged spawn.
在文件 TerrainWorldWorkspace.cpp 第 300 行定义.
引用了 eve::procgen::TerrainBiomePreset::compileForStamper() , 以及 eve::Result< T >::failure().
◆ cancelSpawn()
| Result< TerrainWorldRunStatus > eve::procgen::TerrainWorldWorkspace::cancelSpawn | ( | ) |
Cancel a pending spawn and discard its complete-world candidate.
在文件 TerrainWorldWorkspace.cpp 第 346 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument , 以及 eve::Result< T >::success().
◆ clearSpawns()
| Result< int > eve::procgen::TerrainWorldWorkspace::clearSpawns | ( | const TerrainWorldClearSettings & | settings | ) |
Clear selected spawn domains on every tile and record one complete-world snapshot.
在文件 TerrainWorldWorkspace.cpp 第 406 行定义.
引用了 eve::procgen::TerrainMultiTileReport::affectedTiles, eve::procgen::PointSet::appendPointFrom(), changed, eve::procgen::TerrainMultiTileReport::changedSamples, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, points, eve::procgen::PointSet::reserve(), settings, source, eve::Result< T >::success(), eve::Result< T >::value(), x , 以及 z.
◆ conformRoad()
| Result< int > eve::procgen::TerrainWorldWorkspace::conformRoad | ( | const MeshBuild & | mesh, |
| const road::RoadTerrainWriteOptions & | options | ||
| ) |
Write baked road height, texture weights, details, trees and explicit holes as one world transaction.
- 参数
-
mesh Borrowed road mesh, retained only for this synchronous call. options Explicit channel policy and shared all-tile work budget.
- 返回
- Changed channel elements; failures preserve every world channel, history and redo branch. @cost Linear in bounded terrain history and road raster work, amortized per explicit world build.
- 注解
- Owner-thread only, no callbacks; native tree attributes and unrelated objects/probes are preserved.
在文件 TerrainWorldRoad.cpp 第 11 行定义.
引用了 conformRoadBatch(), mesh, options , 以及 write.
◆ conformRoadBatch()
| Result< int > eve::procgen::TerrainWorldWorkspace::conformRoadBatch | ( | std::span< const road::RoadTerrainWrite > | writes, |
| std::size_t | maximumWork | ||
| ) |
Publish ordered per-road terrain writes in one native World undo frame.
- 参数
-
writes Borrowed nonempty operation span; meshes must live until this synchronous call returns. maximumWork Shared raster budget in addition to each operation's own cap.
- 返回
- Changed channel elements; failure preserves all World resources and redo history. @cost One complete-world candidate and bounded per-operation raster work, amortized per explicit road build.
- 注解
- Owner-thread only, no callbacks; no borrowed input is retained.
在文件 TerrainWorldRoad.cpp 第 15 行定义.
引用了 counts, eve::Diagnostic::error(), eve::Result< T >::failure(), input, layer, eve::procgen::Pending, point , 以及 eve::PreconditionViolation.
被这些函数引用 conformRoad().
◆ copyDetail()
| Result< int > eve::procgen::TerrainWorldWorkspace::copyDetail | ( | int | index, |
| TerrainDetailLayer & | output | ||
| ) | const |
Copy a tile detail layer by stable creation-order index.
在文件 TerrainWorldWorkspace.cpp 第 482 行定义.
引用了 eve::Result< T >::failure(), index, output , 以及 eve::Result< T >::success().
◆ copyHeightmap()
| Result< int > eve::procgen::TerrainWorldWorkspace::copyHeightmap | ( | int | index, |
| Heightmap & | output | ||
| ) | const |
Copy a tile heightmap by stable creation-order index.
在文件 TerrainWorldWorkspace.cpp 第 480 行定义.
引用了 eve::Result< T >::failure(), index, output , 以及 eve::Result< T >::success().
◆ copyHoles()
Copy one tile's binary hole mask (one denotes missing terrain).
- 返回
- Owning heightmap value or a structured invalid tile diagnostic; no borrowed view survives a call. @cost Linear in this tile's hole samples, amortized at terrain publication boundaries.
在文件 TerrainWorldRoad.cpp 第 108 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), index, eve::InvalidArgument , 以及 eve::Result< T >::success().
◆ copyObjects()
| Result< int > eve::procgen::TerrainWorldWorkspace::copyObjects | ( | int | index, |
| PointSet & | output | ||
| ) | const |
Copy a tile game-object PointSet by stable creation-order index.
在文件 TerrainWorldWorkspace.cpp 第 484 行定义.
引用了 eve::Result< T >::failure(), index, output , 以及 eve::Result< T >::success().
◆ copyProbes()
| Result< int > eve::procgen::TerrainWorldWorkspace::copyProbes | ( | int | index, |
| PointSet & | output | ||
| ) | const |
Copy a tile reflection/light probe PointSet by stable creation-order index.
在文件 TerrainWorldWorkspace.cpp 第 485 行定义.
引用了 eve::Result< T >::failure(), index, output , 以及 eve::Result< T >::success().
◆ copySplatmap()
| Result< int > eve::procgen::TerrainWorldWorkspace::copySplatmap | ( | int | index, |
| TerrainSplatmap & | output | ||
| ) | const |
Copy a tile splatmap by stable creation-order index.
在文件 TerrainWorldWorkspace.cpp 第 481 行定义.
引用了 eve::Result< T >::failure(), index, output , 以及 eve::Result< T >::success().
◆ copyTrees()
Copy a tile tree PointSet by stable creation-order index.
在文件 TerrainWorldWorkspace.cpp 第 483 行定义.
引用了 eve::Result< T >::failure(), index, output , 以及 eve::Result< T >::success().
◆ create()
| Result< int > eve::procgen::TerrainWorldWorkspace::create | ( | const TerrainWorldCreationSettings & | settings | ) |
Atomically replace the world with a zero-height centered tile grid.
在文件 TerrainWorldWorkspace.cpp 第 36 行定义.
引用了 detail, eve::procgen::TerrainWorldWorkspace::Impl::Tile::detail, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::procgen::TerrainWorldWorkspace::Impl::Tile::heights, eve::procgen::TerrainWorldWorkspace::Impl::Tile::holes, eve::procgen::TerrainSplatmap::initialize(), eve::InvalidArgument, eve::procgen::TerrainWorldWorkspace::Impl::Tile::name, eve::procgen::TerrainWorldWorkspace::Impl::Tile::originX, eve::procgen::TerrainWorldWorkspace::Impl::Tile::originZ, eve::procgen::Pending, eve::procgen::TerrainDetailLayer::reset(), s, eve::procgen::TerrainWorldWorkspace::Impl::Tile::splat, eve::Result< T >::success(), x , 以及 z.
◆ flatten()
| Result< int > eve::procgen::TerrainWorldWorkspace::flatten | ( | ) |
Flatten every owned heightmap to zero and record one complete-world snapshot.
在文件 TerrainWorldWorkspace.cpp 第 364 行定义.
引用了 eve::procgen::TerrainMultiTileReport::affectedTiles, eve::procgen::TerrainMultiTileReport::changedSamples, height , 以及 eve::Result< T >::success().
◆ getAppliedCount()
|
noexcept |
Return applied operation count.
在文件 TerrainWorldWorkspace.cpp 第 534 行定义.
◆ getLastAffectedTiles()
|
noexcept |
Return affected tile count from the current snapshot.
在文件 TerrainWorldWorkspace.cpp 第 532 行定义.
◆ getLastChangedSamples()
|
noexcept |
Return changed element count from the current snapshot.
在文件 TerrainWorldWorkspace.cpp 第 531 行定义.
◆ getOperationCount()
|
noexcept |
Return retained operation count.
在文件 TerrainWorldWorkspace.cpp 第 533 行定义.
◆ getSpawnCompletedRules()
|
noexcept |
Return rules visited by the current or most recent staged spawn.
在文件 TerrainWorldWorkspace.cpp 第 360 行定义.
◆ getSpawnStatus()
|
noexcept |
Return the staged world-spawn lifecycle state.
在文件 TerrainWorldWorkspace.cpp 第 356 行定义.
◆ getTileCount()
|
noexcept |
Return owned tile count.
在文件 TerrainWorldWorkspace.cpp 第 530 行定义.
◆ getTileName()
| Result< std::string > eve::procgen::TerrainWorldWorkspace::getTileName | ( | int | index | ) | const |
Return a tile's persistent name copy.
在文件 TerrainWorldWorkspace.cpp 第 486 行定义.
引用了 eve::Result< T >::failure(), index , 以及 eve::Result< T >::success().
◆ getTileOriginX()
| Result< double > eve::procgen::TerrainWorldWorkspace::getTileOriginX | ( | int | index | ) | const |
Return a tile's world X origin.
在文件 TerrainWorldWorkspace.cpp 第 491 行定义.
引用了 eve::Result< T >::failure(), index , 以及 eve::Result< T >::success().
◆ getTileOriginY()
| Result< double > eve::procgen::TerrainWorldWorkspace::getTileOriginY | ( | int | index | ) | const |
Return the owning world height baseline for a valid tile index; no borrowed state escapes.
在文件 TerrainWorldWorkspace.cpp 第 501 行定义.
引用了 eve::Result< T >::failure(), index , 以及 eve::Result< T >::success().
◆ getTileOriginZ()
| Result< double > eve::procgen::TerrainWorldWorkspace::getTileOriginZ | ( | int | index | ) | const |
Return a tile's world Z origin.
在文件 TerrainWorldWorkspace.cpp 第 496 行定义.
引用了 eve::Result< T >::failure(), index , 以及 eve::Result< T >::success().
◆ operator=() [1/2]
|
delete |
◆ operator=() [2/2]
|
defaultnoexcept |
Operator =.
◆ paintSplat()
| Result< int > eve::procgen::TerrainWorldWorkspace::paintSplat | ( | const Heightmap & | paint, |
| int | targetLayer, | ||
| const TerrainStampSettings & | operation | ||
| ) |
Paint one splat layer and record a complete-world snapshot.
在文件 TerrainWorldWorkspace.cpp 第 168 行定义.
引用了 layer, operation, eve::procgen::paintTerrainSplatLayerMultiTile() , 以及 tiles.
◆ redo()
| Result< int > eve::procgen::TerrainWorldWorkspace::redo | ( | ) |
Restore the next complete-world snapshot.
在文件 TerrainWorldWorkspace.cpp 第 518 行定义.
引用了 cursor, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument , 以及 eve::Result< T >::success().
◆ setHeightWorldUnits()
| Result< int > eve::procgen::TerrainWorldWorkspace::setHeightWorldUnits | ( | float | heightWorldUnits, |
| float | worldHeightSpan | ||
| ) |
Set every owned height sample from a world-unit elevation using Pcg's Clamp01 conversion.
- 参数
-
heightWorldUnits Requested absolute world elevation; originY is subtracted before normalization. worldHeightSpan Positive vertical size represented by normalized height 1.
- 返回
- Changed sample count; validation failure leaves the complete world and history unchanged.
在文件 TerrainWorldWorkspace.cpp 第 382 行定义.
引用了 eve::procgen::TerrainMultiTileReport::affectedTiles, eve::procgen::TerrainMultiTileReport::changedSamples, eve::Diagnostic::error(), eve::Result< T >::failure(), height, eve::InvalidArgument , 以及 eve::Result< T >::success().
◆ spawn()
| Result< int > eve::procgen::TerrainWorldWorkspace::spawn | ( | const TerrainSpawnPlan & | plan | ) |
Execute all enabled rules from an owned spawn plan as one complete-world transaction.
在文件 TerrainWorldWorkspace.cpp 第 234 行定义.
引用了 eve::procgen::TerrainMultiTileReport::affectedTiles, applied, eve::procgen::TerrainMultiTileReport::changedSamples, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, eve::procgen::TerrainMultiTileReport::mappings, eve::Result< T >::success(), value , 以及 variant.
◆ spawnBiome()
| Result< int > eve::procgen::TerrainWorldWorkspace::spawnBiome | ( | const TerrainBiomePreset & | preset | ) |
Compile and execute biome-active preset spawners as one complete-world transaction.
在文件 TerrainWorldWorkspace.cpp 第 263 行定义.
引用了 eve::procgen::TerrainBiomePreset::compileForBiome() , 以及 eve::Result< T >::failure().
◆ spawnStamper()
| Result< int > eve::procgen::TerrainWorldWorkspace::spawnStamper | ( | const TerrainBiomePreset & | preset | ) |
Compile and execute stamper-active preset spawners as one complete-world transaction.
在文件 TerrainWorldWorkspace.cpp 第 269 行定义.
引用了 eve::procgen::TerrainBiomePreset::compileForStamper() , 以及 eve::Result< T >::failure().
◆ stamp()
| Result< int > eve::procgen::TerrainWorldWorkspace::stamp | ( | const Heightmap & | stamp, |
| const TerrainStampSettings & | settings, | ||
| const Heightmap & | localMask, | ||
| const Heightmap & | globalMask | ||
| ) |
Apply one height stamp and record a complete-world snapshot.
在文件 TerrainWorldWorkspace.cpp 第 157 行定义.
引用了 eve::procgen::applyTerrainStampMultiTile(), global, local, settings , 以及 tiles.
◆ stepSpawn()
| Result< TerrainWorldRunStatus > eve::procgen::TerrainWorldWorkspace::stepSpawn | ( | int | maxRules | ) |
Execute at most maxRules rules and publish the complete world once all rules finish.
在文件 TerrainWorldWorkspace.cpp 第 306 行定义.
引用了 applied, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument , 以及 eve::Result< T >::success().
◆ undo()
| Result< int > eve::procgen::TerrainWorldWorkspace::undo | ( | ) |
Restore the previous complete-world snapshot.
在文件 TerrainWorldWorkspace.cpp 第 506 行定义.
引用了 cursor, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument , 以及 eve::Result< T >::success().
该类的文档由以下文件生成:
- src/modules/procgen/heightmap/TerrainWorldWorkspace.h
- src/modules/procgen/heightmap/TerrainWorldRoad.cpp
- src/modules/procgen/heightmap/TerrainWorldWorkspace.cpp