etherealengine icon indicating copy to clipboard operation
etherealengine copied to clipboard

Add ECS tables to database, scene.json becomes seed

Open HexaField opened this issue 3 years ago â€ĸ 0 comments

"snapshot" is the state of the world at a specific point in time "event" is any change to the state of the world "time series" is a collection of concurrent events

Add 'snapshot' table

  • instanceId: uuid (from this, we can derive location & scene)
  • snapshotTime: number (UTC)

convention for snapshot url to s3/cloudfront = https://<s3>/snapshots/<instanceId>/<snapshot>.json (or something like that)

serialize deltas & actions from netcode to snapshot

snapshot datastructure

{
  index: number // (this is the eid)
  [key]: value // (this is a denormalized JSON KVstore)
}

HexaField avatar May 14 '22 00:05 HexaField