@dcl/protocol 1.0.0-10670971402.commit-227b327 → 1.0.0-10704143848.commit-a0c6d86

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-10670971402.commit-227b327",
3
+ "version": "1.0.0-10704143848.commit-a0c6d86",
4
4
  "description": "",
5
5
  "repository": "decentraland/protocol.git",
6
6
  "homepage": "https://github.com/decentraland/protocol#readme",
@@ -29,5 +29,5 @@
29
29
  "out-js",
30
30
  "public"
31
31
  ],
32
- "commit": "227b3273af8bf935fa078952fb61cf63c76ca882"
32
+ "commit": "a0c6d866c35d5a289e88046a83594d01c893b76f"
33
33
  }
@@ -0,0 +1,12 @@
1
+ syntax = "proto3";
2
+ package decentraland.sdk.components.common;
3
+
4
+ message CameraTransition {
5
+ optional uint32 from_entity = 1;
6
+ optional uint32 to_entity = 2;
7
+ oneof transition_mode {
8
+ float time = 3;
9
+ float speed = 4; // meters per second; e.g. speed 1 -> 1 meter per second
10
+ }
11
+ // EasingFunction easing_function = 5; // enable in the future
12
+ }
@@ -0,0 +1,11 @@
1
+ syntax = "proto3";
2
+ package decentraland.sdk.components;
3
+
4
+ import "decentraland/sdk/components/common/id.proto";
5
+ option (common.ecs_component_id) = 1075;
6
+
7
+ // PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment. 0 means none.
8
+ message PBMainCamera {
9
+ uint32 virtual_camera_entity = 1; // currently active virtual camera (default: 0)
10
+ // repeated common.CameraTransition transitionOverrides = 2; // enable in the future
11
+ }
@@ -0,0 +1,15 @@
1
+ syntax = "proto3";
2
+ package decentraland.sdk.components;
3
+
4
+ import "decentraland/sdk/components/common/camera_transition.proto";
5
+ import "decentraland/sdk/components/common/id.proto";
6
+ option (common.ecs_component_id) = 1076;
7
+
8
+ // PBVirtualCamera represents a camera to be used at some point in time during the scene execution
9
+ // * The defaultTransition represents the transition TOWARDS this camera.
10
+ // * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
11
+ // the holding entity transform).
12
+ message PBVirtualCamera {
13
+ common.CameraTransition default_transition = 1;
14
+ optional uint32 look_at_entity = 2;
15
+ }