载入中...
搜索中...
未找到
ProcgenSceneSink.h
浏览该文件的文档.
16 uint64_t sourcePointId = 0;
50 uint64_t targetRevision = 0;
90 [[nodiscard]] virtual Result<uint64_t> replaceBatches(const std::vector<ProcgenBatchSnapshot>& snapshots) = 0;
100 [[nodiscard]] virtual Result<uint64_t> removeBatches(const std::vector<std::string>& batchIds) = 0;
110 const std::vector<std::string>& batchIds, const std::function<Result<void>()>& commitPreparedOwner) = 0;
#define EVENGINE_API_FOUNDATION_INLINE
仅供"只有内联成员"的类型使用的组宏:拥有者 dllexport,消费方不导入。
Definition Export.h:170
Move-only, checked operation results for the common layer.
Optional scene consumer for procedural instance batches.
Definition ProcgenSceneSink.h:62
virtual Result< uint64_t > applyDelta(const std::string &batchId, const ProcgenInstanceDelta &delta)=0
Apply one prevalidated identity delta atomically to an existing batch.
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.
One complete cell snapshot participating in an atomic multi-batch publication.
Definition ProcgenSceneSink.h:46
std::vector< ProcgenInstanceDesc > instances
Complete ordered target contents.
Definition ProcgenSceneSink.h:52
Identity-based, revision-checked mutation of one procedural scene batch.
Definition ProcgenSceneSink.h:30
std::vector< uint64_t > removedPointIds
Stable source PointIds removed from the target batch.
Definition ProcgenSceneSink.h:36
std::vector< std::string > targetOrder
Compatibility target order addressed directly by Scene instance id.
Definition ProcgenSceneSink.h:42
std::vector< ProcgenInstanceDesc > updated
Definition ProcgenSceneSink.h:34
std::vector< std::string > removed
Compatibility removals addressed directly by Scene instance id.
Definition ProcgenSceneSink.h:38
std::vector< uint64_t > targetPointOrder
Exact target order addressed by stable source PointId.
Definition ProcgenSceneSink.h:40
std::vector< ProcgenInstanceDesc > added
Definition ProcgenSceneSink.h:33
Engine-neutral description of one procedural scene instance.
Definition ProcgenSceneSink.h:14