Stable outer format shared by persistence and cross-process snapshots. 更多...
#include <Snapshot.h>
Public 属性 | |
| std::string | type |
| LogicalId | schema |
| SchemaVersion | schemaVersion |
| PersistentId | instanceId |
| Revision | revision |
| SimulationTick | tick |
| ContentId | contentHash |
| Value | payload |
详细描述
Stable outer format shared by persistence and cross-process snapshots.
payload is owned by the envelope. schema identifies the payload contract, while schemaVersion identifies the version of that contract. Unknown payload fields remain the domain consumer's policy; unknown envelope fields are rejected by the strict parser.
在文件 Snapshot.h 第 46 行定义.
类成员变量说明
◆ contentHash
| ContentId eve::SnapshotEnvelope::contentHash |
在文件 Snapshot.h 第 53 行定义.
被这些函数引用 eve::snapshotEnvelopeValue() , 以及 eve::verifySnapshotEnvelope().
◆ instanceId
| PersistentId eve::SnapshotEnvelope::instanceId |
◆ payload
| Value eve::SnapshotEnvelope::payload |
在文件 Snapshot.h 第 54 行定义.
被这些函数引用 eve::pixelworld_streaming::decodeChunkBatchArchive(), eve::SnapshotMigrationChain::migrate(), eve::physics::World::restore(), eve::physics::World3D::restore(), eve::definition::restoreRuntimeInstance(), eve::pixelworld_replay::PixelReplayLog::restoreSnapshot() , 以及 eve::snapshotEnvelopeValue().
◆ revision
| Revision eve::SnapshotEnvelope::revision |
◆ schema
| LogicalId eve::SnapshotEnvelope::schema |
◆ schemaVersion
| SchemaVersion eve::SnapshotEnvelope::schemaVersion |
在文件 Snapshot.h 第 49 行定义.
被这些函数引用 eve::pixelworld_streaming::decodeChunkBatchArchive(), eve::SnapshotMigrationChain::migrate(), eve::physics::World::restore(), eve::physics::World3D::restore(), eve::definition::restoreRuntimeInstance(), eve::pixelworld_replay::PixelReplayLog::restoreSnapshot() , 以及 eve::snapshotEnvelopeValue().
◆ tick
| SimulationTick eve::SnapshotEnvelope::tick |
◆ type
| std::string eve::SnapshotEnvelope::type |
该结构体的文档由以下文件生成:
- src/engine/common/Snapshot.h