载入中...
搜索中...
未找到
ProcgenSceneSink.h
浏览该文件的文档.
72[[nodiscard]] EVENGINE_API_FOUNDATION Result<std::vector<ProcgenInstanceDesc>> buildProcgenInstanceDeltaSnapshot(
73 const std::vector<ProcgenInstanceDesc>& current, uint64_t currentRevision, const ProcgenInstanceDelta& delta);
80 uint64_t targetRevision = 0;
120 [[nodiscard]] virtual Result<uint64_t> replaceBatches(const std::vector<ProcgenBatchSnapshot>& snapshots) = 0;
130 [[nodiscard]] virtual Result<uint64_t> removeBatches(const std::vector<std::string>& batchIds) = 0;
141 const std::vector<std::string>& batchIds, const std::function<Result<void>()>& commitPreparedOwner) = 0;
173 const std::vector<ProcgenBatchSnapshot>& snapshots, const std::function<Result<void>()>& commitPreparedOwner) {
#define EVENGINE_API_FOUNDATION_INLINE
仅供"只有内联成员"的类型使用的组宏:拥有者 dllexport,消费方不导入。
Definition Export.h:170
Strong asset, definition, object and generic resource references.
Move-only, checked operation results for the common layer.
Optional scene consumer for procedural instance batches.
Definition ProcgenSceneSink.h:92
virtual Result< uint64_t > applyDelta(const std::string &batchId, const ProcgenInstanceDelta &delta)=0
Apply one prevalidated identity delta atomically to an existing batch.
virtual Result< uint64_t > replaceBatchesCoordinated(const std::vector< ProcgenBatchSnapshot > &snapshots, const std::function< Result< void >()> &commitPreparedOwner)
Replace complete batches while committing one prepared external resource owner.
Definition ProcgenSceneSink.h:172
virtual int lastRemovedCount(const std::string &batchId) const =0
Instances removed by the batch's latest successful apply or removal.
virtual Result< uint64_t > removeBatches(const std::vector< std::string > &batchIds)=0
Atomically remove several published batches.
virtual int lastReusedCount(const std::string &batchId) const =0
Stable-id instances reused by the batch's latest successful apply.
virtual uint64_t batchRevision(const std::string &batchId) const =0
Current committed revision of a batch, or zero when it is absent.
virtual bool applyBatch(const std::string &batchId, const std::vector< ProcgenInstanceDesc > &instances)=0
Create or reconcile all instances in a named batch.
virtual int instanceCount(const std::string &batchId) const =0
Number of currently published instances in a batch.
virtual int lastCreatedCount(const std::string &batchId) const =0
Instances newly created by the batch's latest successful apply.
virtual Result< uint64_t > replaceBatch(const std::string &batchId, uint64_t targetRevision, const std::vector< ProcgenInstanceDesc > &instances)=0
Atomically replace a batch with a complete stable-identity snapshot at an explicit revision.
virtual Result< uint64_t > removeBatchesCoordinated(const std::vector< std::string > &batchIds, const std::function< Result< void >()> &commitPreparedOwner)=0
Remove several batches while coordinating one external authoritative commit.
virtual bool removeBatch(const std::string &batchId)=0
Remove the visible contents of a batch.
virtual Result< uint64_t > replaceBatches(const std::vector< ProcgenBatchSnapshot > &snapshots)=0
Atomically replace several batches from complete snapshots.
Result< std::vector< ProcgenInstanceDesc > > buildProcgenInstanceDeltaSnapshot(const std::vector< ProcgenInstanceDesc > ¤t, uint64_t currentRevision, const ProcgenInstanceDelta &delta)
Build an owning target snapshot from one exact revision and identity delta; does not publish state.
Definition ProcgenSceneSink.cpp:6
PrefabRootPose
Immutable prefab placement convention shared by geometry bounds and renderer preparation....
Definition PrefabRootPose.h:11
@ Authored
One complete cell snapshot participating in an atomic multi-batch publication.
Definition ProcgenSceneSink.h:76
std::vector< ProcgenInstanceDesc > instances
Complete ordered target contents.
Definition ProcgenSceneSink.h:82
Stable procedural prefab link at an exact admitted package build; contains no runtime pointers.
Definition ProcgenSceneSink.h:16
PrefabRootPose rootPose
Missing historical PointSet attributes retain authored pose.
Definition ProcgenSceneSink.h:19
Identity-based, revision-checked mutation of one procedural scene batch.
Definition ProcgenSceneSink.h:49
std::vector< uint64_t > removedPointIds
Stable source PointIds removed from the target batch.
Definition ProcgenSceneSink.h:55
std::vector< std::string > targetOrder
Compatibility target order addressed directly by Scene instance id.
Definition ProcgenSceneSink.h:61
std::vector< ProcgenInstanceDesc > updated
Definition ProcgenSceneSink.h:53
std::vector< std::string > removed
Compatibility removals addressed directly by Scene instance id.
Definition ProcgenSceneSink.h:57
std::vector< uint64_t > targetPointOrder
Exact target order addressed by stable source PointId.
Definition ProcgenSceneSink.h:59
std::vector< ProcgenInstanceDesc > added
Definition ProcgenSceneSink.h:52
Engine-neutral description of one procedural scene instance.
Definition ProcgenSceneSink.h:24
std::string asset
Compatibility asset label; when assetBinding exists, its typed identity is authoritative and must mat...
Definition ProcgenSceneSink.h:30