载入中...
搜索中...
未找到
ProcgenInstances.cpp
浏览该文件的文档.
1#include <algorithm>
3#include "procgen/Procgen.h"
6
7#include "common/Capability.h"
12
13#include "image/ImageData.h"
14
19
20#include <simplesquirrel/simplesquirrel.hpp>
21
22#include <algorithm>
23#include <any>
24#include <cmath>
25#include <cstdint>
26#include <functional>
27#include <memory>
28#include <mutex>
29#include <optional>
30#include <string>
31#include <unordered_map>
32#include <unordered_set>
33#include <utility>
34#include <vector>
36
37namespace eve::procgen {
38
39static std::string sceneInstanceId(const PointSet& points, size_t pointIndex,
40 std::unordered_map<uint32_t, size_t>& seedOccurrences) {
41 const auto& point = points.points()[pointIndex];
42 const auto explicitId = points.attributes().getString(pointIndex, "instanceId");
43 if (explicitId && !explicitId->empty()) return std::string(*explicitId);
44 if (point.id != 0) return "pcg-id-" + std::to_string(point.id);
45 return "pcg-" + std::to_string(point.seed) + "-" + std::to_string(seedOccurrences[point.seed]++);
46}
47
48static eve::ProcgenInstanceDesc sceneInstanceDesc(const PointSet& points, size_t pointIndex,
49 const std::string& assetAttribute, const std::string& defaultAsset,
50 std::unordered_map<uint32_t, size_t>& seedOccurrences) {
51 const auto& point = points.points()[pointIndex];
53 instance.sourcePointId = point.id;
54 instance.id = sceneInstanceId(points, pointIndex, seedOccurrences);
55 instance.asset = defaultAsset;
56 if (!assetAttribute.empty()) {
57 const auto found = points.attributes().getString(pointIndex, assetAttribute);
58 if (found) instance.asset = std::string(*found);
59 }
60 instance.x = point.x;
61 instance.y = point.y;
62 instance.z = point.z;
63 instance.yaw = point.yaw;
64 instance.pitch = point.pitch;
65 instance.roll = point.roll;
66 instance.scaleX = point.scaleX;
67 instance.scaleY = point.scaleY;
68 instance.scaleZ = point.scaleZ;
69 instance.seed = point.seed;
70 return instance;
71}
72
73static eve::Result<std::vector<eve::ProcgenInstanceDesc>> sceneInstanceDescs(const PointSet& points,
74 const std::string& assetAttribute,
75 const std::string& defaultAsset,
76 bool requireStablePointIds) {
77 std::vector<eve::ProcgenInstanceDesc> instances;
78 instances.reserve(points.points().size());
79 std::unordered_map<uint32_t, size_t> seedOccurrences;
80 std::unordered_set<std::string> instanceIds;
81 std::unordered_set<uint64_t> pointIds;
82 for (size_t pointIndex = 0; pointIndex < points.points().size(); ++pointIndex) {
83 auto instance = sceneInstanceDesc(points, pointIndex, assetAttribute, defaultAsset, seedOccurrences);
84 if (points.attributes().has(pointIndex, "asset_root_pose") &&
85 !points.attributes().has(pointIndex, "asset_build_id"))
88 "prefab root pose requires a typed asset/build binding", "asset_root_pose"));
89 if (points.attributes().has(pointIndex, "asset_build_id")) {
90 const auto buildText = points.attributes().getString(pointIndex, "asset_build_id");
91 if (!buildText)
93 eve::DiagnosticCode::TypeMismatch, "procedural asset_build_id must be a string", "asset_build_id"));
94 auto asset = eve::AssetRef::parse(instance.asset);
95 if (!asset.ok()) return eve::Result<std::vector<eve::ProcgenInstanceDesc>>::failure(asset.status());
96 auto build = eve::PersistentId::parse(*buildText);
97 if (!build || build->isNil() || build->format() != *buildText || asset.value().format() != instance.asset)
100 "procedural prefab binding must use canonical asset/build identities", "asset_build_id"));
101 instance.assetBinding = eve::ProcgenInstanceAssetBinding{asset.value(), *build};
102 if (points.attributes().has(pointIndex, "asset_root_pose")) {
103 const auto pose = points.attributes().getString(pointIndex, "asset_root_pose");
104 if (!pose || (*pose != "authored" && *pose != "placement"))
107 "unknown procedural prefab root pose", "asset_root_pose"));
108 instance.assetBinding->rootPose = *pose == "authored" ? eve::PrefabRootPose::Authored
110 }
111 }
112 if (!std::isfinite(instance.yaw) || !std::isfinite(instance.pitch) || !std::isfinite(instance.roll))
114 eve::DiagnosticCode::InvalidArgument, "procedural instance rotation must be finite", "rotation"));
115 if (!instanceIds.insert(instance.id).second)
118 "procedural Scene snapshot contains a duplicate instance id", "instanceId"));
119 if (requireStablePointIds && (instance.sourcePointId == 0 || !pointIds.insert(instance.sourcePointId).second))
121 eve::DiagnosticCode::Conflict, "procedural Scene snapshot requires unique non-zero source PointIds",
122 "pointId"));
123 instances.push_back(std::move(instance));
124 }
125 return eve::Result<std::vector<eve::ProcgenInstanceDesc>>::success(std::move(instances));
126}
127
129 const std::string& assetAttribute, const std::string& defaultAsset) {
130 const auto view = resolvePointSet(points);
131 if (batchId.empty() || !view.isBound())
134 "publishInstances requires a batch id and a live point-set handle", {}, {}, "procgen.squirrel"));
135 auto* sink = eve::cap::query<eve::IProcgenSceneSink>();
136 if (!sink)
138 eve::DiagnosticCode::Failed, "publishInstances scene sink is unavailable", {}, {}, "procgen.squirrel"));
139
140 auto instances = sceneInstanceDescs(*view, assetAttribute, defaultAsset, false);
141 if (!instances.ok()) return eve::Result<void>::failure(instances.status());
142 if (!sink->applyBatch(batchId, instances.value()))
144 eve::DiagnosticCode::Failed, "publishInstances scene sink rejected batch", {}, {}, "procgen.squirrel"));
146}
147
148eve::Result<void> Procgen::removeInstances(const std::string& batchId) {
149 auto* sink = eve::cap::query<eve::IProcgenSceneSink>();
150 if (batchId.empty())
152 eve::DiagnosticCode::InvalidArgument, "removeInstances requires a batch id", {}, {}, "procgen.squirrel"));
153 if (!sink)
155 eve::DiagnosticCode::Failed, "removeInstances scene sink is unavailable", {}, {}, "procgen.squirrel"));
156 if (!sink->removeBatch(batchId))
158 eve::DiagnosticCode::Failed, "removeInstances scene sink rejected batch", {}, {}, "procgen.squirrel"));
160}
161
163 ProcgenPointSetHandleRef points, const std::string& assetAttribute,
164 const std::string& defaultAsset) {
165 if (prefix.empty())
167 "publishCellInstances requires a prefix", {}, {},
168 "procgen.squirrel"));
169 const std::string batchId = prefix + "/L" + std::to_string(request.getLevel()) + "/" +
170 std::to_string(request.getX()) + "/" + std::to_string(request.getZ());
171 return publishInstances(batchId, points, assetAttribute, defaultAsset);
172}
173
175 ProcgenPointSetHandleRef points, uint64_t targetRevision,
176 const std::string& assetAttribute, const std::string& defaultAsset) {
177 const auto view = resolvePointSet(points);
178 if (prefix.empty() || targetRevision == 0 || !view.isBound())
181 "publishCellSnapshot requires a prefix, live point set, and non-zero target revision",
182 "publishCellSnapshot", {}, "procgen.squirrel"));
183 auto* sink = eve::cap::query<eve::IProcgenSceneSink>();
184 if (!sink)
186 eve::DiagnosticCode::Failed, "publishCellSnapshot scene sink is unavailable", {}, {}, "procgen.squirrel"));
187 auto instances = sceneInstanceDescs(*view, assetAttribute, defaultAsset, true);
188 if (!instances.ok()) return eve::Result<uint64_t>::failure(instances.status());
189 const std::string batchId = prefix + "/L" + std::to_string(request.getLevel()) + "/" +
190 std::to_string(request.getX()) + "/" + std::to_string(request.getZ());
191 return sink->replaceBatch(batchId, targetRevision, instances.value());
192}
193
195 const PointDelta& delta, uint64_t targetRevision,
196 const std::string& assetAttribute,
197 const std::string& defaultAsset) {
198 if (prefix.empty())
200 "publishCellInstanceDelta requires a prefix",
201 "prefix", {}, "procgen.squirrel"));
202 if (targetRevision < 2)
205 "publishCellInstanceDelta requires a target revision greater than one",
206 "targetRevision", {}, "procgen.squirrel"));
207 auto* sink = eve::cap::query<eve::IProcgenSceneSink>();
208 if (!sink)
210 eve::Diagnostic::error(eve::DiagnosticCode::Failed, "publishCellInstanceDelta scene sink is unavailable",
211 {}, {}, "procgen.squirrel"));
212
213 eve::ProcgenInstanceDelta sceneDelta;
214 sceneDelta.baseRevision = targetRevision - 1;
215 sceneDelta.targetRevision = targetRevision;
216 sceneDelta.removedPointIds = delta.removed;
217 sceneDelta.targetPointOrder = delta.targetOrder;
218 std::unordered_map<uint32_t, size_t> seedOccurrences;
219 sceneDelta.added.reserve(delta.added.points().size());
220 for (size_t pointIndex = 0; pointIndex < delta.added.points().size(); ++pointIndex)
221 sceneDelta.added.push_back(
222 sceneInstanceDesc(delta.added, pointIndex, assetAttribute, defaultAsset, seedOccurrences));
223 seedOccurrences.clear();
224 sceneDelta.updated.reserve(delta.updated.points().size());
225 for (size_t pointIndex = 0; pointIndex < delta.updated.points().size(); ++pointIndex)
226 sceneDelta.updated.push_back(
227 sceneInstanceDesc(delta.updated, pointIndex, assetAttribute, defaultAsset, seedOccurrences));
228
229 const std::string batchId = prefix + "/L" + std::to_string(request.getLevel()) + "/" +
230 std::to_string(request.getX()) + "/" + std::to_string(request.getZ());
231 return sink->applyDelta(batchId, sceneDelta);
232}
233
236 const std::string& assetAttribute,
237 const std::string& defaultAsset) {
238 if (prefix.empty())
240 "synchronizeCellInstances requires a prefix",
241 "prefix", {}, "procgen.squirrel"));
242 const int level = request.getLevel();
243 const int x = request.getX();
244 const int z = request.getZ();
245 const uint64_t targetRevision = runtime.getCellRevision(level, x, z);
246 std::unique_ptr<PointSet> snapshot(runtime.getCellOutput(level, x, z));
247 if (!snapshot || targetRevision == 0)
249 eve::DiagnosticCode::NotFound, "synchronizeCellInstances requires an active runtime cell", "cell", {},
250 "procgen.squirrel"));
251
252 auto* sink = eve::cap::query<eve::IProcgenSceneSink>();
253 if (!sink)
255 eve::Diagnostic::error(eve::DiagnosticCode::Failed, "synchronizeCellInstances scene sink is unavailable",
256 {}, {}, "procgen.squirrel"));
257 const std::string batchId =
258 prefix + "/L" + std::to_string(level) + "/" + std::to_string(x) + "/" + std::to_string(z);
259 const uint64_t sceneRevision = sink->batchRevision(batchId);
260 if (sceneRevision == targetRevision) return eve::Result<uint64_t>::success(targetRevision);
261 if (sceneRevision > targetRevision)
263 eve::Diagnostic::error(eve::DiagnosticCode::Conflict, "Scene cell revision is ahead of RuntimeGeneration",
264 "revision", {}, "procgen.squirrel"));
265
266 if (sceneRevision + 1 == targetRevision) {
267 std::unique_ptr<PointDelta> delta(runtime.getCellDelta(level, x, z));
268 if (delta)
269 return publishCellInstanceDelta(prefix, request, *delta, targetRevision, assetAttribute, defaultAsset);
270 }
271
272 auto instances = sceneInstanceDescs(*snapshot, assetAttribute, defaultAsset, true);
273 if (!instances.ok()) return eve::Result<uint64_t>::failure(instances.status());
274 return sink->replaceBatch(batchId, targetRevision, instances.value());
275}
276
278 const std::vector<const RuntimeGeneration*>& runtimes,
279 const std::vector<const ProcgenCellRequest*>& requests,
280 const std::string& assetAttribute,
281 const std::string& defaultAsset) {
282 if (prefix.empty() || runtimes.empty() || runtimes.size() != requests.size())
285 "synchronizeCellInstancesAtomic requires a prefix and equally sized non-empty runtime/request lists",
286 "cells", {}, "procgen.squirrel"));
287 auto* sink = eve::cap::query<eve::IProcgenSceneSink>();
288 if (!sink)
290 eve::DiagnosticCode::Failed, "synchronizeCellInstancesAtomic scene sink is unavailable", {}, {},
291 "procgen.squirrel"));
292
293 std::vector<eve::ProcgenBatchSnapshot> snapshots;
294 snapshots.reserve(requests.size());
295 std::unordered_set<std::string> batchIds;
296 for (size_t index = 0; index < requests.size(); ++index) {
297 const auto* runtime = runtimes[index];
298 const auto* request = requests[index];
299 if (!runtime || !request)
301 eve::DiagnosticCode::InvalidArgument, "synchronizeCellInstancesAtomic contains a null cell", "cells",
302 {}, "procgen.squirrel"));
303 const int level = request->getLevel();
304 const int x = request->getX();
305 const int z = request->getZ();
306 const uint64_t targetRevision = runtime->getCellRevision(level, x, z);
307 std::unique_ptr<PointSet> output(runtime->getCellOutput(level, x, z));
308 if (!output || targetRevision == 0)
310 eve::DiagnosticCode::NotFound, "synchronizeCellInstancesAtomic contains an inactive cell", "cells", {},
311 "procgen.squirrel"));
312 const std::string batchId =
313 prefix + "/L" + std::to_string(level) + "/" + std::to_string(x) + "/" + std::to_string(z);
314 if (!batchIds.insert(batchId).second)
316 eve::Diagnostic::error(eve::DiagnosticCode::Conflict, "synchronizeCellInstancesAtomic repeats a cell",
317 "cells", {}, "procgen.squirrel"));
318 const uint64_t sceneRevision = sink->batchRevision(batchId);
319 if (sceneRevision > targetRevision)
321 eve::DiagnosticCode::Conflict, "Scene cell revision is ahead of RuntimeGeneration", "revision", {},
322 "procgen.squirrel"));
323 if (sceneRevision == targetRevision) continue;
324 auto instances = sceneInstanceDescs(*output, assetAttribute, defaultAsset, true);
325 if (!instances) return eve::Result<uint64_t>::failure(instances.status());
326 snapshots.push_back({batchId, targetRevision, std::move(instances).takeValue()});
327 }
328 if (snapshots.empty()) return eve::Result<uint64_t>::success(0);
329 return sink->replaceBatches(snapshots);
330}
331
333 if (prefix.empty())
335 eve::DiagnosticCode::InvalidArgument, "removeCellInstances requires a prefix", {}, {}, "procgen.squirrel"));
336 const std::string batchId = prefix + "/L" + std::to_string(request.getLevel()) + "/" +
337 std::to_string(request.getX()) + "/" + std::to_string(request.getZ());
338 return removeInstances(batchId);
339}
340
342 const std::vector<const ProcgenCellRequest*>& requests) {
343 if (prefix.empty() || requests.empty())
345 eve::DiagnosticCode::InvalidArgument, "removeCellInstancesAtomic requires a prefix and cleanup requests",
346 "requests", {}, "procgen.squirrel"));
347 auto* sink = eve::cap::query<eve::IProcgenSceneSink>();
348 if (!sink)
350 eve::Diagnostic::error(eve::DiagnosticCode::Failed, "removeCellInstancesAtomic scene sink is unavailable",
351 {}, {}, "procgen.squirrel"));
352 std::vector<std::string> batchIds;
353 batchIds.reserve(requests.size());
354 for (const auto* request : requests) {
355 if (!request)
357 eve::DiagnosticCode::InvalidArgument, "removeCellInstancesAtomic contains a null request", "requests",
358 {}, "procgen.squirrel"));
359 batchIds.push_back(prefix + "/L" + std::to_string(request->getLevel()) + "/" + std::to_string(request->getX()) +
360 "/" + std::to_string(request->getZ()));
361 }
362 return sink->removeBatches(batchIds);
363}
364
366 const std::vector<RuntimeGeneration*>& runtimes,
367 const std::vector<const ProcgenCellRequest*>& requests) {
368 if (prefix.empty() || requests.empty() || runtimes.size() != requests.size())
371 "completeCellCleanupAtomic requires a prefix and equally sized runtime/request arrays", "requests", {},
372 "procgen.squirrel"));
373 auto* sink = eve::cap::query<eve::IProcgenSceneSink>();
374 if (!sink)
376 eve::Diagnostic::error(eve::DiagnosticCode::Failed, "completeCellCleanupAtomic scene sink is unavailable",
377 {}, {}, "procgen.squirrel"));
378
379 struct RuntimeCleanupGroup {
380 RuntimeGeneration* runtime = nullptr;
381 std::vector<const ProcgenCellRequest*> requests;
382 };
383 std::vector<RuntimeCleanupGroup> groups;
384 std::vector<std::string> batchIds;
385 groups.reserve(runtimes.size());
386 batchIds.reserve(requests.size());
387 for (size_t index = 0; index < requests.size(); ++index) {
388 auto* runtime = runtimes[index];
389 auto* request = requests[index];
390 if (!runtime || !request)
392 eve::DiagnosticCode::InvalidArgument, "completeCellCleanupAtomic contains a null runtime or request",
393 "requests", {}, "procgen.squirrel"));
394 auto group = std::find_if(groups.begin(), groups.end(),
395 [runtime](const auto& candidate) { return candidate.runtime == runtime; });
396 if (group == groups.end()) {
397 groups.push_back({runtime, {}});
398 group = std::prev(groups.end());
399 }
400 group->requests.push_back(request);
401 batchIds.push_back(prefix + "/L" + std::to_string(request->getLevel()) + "/" + std::to_string(request->getX()) +
402 "/" + std::to_string(request->getZ()));
403 }
404 for (const auto& group : groups) {
405 auto validated = group.runtime->validateCleanups(group.requests);
406 if (!validated.ok()) return eve::Result<uint64_t>::failure(validated.status());
407 }
408 return sink->removeBatchesCoordinated(batchIds, [&groups] {
409 for (auto& group : groups) group.runtime->eraseValidatedCleanups(group.requests);
411 });
412}
413
414int Procgen::getPublishedInstanceCount(const std::string& batchId) const {
415 auto* sink = eve::cap::query<eve::IProcgenSceneSink>();
416 return sink && !batchId.empty() ? sink->instanceCount(batchId) : 0;
417}
418
419int Procgen::getPublishedCreatedCount(const std::string& batchId) const {
420 auto* sink = eve::cap::query<eve::IProcgenSceneSink>();
421 return sink && !batchId.empty() ? sink->lastCreatedCount(batchId) : 0;
422}
423
424int Procgen::getPublishedReusedCount(const std::string& batchId) const {
425 auto* sink = eve::cap::query<eve::IProcgenSceneSink>();
426 return sink && !batchId.empty() ? sink->lastReusedCount(batchId) : 0;
427}
428
429int Procgen::getPublishedRemovedCount(const std::string& batchId) const {
430 auto* sink = eve::cap::query<eve::IProcgenSceneSink>();
431 return sink && !batchId.empty() ? sink->lastRemovedCount(batchId) : 0;
432}
433
434
435} // namespace eve::procgen
double z
double x
std::string output
eve::EntitySpatialPose pose
const GltfImportRequest & request
Snapshot snapshot
int level
OceanSprayView view
uint32_t groups
Definition OnnxGpgpu.cpp:39
std::shared_ptr< const std::vector< glm::vec2 > > points
std::string build
bool found
The single Squirrel projection for common Result, Status and Value.
AbilityActivationGroup group
float size
Definition TreeMesh.cpp:158
uint32_t index
glm::vec3 point
static Result< AssetRef > parse(std::string_view text)
Parse an asset://<canonical UUID> reference.
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={})
Construct an error diagnostic with the standard error severity.
Move-only operation result carrying either a value or Status.
Definition Result.h:176
static Result success(T value)
Construct a successful result owning value.
Definition Result.h:185
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:196
static std::optional< Id128 > parse(std::string_view text) noexcept
Parses canonical UUID text.
Definition Identity.h:150
const std::vector< ProcgenPoint > & points() const
Borrow immutable point rows; structural ownership remains with this set.
Definition PointSet.h:212
One immutable runtime-generation cell request returned to script.
int getPublishedReusedCount(const std::string &batchId) const
Returns the published reused count.
int getPublishedRemovedCount(const std::string &batchId) const
Returns the published removed count.
eve::Result< uint64_t > synchronizeCellInstances(const std::string &prefix, const RuntimeGeneration &runtime, const ProcgenCellRequest &request, const std::string &assetAttribute, const std::string &defaultAsset)
Synchronize one active RuntimeGeneration cell to Scene using a delta or recovery snapshot.
eve::Result< void > removeCellInstances(const std::string &prefix, const ProcgenCellRequest &request)
Removes cell instances.
eve::Result< void > publishInstances(const std::string &batchId, ProcgenPointSetHandleRef points, const std::string &assetAttribute, const std::string &defaultAsset)
eve::Result< uint64_t > synchronizeCellInstancesAtomic(const std::string &prefix, const std::vector< const RuntimeGeneration * > &runtimes, const std::vector< const ProcgenCellRequest * > &requests, const std::string &assetAttribute, const std::string &defaultAsset)
Synchronize several active runtime cells through one atomic Scene transaction.
eve::Result< uint64_t > completeCellCleanupAtomic(const std::string &prefix, const std::vector< RuntimeGeneration * > &runtimes, const std::vector< const ProcgenCellRequest * > &requests)
Atomically remove Scene batches and acknowledge their cleanup tickets across schedulers.
eve::Result< uint64_t > publishCellSnapshot(const std::string &prefix, const ProcgenCellRequest &request, ProcgenPointSetHandleRef points, uint64_t targetRevision, const std::string &assetAttribute, const std::string &defaultAsset)
Replace a Scene cell batch from a complete RuntimeGeneration snapshot at an explicit revision.
eve::Result< uint64_t > publishCellInstanceDelta(const std::string &prefix, const ProcgenCellRequest &request, const PointDelta &delta, uint64_t targetRevision, const std::string &assetAttribute, const std::string &defaultAsset)
Project one committed point delta into an existing Scene cell batch atomically.
int getPublishedCreatedCount(const std::string &batchId) const
Returns the published created count.
eve::Result< void > removeInstances(const std::string &batchId)
Removes instances.
eve::script::Borrowed< PointSet > resolvePointSet(ProcgenPointSetHandleRef reference) noexcept
Resolves a point set as a borrowed view.
eve::Result< uint64_t > removeCellInstancesAtomic(const std::string &prefix, const std::vector< const ProcgenCellRequest * > &requests)
Atomically remove the Scene batches identified by several cleanup requests.
int getPublishedInstanceCount(const std::string &batchId) const
Returns the published instance count.
eve::Result< void > publishCellInstances(const std::string &prefix, const ProcgenCellRequest &request, ProcgenPointSetHandleRef points, const std::string &assetAttribute, const std::string &defaultAsset)
Publish cell instances.
View-driven partition and hierarchical procedural generation scheduler.
@ TypeMismatch
A stable reference resolved to a different canonical domain type.
Stable procedural prefab link at an exact admitted package build; contains no runtime pointers.
Identity-based, revision-checked mutation of one procedural scene batch.
std::vector< uint64_t > removedPointIds
Stable source PointIds removed from the target batch.
std::vector< ProcgenInstanceDesc > updated
std::vector< uint64_t > targetPointOrder
Exact target order addressed by stable source PointId.
std::vector< ProcgenInstanceDesc > added
Engine-neutral description of one procedural scene instance.
float pitch
Local X rotation in degrees, composed as yaw(Y), pitch(X), roll(Z); zero preserves legacy instances.
float roll
Local Z rotation in degrees; owned value retained by full snapshots and identity-based deltas.
float yaw
Local Y rotation in degrees; the scene provider converts all Euler angles to its native radians.
uint64_t sourcePointId
Stable source PointId; zero denotes a legacy instance without delta identity.
std::string asset
Compatibility asset label; when assetBinding exists, its typed identity is authoritative and must mat...
std::optional< ProcgenInstanceAssetBinding > assetBinding
Canonical asset link; asset remains its matching compatibility label when present.
Transactional identity-based change set between two point snapshots.
Definition PointDelta.h:16
PointSet added
Target-only points, including their complete attribute rows.
Definition PointDelta.h:18
PointSet updated
Base identities whose point or attribute content changed.
Definition PointDelta.h:20
std::vector< std::uint64_t > removed
Base identities absent from the target snapshot.
Definition PointDelta.h:22
std::vector< std::uint64_t > targetOrder
Exact identity order of the target snapshot.
Definition PointDelta.h:24
Handle plus owner-lifetime epoch for a non-ECS registry object.