载入中...
搜索中...
未找到
PcgMeshLodBackup.cpp
浏览该文件的文档.
53std::uint32_t PcgMeshLodBackup::getEntityGeneration() const noexcept { return impl_->entityGeneration; }
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={}, DiagnosticDetails details={}, std::string source={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.h:125
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
uint32_t getEntityId() const
Return the table-local entity id used with getEntityGeneration().
Definition RenderSystem3D.h:347
uint32_t getEntityGeneration() const
Return the generation required to reject stale entity ids.
Definition RenderSystem3D.h:349
Caller-owned transactional backup of one Renderable3D renderer before Pcg LOD replacement.
Definition PcgMeshLodBackup.h:19
void discard() noexcept
Forget the snapshot without changing its entity.
Definition PcgMeshLodBackup.cpp:45
Result< void > restore(graphics::Renderable3D &renderable)
Restore and consume the backup after exact entity-generation validation.
Definition PcgMeshLodBackup.cpp:30
bool isCaptured() const noexcept
Return whether a restorable snapshot is present.
Definition PcgMeshLodBackup.cpp:51
std::uint32_t getEntityGeneration() const noexcept
Return the captured ECS generation, or zero when empty.
Definition PcgMeshLodBackup.cpp:53
std::uint32_t getEntityId() const noexcept
Return the captured table-local entity id, or zero when empty.
Definition PcgMeshLodBackup.cpp:52
Definition EvpackPointGraphLoader.h:12
@ NotFound
@ Conflict
Definition Container.h:602
std::uint32_t entityId
Definition PcgMeshLodBackup.cpp:12
std::uint32_t entityGeneration
Definition PcgMeshLodBackup.cpp:13
std::optional< graphics::Renderable3D::MeshRenderer > renderer
Definition PcgMeshLodBackup.cpp:11