mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-07 19:10:12 +08:00
feat: load responses and tasks from existing session
This commit is contained in:
1 parent
2fcca0c4b9
commit
b4b8f8baee
9 files changed
+52
-28
No files matched your search
@@ -8,7 +8,7 @@ import {
|
||||
ITask,
|
||||
} from './schema'
|
||||
|
||||
export class Session implements ISession {
|
||||
export class GameSession implements ISession {
|
||||
private completed: string[] = []
|
||||
private quest: Quest
|
||||
|
||||
|
||||
@@ -35,3 +35,10 @@ export const conditionSchema: z.ZodType<ICondition> =
|
||||
export interface IFileExistenceChecker {
|
||||
exists(file: IFileInput): Promise<boolean>
|
||||
}
|
||||
|
||||
export class VoidFileExistenceChecker implements IFileExistenceChecker {
|
||||
// eslint-disable-next-line class-methods-use-this
|
||||
async exists(_file: IFileInput): Promise<boolean> {
|
||||
return false
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user