Integrate unfinished server-rs refactor worklists
This commit is contained in:
@@ -287,6 +287,11 @@ export function normalizeSavedGameState(gameState: GameState) {
|
||||
typeof hydratableState.runtimeSessionId === 'string'
|
||||
? hydratableState.runtimeSessionId
|
||||
: null,
|
||||
storySessionId:
|
||||
typeof hydratableState.storySessionId === 'string' &&
|
||||
hydratableState.storySessionId.trim()
|
||||
? hydratableState.storySessionId.trim()
|
||||
: null,
|
||||
} satisfies HydratedGameState);
|
||||
}
|
||||
|
||||
@@ -315,6 +320,8 @@ export function isHydratedSnapshotState(
|
||||
typeof gameState.runtimeActionVersion === 'number' &&
|
||||
(gameState.runtimeSessionId === null ||
|
||||
typeof gameState.runtimeSessionId === 'string') &&
|
||||
(gameState.storySessionId === null ||
|
||||
typeof gameState.storySessionId === 'string') &&
|
||||
(!gameState.playerCharacter ||
|
||||
Boolean(
|
||||
gameState.playerEquipment &&
|
||||
|
||||
Reference in New Issue
Block a user