Transactional hot-reload boundary for one mesh VFX asset. A failed reload preserves both the previous asset and revision. Filesystem watching belongs to the caller. @thread Affine to the owning asset/editor thread; no internal synchronization. 更多...
#include <MeshVfxAsset.h>
Public 成员函数 | |
| MeshVfxAssetSlot (MeshVfxAsset asset) | |
| Construct a slot from an already validated asset. | |
| eve::Result< std::uint64_t > | reload (std::string_view json) |
| Parse and atomically replace the asset on success. | |
| const MeshVfxAsset & | asset () const noexcept |
| Current immutable asset snapshot. | |
| std::uint64_t | revision () const noexcept |
| Monotonic successful-reload revision, starting at one. | |
详细描述
Transactional hot-reload boundary for one mesh VFX asset. A failed reload preserves both the previous asset and revision. Filesystem watching belongs to the caller. @thread Affine to the owning asset/editor thread; no internal synchronization.
在文件 MeshVfxAsset.h 第 168 行定义.
构造及析构函数说明
◆ MeshVfxAssetSlot()
|
explicit |
Construct a slot from an already validated asset.
在文件 MeshVfxAsset.cpp 第 651 行定义.
引用了 valid , 以及 eve::stylize::MeshVfxAsset::validate().
成员函数说明
◆ asset()
|
inlinenoexcept |
Current immutable asset snapshot.
在文件 MeshVfxAsset.h 第 176 行定义.
◆ reload()
| eve::Result< std::uint64_t > eve::stylize::MeshVfxAssetSlot::reload | ( | std::string_view | json | ) |
Parse and atomically replace the asset on success.
在文件 MeshVfxAsset.cpp 第 656 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::stylize::MeshVfxAsset::fromJson(), eve::InvariantViolation , 以及 eve::Result< T >::success().
◆ revision()
|
inlinenoexcept |
Monotonic successful-reload revision, starting at one.
在文件 MeshVfxAsset.h 第 178 行定义.
该类的文档由以下文件生成:
- src/modules/stylize/MeshVfxAsset.h
- src/modules/stylize/MeshVfxAsset.cpp