Caller-owned loading-screen state driven by Pcg terrain load-progress events. 更多...
#include <PcgLoadingScreen.h>
Public 成员函数 | |
| Result< void > | configure (float fadeOutSpeed) |
| Set the alpha units removed per second. | |
| void | onLoadProgressStarted () noexcept |
| Reset canvas, background alpha and progress when load tracking starts. | |
| Result< void > | onLoadProgressUpdated (float progress) |
| Publish progress; values at least one automatically begin fade-out. | |
| void | onLoadProgressEnded () noexcept |
| Hide progress/text and begin fading the background. | |
| void | beginTimeout () noexcept |
| Start a transactional missing-scene diagnostic. | |
| Result< int > | addMissingScene (const std::string &terrainName, const std::string &impostorName) |
| Append one missing terrain scene and return its stable index in the pending diagnostic. | |
| Result< void > | addRegularReference (int sceneIndex, const std::string &objectName) |
| Append a regular referencing object name to a pending scene. | |
| Result< void > | addImpostorReference (int sceneIndex, const std::string &objectName) |
| Append an impostor referencing object name to a pending scene. | |
| Result< void > | endTimeout () |
| Publish the timeout warning and begin fade-out. | |
| Result< void > | tick (float deltaTime) |
| Advance background fade using explicit frame delta time. | |
| bool | getCanvasVisible () const noexcept |
| Return whether the loading canvas is enabled. | |
| bool | getProgressVisible () const noexcept |
| Return whether the progress bar is active. | |
| bool | getTextVisible () const noexcept |
| Return whether the loading text is enabled. | |
| bool | getFading () const noexcept |
| Return whether fade-out is running. | |
| float | getProgress () const noexcept |
| Return current progress without clamping Pcg's event value. | |
| float | getBackgroundAlpha () const noexcept |
| Return current background alpha. | |
| const std::string & | getTimeoutMessage () const noexcept |
| Return the most recently published timeout warning. | |
详细描述
Caller-owned loading-screen state driven by Pcg terrain load-progress events.
The terrain loader forwards start, update, end and timeout events. This object owns diagnostic strings, invokes no callbacks and exposes an immutable UI snapshot through getters. @thread UI thread only.
在文件 PcgLoadingScreen.h 第 28 行定义.
成员函数说明
◆ addImpostorReference()
| Result< void > eve::ui::PcgLoadingScreen::addImpostorReference | ( | int | sceneIndex, |
| const std::string & | objectName | ||
| ) |
Append an impostor referencing object name to a pending scene.
在文件 PcgLoadingScreen.cpp 第 73 行定义.
◆ addMissingScene()
| Result< int > eve::ui::PcgLoadingScreen::addMissingScene | ( | const std::string & | terrainName, |
| const std::string & | impostorName | ||
| ) |
Append one missing terrain scene and return its stable index in the pending diagnostic.
在文件 PcgLoadingScreen.cpp 第 48 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument , 以及 eve::Result< T >::success().
◆ addRegularReference()
| Result< void > eve::ui::PcgLoadingScreen::addRegularReference | ( | int | sceneIndex, |
| const std::string & | objectName | ||
| ) |
Append a regular referencing object name to a pending scene.
在文件 PcgLoadingScreen.cpp 第 69 行定义.
◆ beginTimeout()
|
noexcept |
Start a transactional missing-scene diagnostic.
在文件 PcgLoadingScreen.cpp 第 43 行定义.
◆ configure()
| Result< void > eve::ui::PcgLoadingScreen::configure | ( | float | fadeOutSpeed | ) |
Set the alpha units removed per second.
在文件 PcgLoadingScreen.cpp 第 14 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument , 以及 eve::Result< T >::success().
◆ endTimeout()
| Result< void > eve::ui::PcgLoadingScreen::endTimeout | ( | ) |
Publish the timeout warning and begin fade-out.
在文件 PcgLoadingScreen.cpp 第 77 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, message, name, onLoadProgressEnded(), scene , 以及 eve::Result< T >::success().
◆ getBackgroundAlpha()
|
inlinenoexcept |
Return current background alpha.
在文件 PcgLoadingScreen.h 第 62 行定义.
◆ getCanvasVisible()
|
inlinenoexcept |
Return whether the loading canvas is enabled.
在文件 PcgLoadingScreen.h 第 52 行定义.
◆ getFading()
|
inlinenoexcept |
Return whether fade-out is running.
在文件 PcgLoadingScreen.h 第 58 行定义.
◆ getProgress()
|
inlinenoexcept |
Return current progress without clamping Pcg's event value.
在文件 PcgLoadingScreen.h 第 60 行定义.
◆ getProgressVisible()
|
inlinenoexcept |
Return whether the progress bar is active.
在文件 PcgLoadingScreen.h 第 54 行定义.
◆ getTextVisible()
|
inlinenoexcept |
Return whether the loading text is enabled.
在文件 PcgLoadingScreen.h 第 56 行定义.
◆ getTimeoutMessage()
|
inlinenoexcept |
Return the most recently published timeout warning.
在文件 PcgLoadingScreen.h 第 64 行定义.
◆ onLoadProgressEnded()
|
noexcept |
Hide progress/text and begin fading the background.
在文件 PcgLoadingScreen.cpp 第 37 行定义.
被这些函数引用 endTimeout(), eve::ui::exposePcgLoadingScreenBindings() , 以及 onLoadProgressUpdated().
◆ onLoadProgressStarted()
|
noexcept |
Reset canvas, background alpha and progress when load tracking starts.
在文件 PcgLoadingScreen.cpp 第 22 行定义.
◆ onLoadProgressUpdated()
| Result< void > eve::ui::PcgLoadingScreen::onLoadProgressUpdated | ( | float | progress | ) |
Publish progress; values at least one automatically begin fade-out.
在文件 PcgLoadingScreen.cpp 第 28 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, onLoadProgressEnded(), eve::ui::progress() , 以及 eve::Result< T >::success().
◆ tick()
| Result< void > eve::ui::PcgLoadingScreen::tick | ( | float | deltaTime | ) |
Advance background fade using explicit frame delta time.
在文件 PcgLoadingScreen.cpp 第 101 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument , 以及 eve::Result< T >::success().
该类的文档由以下文件生成:
- src/modules/ui/PcgLoadingScreen.h
- src/modules/ui/PcgLoadingScreen.cpp