Skip to content

Commit

Permalink
removed secondary open method to unlock outro in 2d, instead added po…
Browse files Browse the repository at this point in the history
…rtcall
  • Loading branch information
Lizardguard committed Feb 12, 2024
1 parent f1bade4 commit 4d46aba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import { StoryElementType } from "src/Components/Core/Domain/Types/StoryElementT

export default interface IStoryElementPresenter extends ILearningWorldAdapter {
open(type: StoryElementType): void;
openThroughOutroSequence(): void;
onStoryElementCutSceneTriggered(storyType: StoryElementType): void;
onLearningSpaceLoaded(learningSpaceTO: LearningSpaceTO): void;
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ export default class StoryElementPresenter implements IStoryElementPresenter {
this.viewModel.pickedStory.Value = type;
}
}
openThroughOutroSequence(): void {
this.viewModel.outroJustNowUnlocked.Value = true;
this.viewModel.outroUnlocked.Value = true;
this.viewModel.isOpen.Value = true;
this.viewModel.pageId.Value = 0;

onStoryElementCutSceneTriggered(storyType: StoryElementType): void {
if (storyType === StoryElementType.Outro) {
this.viewModel.outroJustNowUnlocked.Value = true;
this.viewModel.outroUnlocked.Value = true;
this.viewModel.pageId.Value = 0;
}
}

onLearningSpaceLoaded(learningSpaceTO: LearningSpaceTO): void {
Expand Down

0 comments on commit 4d46aba

Please sign in to comment.