Add ProjectTimeSettings to architecture documentation

This commit is contained in:
2026-04-12 04:32:09 +02:00
parent c3f56292fd
commit 6a518f692d

View File

@@ -378,6 +378,7 @@ Example persisted project structure:
interface ProjectDocument {
version: number;
name: string;
time: ProjectTimeSettings;
activeSceneId: string;
scenes: Record<string, ProjectScene>;
materials: Record<string, MaterialDef>;
@@ -406,6 +407,8 @@ Imported model collision settings should be represented canonically on the relev
- one authored global directional light / sun for early slices
- fog settings where supported
`ProjectTimeSettings` is the correct home for project-wide clock and day/night settings that persist across scene transitions.
Do not model global world lighting as ad hoc hidden viewport state.
---
@@ -985,6 +988,7 @@ Recommended separation:
- playing sounds
- trigger occupancy
- animation playback state
- project clock state
Keep ephemeral rendering and interaction state out of the serialized document.