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:
@@ -310,4 +310,14 @@ export class SceneNpcTokensSessionStore {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
load(next: Omit<SceneNpcTokensSessionState, 'revision'>): SceneNpcTokensSessionState {
|
||||
this.state = {
|
||||
revision: this.state.revision + 1,
|
||||
byPlacementId: { ...next.byPlacementId },
|
||||
scale: clampNpcTokenSessionScale(next.scale),
|
||||
spawned: { ...next.spawned },
|
||||
};
|
||||
return this.state;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -179,4 +179,14 @@ export class ScenePlayerTokensSessionStore {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
load(next: Omit<ScenePlayerTokensSessionState, 'revision'>): ScenePlayerTokensSessionState {
|
||||
this.state = {
|
||||
revision: this.state.revision + 1,
|
||||
selectedPlayerIds: [...next.selectedPlayerIds],
|
||||
visible: next.visible,
|
||||
byPlayerId: { ...next.byPlayerId },
|
||||
};
|
||||
return this.state;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user