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:
@@ -256,4 +256,17 @@ export class NpcsOverlayStore {
|
||||
};
|
||||
return this.state;
|
||||
}
|
||||
|
||||
load(next: Pick<NpcsOverlayState, 'activeNpcIds' | 'layouts' | 'focusNpcId'>): NpcsOverlayState {
|
||||
this.state = {
|
||||
revision: this.state.revision + 1,
|
||||
activeNpcIds: [...next.activeNpcIds],
|
||||
layouts: { ...next.layouts },
|
||||
focusNpcId: next.focusNpcId,
|
||||
zoomTool: null,
|
||||
inspectNpcIds: [],
|
||||
inspectFocusNpcId: null,
|
||||
};
|
||||
return this.state;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user