feat: save games and edit scene darkness
Persist show state to local saves; author map darkness in scene editor with bake-to-scene and help updates. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -112,4 +112,12 @@ export class SceneTokensSessionStore {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
load(byPlacementId: SceneTokensSessionState['byPlacementId']): SceneTokensSessionState {
|
||||
this.state = {
|
||||
revision: this.state.revision + 1,
|
||||
byPlacementId: { ...byPlacementId },
|
||||
};
|
||||
return this.state;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -166,6 +166,19 @@ export class TokenPathSessionStore {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
load(
|
||||
playback: TokenPathSessionState['playback'],
|
||||
presentationVisible: TokenPathSessionState['presentationVisible'],
|
||||
): TokenPathSessionState {
|
||||
this.state = {
|
||||
revision: this.state.revision + 1,
|
||||
playback: { ...playback },
|
||||
presentationVisible: { ...presentationVisible },
|
||||
serverNowMs: Date.now(),
|
||||
};
|
||||
return this.state;
|
||||
}
|
||||
}
|
||||
|
||||
export type { TokenPathTargetRef };
|
||||
|
||||
Reference in New Issue
Block a user