载入中...
搜索中...
未找到
PixelWorldReplay.h
浏览该文件的文档.
109 [[nodiscard]] std::span<const PixelReplayCheckpoint> checkpoints() const noexcept { return checkpoints_; }
Move-only, checked operation results for the common layer.
Versioned, integrity-checked persistence envelopes.
Common time values and an injectable deterministic simulation clock.
static constexpr StrongUint64 zero() noexcept
Returns the zero value for this strong type.
Definition StrongUint64.h:24
Sparse, chunked, deterministic 2D falling-material world.
Definition PixelWorld.h:224
Owning command log and periodic checkpoint projection for PixelWorld.
Definition PixelWorldReplay.h:67
std::span< const PixelReplayEntry > entries() const noexcept
Immutable owning-log views, valid until this log is mutated or destroyed.
Definition PixelWorldReplay.h:108
std::span< const PixelReplayCheckpoint > checkpoints() const noexcept
Definition PixelWorldReplay.h:109
PixelReplayMatch
Replay verification outcome; divergence is data, not an operational failure.
Definition PixelWorldReplay.h:41
std::function< Result< ContentId >(std::string_view canonicalInput)> SnapshotHashProvider
Injected content-digest implementation used by snapshots.
Definition Snapshot.h:36
Stable outer format shared by persistence and cross-process snapshots.
Definition Snapshot.h:46
Owning replayable edit command. Sequence must be exactly previous + 1.
Definition PixelWorld.h:155
Canonical content digest for one authoritative PixelWorld Chunk.
Definition PixelWorldReplay.h:24
friend bool operator==(const PixelChunkDigest &, const PixelChunkDigest &)=default
Operator ==.
std::uint64_t digest
Definition PixelWorldReplay.h:27
Periodic replay checkpoint containing world and per-Chunk diagnostics.
Definition PixelWorldReplay.h:33
std::uint64_t worldDigest
Definition PixelWorldReplay.h:36
eve::SimulationTick tick
Definition PixelWorldReplay.h:34
std::vector< PixelChunkDigest > chunks
Definition PixelWorldReplay.h:37
std::uint64_t revision
Definition PixelWorldReplay.h:35
First canonical mismatch found while replaying a log.
Definition PixelWorldReplay.h:44
eve::SimulationTick tick
Definition PixelWorldReplay.h:45
std::uint64_t actualRevision
Definition PixelWorldReplay.h:47
std::optional< PixelChunkDigest > actualChunk
Definition PixelWorldReplay.h:49
std::uint64_t expectedRevision
Definition PixelWorldReplay.h:46
std::optional< PixelChunkDigest > expectedChunk
Definition PixelWorldReplay.h:48
One deterministic edit admitted immediately before its simulation Tick.
Definition PixelWorldReplay.h:18
eve::SimulationTick tick
Definition PixelWorldReplay.h:19
eve::pixelworld::PixelEditCommand command
Definition PixelWorldReplay.h:20
Receipt from deterministic replay through an exact target Tick.
Definition PixelWorldReplay.h:53
std::optional< PixelReplayDivergence > firstDivergence
Definition PixelWorldReplay.h:57
std::uint64_t commandsApplied
Definition PixelWorldReplay.h:56
eve::SimulationTick reachedTick
Definition PixelWorldReplay.h:55
PixelReplayMatch match
Definition PixelWorldReplay.h:54