UI-neutral TVE converter controller with revision-safe prepare and publish phases. @ownership The preparer and publisher are borrowed and must outlive this controller. @thread Owner thread only. Calls are synchronous and no controller lock is held across either boundary. @reentrancy Preparer and publisher implementations must not call this controller recursively. 更多...
#include <VegetationConverterController.h>
Public 成员函数 | |
| VegetationConverterController (const IVegetationConversionPreparer &preparer, IVegetationConversionPublisher &publisher) | |
| Vegetation converter controller. | |
| Result< void > | setRequest (asset_import::UnityVegetationBatchImportRequest request, std::uint64_t expectedPublicationGeneration) |
| Replace the complete owning request and invalidate any older candidate. | |
| Result< void > | prepare () |
| Prepare the current request as one detached EVA candidate. | |
| Result< std::uint64_t > | publish () |
| Publish the candidate only when it still matches the current request revision. | |
| Result< void > | clear () |
| Discard request, candidate and diagnostics. | |
| VegetationConverterState | state () const |
| Return an owning state snapshot for desktop or in-game UI hosts. | |
详细描述
UI-neutral TVE converter controller with revision-safe prepare and publish phases. @ownership The preparer and publisher are borrowed and must outlive this controller. @thread Owner thread only. Calls are synchronous and no controller lock is held across either boundary. @reentrancy Preparer and publisher implementations must not call this controller recursively.
在文件 VegetationConverterController.h 第 64 行定义.
构造及析构函数说明
◆ VegetationConverterController()
| eve::editor::VegetationConverterController::VegetationConverterController | ( | const IVegetationConversionPreparer & | preparer, |
| IVegetationConversionPublisher & | publisher | ||
| ) |
Vegetation converter controller.
在文件 VegetationConverterController.cpp 第 13 行定义.
成员函数说明
◆ clear()
| Result< void > eve::editor::VegetationConverterController::clear | ( | ) |
Discard request, candidate and diagnostics.
在文件 VegetationConverterController.cpp 第 78 行定义.
◆ prepare()
| Result< void > eve::editor::VegetationConverterController::prepare | ( | ) |
Prepare the current request as one detached EVA candidate.
在文件 VegetationConverterController.cpp 第 37 行定义.
引用了 eve::editor::VegetationConverterState::assetCount, eve::editor::VegetationConverterState::diagnostics, eve::editor::VegetationConverterState::Error, eve::Result< T >::failure(), eve::editor::VegetationConverterState::findingCount, eve::editor::VegetationConverterState::phase, eve::editor::IVegetationConversionPreparer::prepare(), eve::editor::VegetationConverterState::Prepared, eve::editor::VegetationConverterState::preparedRevision, eve::editor::project() , 以及 eve::editor::VegetationConverterState::requestRevision.
◆ publish()
| Result< std::uint64_t > eve::editor::VegetationConverterController::publish | ( | ) |
Publish the candidate only when it still matches the current request revision.
在文件 VegetationConverterController.cpp 第 60 行定义.
引用了 eve::editor::VegetationConverterState::diagnostics, eve::editor::VegetationConverterState::Error, eve::editor::VegetationConverterState::phase, eve::editor::VegetationConverterState::preparedRevision, eve::editor::VegetationConverterState::publicationGeneration, eve::editor::IVegetationConversionPublisher::publish(), eve::editor::VegetationConverterState::Published , 以及 eve::editor::VegetationConverterState::requestRevision.
◆ setRequest()
| Result< void > eve::editor::VegetationConverterController::setRequest | ( | asset_import::UnityVegetationBatchImportRequest | request, |
| std::uint64_t | expectedPublicationGeneration | ||
| ) |
Replace the complete owning request and invalidate any older candidate.
在文件 VegetationConverterController.cpp 第 17 行定义.
引用了 eve::editor::VegetationConverterState::assetCount, eve::editor::VegetationConverterState::diagnostics, eve::editor::VegetationConverterState::Dirty, eve::editor::VegetationConverterState::findingCount, eve::editor::VegetationConverterState::objectCount, eve::editor::VegetationConverterState::phase, eve::editor::VegetationConverterState::preparedRevision, eve::editor::VegetationConverterState::publicationGeneration, request , 以及 eve::editor::VegetationConverterState::requestRevision.
◆ state()
| VegetationConverterState eve::editor::VegetationConverterController::state | ( | ) | const |
Return an owning state snapshot for desktop or in-game UI hosts.
在文件 VegetationConverterController.cpp 第 86 行定义.
该类的文档由以下文件生成:
- src/modules/editor/VegetationConverterController.h
- src/modules/editor/VegetationConverterController.cpp