etherealengine
etherealengine copied to clipboard
Add ECS tables to database, scene.json becomes seed
"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)
}