Skip to content

Commit

Permalink
chore: virtual camera components iteration (#998)
Browse files Browse the repository at this point in the history
Updated protocol and adapted to it.
  • Loading branch information
pravusjif authored Sep 17, 2024
1 parent ddc542d commit 3fc6621
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 34 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"bugs": "https://github.com/decentraland/js-sdk-toolchain/issues",
"dependencies": {
"@actions/core": "^1.10.0",
"@dcl/protocol": "1.0.0-10704143848.commit-a0c6d86",
"@dcl/protocol": "1.0.0-10884114018.commit-31410eb",
"@dcl/quickjs-emscripten": "^0.21.0-3680274614.commit-1808aa1",
"@dcl/ts-proto": "1.153.0",
"@types/fs-extra": "^9.0.12",
Expand Down
8 changes: 2 additions & 6 deletions packages/@dcl/playground-assets/etc/playground-assets.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -355,10 +355,6 @@ export const CameraModeArea: LastWriteWinElementSetComponentDefinition<PBCameraM

// @public (undocumented)
export interface CameraTransition {
// (undocumented)
fromEntity?: number | undefined;
// (undocumented)
toEntity?: number | undefined;
// (undocumented)
transitionMode?: {
$case: "time";
Expand Down Expand Up @@ -2387,7 +2383,7 @@ export namespace PBInputModifier_StandardInput {

// @public (undocumented)
export interface PBMainCamera {
virtualCameraEntity: number;
virtualCameraEntity?: number | undefined;
}

// @public (undocumented)
Expand Down Expand Up @@ -3216,7 +3212,7 @@ export namespace PBVideoPlayer {
// @public (undocumented)
export interface PBVirtualCamera {
// (undocumented)
defaultTransition: CameraTransition | undefined;
defaultTransition?: CameraTransition | undefined;
// (undocumented)
lookAtEntity?: number | undefined;
}
Expand Down
14 changes: 7 additions & 7 deletions packages/@dcl/sdk-commands/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/@dcl/sdk-commands/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@dcl/inspector": "file:../inspector",
"@dcl/linker-dapp": "^0.14.2",
"@dcl/mini-comms": "1.0.1-20230216163137.commit-a4c75be",
"@dcl/protocol": "1.0.0-10704143848.commit-a0c6d86",
"@dcl/protocol": "1.0.0-10884114018.commit-31410eb",
"@dcl/quests-client": "^1.0.3",
"@dcl/quests-manager": "^0.1.4",
"@dcl/rpc": "^1.1.1",
Expand Down
16 changes: 4 additions & 12 deletions test/ecs/components/VirtualCamera.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ describe('VirtualCamera component', () => {
transitionMode: {
$case: 'time',
time: 3
},
fromEntity: 6,
toEntity: 66
}
},
lookAtEntity: 35
})
Expand All @@ -22,9 +20,7 @@ describe('VirtualCamera component', () => {
const vCamera = components.VirtualCamera(newEngine)
testComponentSerialization(vCamera, {
defaultTransition: {
transitionMode: vCamera.Transition.Time(6),
fromEntity: 9,
toEntity: 99
transitionMode: vCamera.Transition.Time(6)
},
lookAtEntity: 86
})
Expand All @@ -37,9 +33,7 @@ describe('VirtualCamera component', () => {
transitionMode: {
$case: 'speed',
speed: 13
},
fromEntity: 9,
toEntity: 99
}
},
lookAtEntity: 86
})
Expand All @@ -50,9 +44,7 @@ describe('VirtualCamera component', () => {
const vCamera = components.VirtualCamera(newEngine)
testComponentSerialization(vCamera, {
defaultTransition: {
transitionMode: vCamera.Transition.Speed(15),
fromEntity: 9,
toEntity: 99
transitionMode: vCamera.Transition.Speed(15)
},
lookAtEntity: 86
})
Expand Down

0 comments on commit 3fc6621

Please sign in to comment.