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:
@@ -315,4 +315,16 @@ export class InitiativeSessionStore {
|
||||
this.state = next;
|
||||
return this.state;
|
||||
}
|
||||
|
||||
load(next: Omit<InitiativeState, 'revision'>): InitiativeState {
|
||||
this.state = ensureActiveValid({
|
||||
...next,
|
||||
revision: this.state.revision + 1,
|
||||
entries: { ...next.entries },
|
||||
order: [...next.order],
|
||||
reserve: [...next.reserve],
|
||||
conditions: { ...next.conditions },
|
||||
});
|
||||
return this.state;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user