Add Ink session recovery and Coolify Docker support
This commit is contained in:
Vendored
+7
-1
@@ -90,7 +90,14 @@ class InkEngine {
|
||||
nextTurnId: this.nextTurnId,
|
||||
});
|
||||
}
|
||||
resumeGame(savedState) {
|
||||
this.restoreState(savedState);
|
||||
}
|
||||
loadGame(savedState) {
|
||||
this.restoreState(savedState);
|
||||
return this.continueStory();
|
||||
}
|
||||
restoreState(savedState) {
|
||||
this.story = this.loadStory();
|
||||
let inkState = savedState;
|
||||
try {
|
||||
@@ -106,7 +113,6 @@ class InkEngine {
|
||||
// Backward compatibility with raw Ink state JSON.
|
||||
}
|
||||
this.story.state.LoadJson(inkState);
|
||||
return this.continueStory();
|
||||
}
|
||||
loadStory() {
|
||||
const resolvedPath = path_1.default.resolve(this.storyPath);
|
||||
|
||||
Reference in New Issue
Block a user