mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
refactor: separate createSession to sessionManager
This commit is contained in:
1 parent
7843020524
commit
11bc793b12
7 files changed
+68
-49
No files matched your search
@@ -6,6 +6,10 @@ export default class SessionHandler {
|
||||
this.quest = session.quest
|
||||
}
|
||||
|
||||
getSession() {
|
||||
return this.session
|
||||
}
|
||||
|
||||
getTask(stage) {
|
||||
return this.session.tasks.find((t) => t.id === stage.id)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user