@dcl/protocol 1.0.0-10670971402.commit-227b327 → 1.0.0-10884114018.commit-31410eb

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-10884114018.commit-31410eb",
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": "31410eb7daca9b292e4c59272c06a2418f814988"
33
33
  }
@@ -0,0 +1,11 @@
1
+ syntax = "proto3";
2
+ package decentraland.sdk.components.common;
3
+
4
+ // Defines the transition used towards the camera that contains the CameraTransition.
5
+ // This structure may be updated in the future to specify from/to entities and to have easing functions.
6
+ message CameraTransition {
7
+ oneof transition_mode {
8
+ float time = 1;
9
+ float speed = 2; // meters per second; e.g. speed 1 -> 1 meter per second
10
+ }
11
+ }
@@ -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.
8
+ // This component may hold 'repeated common.CameraTransition' transitionOverrides in the future
9
+ message PBMainCamera {
10
+ optional uint32 virtual_camera_entity = 1; // current active virtual camera
11
+ }
@@ -0,0 +1,16 @@
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. If there is none, it's treated as
10
+ // an 'instant' transition (like using speed/time = 0)
11
+ // * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
12
+ // the holding entity transform).
13
+ message PBVirtualCamera {
14
+ optional common.CameraTransition default_transition = 1;
15
+ optional uint32 look_at_entity = 2;
16
+ }