@dcl/protocol 1.0.0-8299166777.commit-9493ffe → 1.0.0-8691799990.commit-4ba546c

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.
@@ -18,13 +18,13 @@ export interface PBAnimationState {
18
18
  clip: string;
19
19
  /** whether this animation is currently playing */
20
20
  playing?: boolean | undefined;
21
- /** the "weight" of this animation (see below, default: 1.0) */
21
+ /** @experimental the "weight" of this animation (see below, default: 1.0) */
22
22
  weight?: number | undefined;
23
23
  /** the playback speed (default: 1.0) */
24
24
  speed?: number | undefined;
25
- /** whether the animation repeats until stopped (default: true) */
25
+ /** whether the animation repeats (**) until is manually stopped (default: true) */
26
26
  loop?: boolean | undefined;
27
- /** whether the Entity is restored to its prior state when done */
27
+ /** whether the animation is restored to the initial state (*) when it changes from stopped to playing (default: false) */
28
28
  shouldReset?: boolean | undefined;
29
29
  }
30
30
  export declare namespace PBAnimator {
@@ -24,7 +24,7 @@ export interface PBAnimationState {
24
24
  playing?:
25
25
  | boolean
26
26
  | undefined;
27
- /** the "weight" of this animation (see below, default: 1.0) */
27
+ /** @experimental the "weight" of this animation (see below, default: 1.0) */
28
28
  weight?:
29
29
  | number
30
30
  | undefined;
@@ -32,11 +32,11 @@ export interface PBAnimationState {
32
32
  speed?:
33
33
  | number
34
34
  | undefined;
35
- /** whether the animation repeats until stopped (default: true) */
35
+ /** whether the animation repeats (**) until is manually stopped (default: true) */
36
36
  loop?:
37
37
  | boolean
38
38
  | undefined;
39
- /** whether the Entity is restored to its prior state when done */
39
+ /** whether the animation is restored to the initial state (*) when it changes from stopped to playing (default: false) */
40
40
  shouldReset?: boolean | undefined;
41
41
  }
42
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-8299166777.commit-9493ffe",
3
+ "version": "1.0.0-8691799990.commit-4ba546c",
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": "9493ffe42c566401a2997e02bcd286bf188953bb"
32
+ "commit": "4ba546c1344330abcc668aa7dddaaf66860078a6"
33
33
  }
@@ -14,13 +14,18 @@ message PBAnimator {
14
14
  repeated PBAnimationState states = 1; // a collection of animations and their current state
15
15
  }
16
16
 
17
+ // (*) initial state means what frame is set when the state is reset:
18
+ // - if `speed` >= 0 the frame set is the first one
19
+ // - if `speed` < 0 the frame set is the last one
20
+ // (**) repeating means going back to the initial state at the moment the given animation is finished and keeps playing
21
+
17
22
  // AnimationState indicates the status and configuration of one available animation.
18
23
  message PBAnimationState {
19
24
  reserved 1; // deprecated `name` prop
20
25
  string clip = 2; // the animation path in the `files` array of the scene manifest
21
26
  optional bool playing = 3; // whether this animation is currently playing
22
- optional float weight = 4; // the "weight" of this animation (see below, default: 1.0)
27
+ optional float weight = 4; // @experimental the "weight" of this animation (see below, default: 1.0)
23
28
  optional float speed = 5; // the playback speed (default: 1.0)
24
- optional bool loop = 6; // whether the animation repeats until stopped (default: true)
25
- optional bool should_reset = 7; // whether the Entity is restored to its prior state when done
29
+ optional bool loop = 6; // whether the animation repeats (**) until is manually stopped (default: true)
30
+ optional bool should_reset = 7; // whether the animation is restored to the initial state (*) when it changes from stopped to playing (default: false)
26
31
  }
@@ -0,0 +1,12 @@
1
+ syntax = "proto3";
2
+
3
+ package decentraland.sdk.components;
4
+
5
+ import "decentraland/sdk/components/common/id.proto";
6
+ import "decentraland/sdk/components/common/media_state.proto";
7
+ option (common.ecs_component_id) = 1105;
8
+
9
+ message PBAudioEvent {
10
+ common.MediaState state = 1;
11
+ uint32 timestamp = 2; // monotonic counter
12
+ }
@@ -0,0 +1,13 @@
1
+ syntax = "proto3";
2
+ package decentraland.sdk.components.common;
3
+
4
+ enum MediaState {
5
+ MS_NONE = 0;
6
+ MS_ERROR = 1;
7
+ MS_LOADING = 2;
8
+ MS_READY = 3;
9
+ MS_PLAYING = 4;
10
+ MS_BUFFERING = 5;
11
+ MS_SEEKING = 6;
12
+ MS_PAUSED = 7;
13
+ }