mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 03:20:12 +08:00
feat: add isFinished method to GameSession and update commandController to handle session completion
This commit is contained in:
1 parent
cfbc386c16
commit
52e9a13645
2 files changed
+7
-2
No files matched your search
@@ -44,6 +44,10 @@ export class GameSession {
|
||||
return stageId
|
||||
}
|
||||
|
||||
isFinished() {
|
||||
return this.getActiveStages().length === 0
|
||||
}
|
||||
|
||||
getResponses(): IResponse[] {
|
||||
return this.quest.getResponses(this.completed)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user