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 { interface ProjectDocument {
version: number; version: number;
name: string; name: string;
time: ProjectTimeSettings;
activeSceneId: string; activeSceneId: string;
scenes: Record<string, ProjectScene>; scenes: Record<string, ProjectScene>;
materials: Record<string, MaterialDef>; 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 - one authored global directional light / sun for early slices
- fog settings where supported - 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. Do not model global world lighting as ad hoc hidden viewport state.
--- ---
@@ -985,6 +988,7 @@ Recommended separation:
- playing sounds - playing sounds
- trigger occupancy - trigger occupancy
- animation playback state - animation playback state
- project clock state
Keep ephemeral rendering and interaction state out of the serialized document. Keep ephemeral rendering and interaction state out of the serialized document.