@dcl/sdk 7.0.0-2569737935.commit-cdfa2fc → 7.0.0-2590698369.commit-b86034f
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.
@@ -0,0 +1,18 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
|
3
|
+
import "common/id.proto";
|
4
|
+
option (ecs_component_id) = 1042;
|
5
|
+
|
6
|
+
message PBAnimator {
|
7
|
+
repeated PBAnimationState states = 1;
|
8
|
+
}
|
9
|
+
|
10
|
+
message PBAnimationState {
|
11
|
+
string name = 1;
|
12
|
+
string clip = 2;
|
13
|
+
bool playing = 3;
|
14
|
+
float weight = 4;
|
15
|
+
float speed = 5;
|
16
|
+
bool loop = 6;
|
17
|
+
bool should_reset = 7;
|
18
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dcl/sdk",
|
3
|
-
"version": "7.0.0-
|
3
|
+
"version": "7.0.0-2590698369.commit-b86034f",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/src/index.js",
|
6
6
|
"typings": "dist/index.d.ts",
|
@@ -27,8 +27,8 @@
|
|
27
27
|
"src/cli/**/*.js"
|
28
28
|
],
|
29
29
|
"dependencies": {
|
30
|
-
"@dcl/amd": "6.11.
|
31
|
-
"@dcl/build-ecs": "6.11.
|
30
|
+
"@dcl/amd": "6.11.3-2590698369.commit-b86034f",
|
31
|
+
"@dcl/build-ecs": "6.11.3-2590698369.commit-b86034f",
|
32
32
|
"@dcl/kernel": "^1.0.0-2529763428.commit-f5a0321",
|
33
33
|
"@dcl/posix": "^1.0.4",
|
34
34
|
"@dcl/schemas": "4.8.0",
|
@@ -38,5 +38,5 @@
|
|
38
38
|
"ignore": "^5.1.8"
|
39
39
|
},
|
40
40
|
"minCliVersion": "3.10.2",
|
41
|
-
"commit": "
|
41
|
+
"commit": "b86034ff2a089851c6bca2de40983187c7ed9521"
|
42
42
|
}
|
package/types/ecs7/index.d.ts
CHANGED
@@ -185,6 +185,7 @@ declare type DeepReadonly<T> = {
|
|
185
185
|
};
|
186
186
|
|
187
187
|
declare function defineSdkComponents(engine: Pick<IEngine, 'defineComponent'>): {
|
188
|
+
Animator: ComponentDefinition<EcsType<PBAnimator>>;
|
188
189
|
AudioSource: ComponentDefinition<EcsType<PBAudioSource>>;
|
189
190
|
AudioStream: ComponentDefinition<EcsType<PBAudioStream>>;
|
190
191
|
BoxShape: ComponentDefinition<EcsType<PBBoxShape>>;
|
@@ -1104,6 +1105,20 @@ declare enum Orientation {
|
|
1104
1105
|
CCW = 1
|
1105
1106
|
}
|
1106
1107
|
|
1108
|
+
declare interface PBAnimationState {
|
1109
|
+
name: string;
|
1110
|
+
clip: string;
|
1111
|
+
playing: boolean;
|
1112
|
+
weight: number;
|
1113
|
+
speed: number;
|
1114
|
+
loop: boolean;
|
1115
|
+
shouldReset: boolean;
|
1116
|
+
}
|
1117
|
+
|
1118
|
+
declare interface PBAnimator {
|
1119
|
+
states: PBAnimationState[];
|
1120
|
+
}
|
1121
|
+
|
1107
1122
|
declare interface PBAudioSource {
|
1108
1123
|
playing: boolean;
|
1109
1124
|
volume: number;
|