@dcl/sdk 7.0.0-2536766001.commit-8116fe1 → 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.
- package/dist/ecs7/index.d.ts +23 -3
- package/dist/ecs7/index.js +193 -60
- package/dist/ecs7/index.min.js +1 -1
- package/dist/ecs7/index.min.js.map +1 -1
- package/dist/ecs7/proto-definitions/Animator.proto +18 -0
- package/package.json +4 -4
- package/types/ecs7/index.d.ts +23 -3
- package/types/env/index.d.ts +0 -329
- package/types/tsconfig.ecs7.json +2 -2
- package/types/ecs7-env/es2015.iterable.d.ts +0 -486
- package/types/ecs7-env/es2015.symbol.d.ts +0 -46
- package/types/ecs7-env/index.d.ts +0 -19
- package/types/env/es5.d.ts +0 -4565
package/dist/ecs7/index.d.ts
CHANGED
@@ -185,6 +185,7 @@ export 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>>;
|
@@ -234,9 +235,7 @@ export declare type EcsType<T = any> = {
|
|
234
235
|
/**
|
235
236
|
* @public
|
236
237
|
*/
|
237
|
-
export declare function Engine({ transports }?:
|
238
|
-
transports?: Transport[];
|
239
|
-
}): IEngine;
|
238
|
+
export declare function Engine({ transports }?: IEngineParams): IEngine;
|
240
239
|
|
241
240
|
/**
|
242
241
|
* @alpha * This file initialization is an alpha one. This is based on the old-ecs
|
@@ -306,6 +305,13 @@ export declare type IEngine = {
|
|
306
305
|
baseComponents: SdkComponetns;
|
307
306
|
};
|
308
307
|
|
308
|
+
/**
|
309
|
+
* @public
|
310
|
+
*/
|
311
|
+
export declare type IEngineParams = {
|
312
|
+
transports?: Transport[];
|
313
|
+
};
|
314
|
+
|
309
315
|
/** Include property keys from T where the property is assignable to U */
|
310
316
|
declare type IncludeUndefined<T> = {
|
311
317
|
[P in keyof T]: undefined extends T[P] ? P : never;
|
@@ -1099,6 +1105,20 @@ export declare enum Orientation {
|
|
1099
1105
|
CCW = 1
|
1100
1106
|
}
|
1101
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
|
+
|
1102
1122
|
declare interface PBAudioSource {
|
1103
1123
|
playing: boolean;
|
1104
1124
|
volume: number;
|