-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reconnected door/element presenters with avatar
- Loading branch information
1 parent
25e6759
commit 448a43a
Showing
10 changed files
with
67 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
src/Components/Core/Presentation/Babylon/Avatar/IAvatarBuilder.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
import { LearningSpaceTemplateType } from "src/Components/Core/Domain/Types/LearningSpaceTemplateType"; | ||
import IAsyncPresentationBuilder from "../../PresentationBuilder/IAsyncPresentationBuilder"; | ||
import ILearningSpacePresenter from "../LearningSpaces/ILearningSpacePresenter"; | ||
|
||
export default interface IAvatarBuilder extends IAsyncPresentationBuilder { | ||
learningSpaceTemplateType: LearningSpaceTemplateType; | ||
learningSpacePresenter: ILearningSpacePresenter; | ||
} |
6 changes: 5 additions & 1 deletion
6
src/Components/Core/Presentation/Babylon/Avatar/IAvatarController.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
export default interface IAvatarController {} | ||
import ILearningSpacePresenter from "../LearningSpaces/ILearningSpacePresenter"; | ||
|
||
export default interface IAvatarController { | ||
learningSpacePresenter: ILearningSpacePresenter; | ||
} |
3 changes: 2 additions & 1 deletion
3
src/Components/Core/Presentation/Babylon/Door/IDoorPresenter.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import LearningSpaceScoreTO from "src/Components/Core/Application/DataTransferObjects/LearningSpaceScoreTO"; | ||
import { Vector3 } from "@babylonjs/core"; | ||
import ILearningWorldAdapter from "src/Components/Core/Application/Ports/LearningWorldPort/ILearningWorldAdapter"; | ||
|
||
export default interface IDoorPresenter extends ILearningWorldAdapter { | ||
openDoor(): void; | ||
onAvatarPositionChanged(position: Vector3, interactionRadius: number): void; | ||
} |
2 changes: 2 additions & 0 deletions
2
src/Components/Core/Presentation/Babylon/LearningElements/ILearningElementPresenter.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
import { ComponentID } from "src/Components/Core/Domain/Types/EntityTypes"; | ||
import ILearningWorldAdapter from "src/Components/Core/Application/Ports/LearningWorldPort/ILearningWorldAdapter"; | ||
import { Vector3 } from "@babylonjs/core"; | ||
|
||
export default interface ILearningElementPresenter | ||
extends ILearningWorldAdapter { | ||
onLearningElementScored(hasScored: boolean, elementID: ComponentID): void; | ||
onAvatarPositionChanged(position: Vector3, interactionRadius: number): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
src/Components/Core/Presentation/Babylon/LearningSpaces/ILearningSpacePresenter.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
import { Vector3 } from "@babylonjs/core"; | ||
import LearningSpaceTO from "src/Components/Core/Application/DataTransferObjects/LearningSpaceTO"; | ||
|
||
export default interface ILearningSpacePresenter { | ||
asyncSetupSpace(spaceData: LearningSpaceTO): Promise<void>; | ||
broadcastAvatarPosition(position: Vector3, interactionRadius: number): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters