@dcl/sdk 7.0.0-3313983919.commit-4ba44d2 → 7.0.0-3314293671.commit-655be93
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 +47 -0
- package/dist/ecs7/index.js +111 -1
- package/dist/ecs7/index.min.js +1 -1
- package/dist/ecs7/index.min.js.map +1 -1
- package/package.json +4 -4
- package/types/ecs7/index.d.ts +47 -0
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-3314293671.commit-655be93",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/src/index.js",
|
6
6
|
"typings": "dist/index.d.ts",
|
@@ -23,12 +23,12 @@
|
|
23
23
|
"artifacts"
|
24
24
|
],
|
25
25
|
"dependencies": {
|
26
|
-
"@dcl/amd": "6.11.10-
|
27
|
-
"@dcl/build-ecs": "6.11.10-
|
26
|
+
"@dcl/amd": "6.11.10-3314293671.commit-655be93",
|
27
|
+
"@dcl/build-ecs": "6.11.10-3314293671.commit-655be93",
|
28
28
|
"@dcl/kernel": "1.0.0-2994874542.commit-c3ae489",
|
29
29
|
"@dcl/posix": "^1.0.4",
|
30
30
|
"@dcl/unity-renderer": "^1.0.40531-20220621125654.commit-472137e"
|
31
31
|
},
|
32
32
|
"minCliVersion": "3.10.2",
|
33
|
-
"commit": "
|
33
|
+
"commit": "655be932f87c7f8889b190e5705e6237b749c53b"
|
34
34
|
}
|
package/types/ecs7/index.d.ts
CHANGED
@@ -414,6 +414,15 @@ declare interface Color3_2 {
|
|
414
414
|
b: number;
|
415
415
|
}
|
416
416
|
|
417
|
+
/**
|
418
|
+
* @public
|
419
|
+
*/
|
420
|
+
declare type Color3Type = {
|
421
|
+
r: number;
|
422
|
+
g: number;
|
423
|
+
b: number;
|
424
|
+
};
|
425
|
+
|
417
426
|
/**
|
418
427
|
* @public
|
419
428
|
* Color4 is a type and a namespace.
|
@@ -759,6 +768,16 @@ declare interface Color4_2 {
|
|
759
768
|
a: number;
|
760
769
|
}
|
761
770
|
|
771
|
+
/**
|
772
|
+
* @public
|
773
|
+
*/
|
774
|
+
declare type Color4Type = {
|
775
|
+
r: number;
|
776
|
+
g: number;
|
777
|
+
b: number;
|
778
|
+
a: number;
|
779
|
+
};
|
780
|
+
|
762
781
|
/**
|
763
782
|
* @public
|
764
783
|
*/
|
@@ -1227,6 +1246,11 @@ declare type IEngine = {
|
|
1227
1246
|
* @param entity
|
1228
1247
|
*/
|
1229
1248
|
removeEntity(entity: Entity): void;
|
1249
|
+
/**
|
1250
|
+
* Remove all components of each entity in the tree made with Transform parenting
|
1251
|
+
* @param firstEntity - the root entity of the tree
|
1252
|
+
*/
|
1253
|
+
removeEntityWithChildren(firstEntity: Entity): void;
|
1230
1254
|
/**
|
1231
1255
|
* Add the system to the engine. It will be called every tick updated.
|
1232
1256
|
* @param system function that receives the delta time between last tick and current one.
|
@@ -3321,6 +3345,16 @@ declare namespace Quaternion {
|
|
3321
3345
|
export function fromLookAtToRef(position: Vector3.ReadonlyVector3, target: Vector3.ReadonlyVector3, worldUp: Vector3.ReadonlyVector3 | undefined, result: MutableQuaternion): void;
|
3322
3346
|
}
|
3323
3347
|
|
3348
|
+
/**
|
3349
|
+
* @public
|
3350
|
+
*/
|
3351
|
+
declare type QuaternionType = {
|
3352
|
+
x: number;
|
3353
|
+
y: number;
|
3354
|
+
z: number;
|
3355
|
+
w: number;
|
3356
|
+
};
|
3357
|
+
|
3324
3358
|
/**
|
3325
3359
|
* Constant used to convert from radians to Euler degrees
|
3326
3360
|
* @public
|
@@ -3584,6 +3618,10 @@ declare namespace Schemas {
|
|
3584
3618
|
const Int: ISchema<number>;
|
3585
3619
|
const Int64: ISchema<number>;
|
3586
3620
|
const Number: ISchema<number>;
|
3621
|
+
const Vector3: ISchema<Vector3Type>;
|
3622
|
+
const Quaternion: ISchema<QuaternionType>;
|
3623
|
+
const Color3: ISchema<Color3Type>;
|
3624
|
+
const Color4: ISchema<Color4Type>;
|
3587
3625
|
const Enum: typeof IEnum;
|
3588
3626
|
const Array: typeof IArray;
|
3589
3627
|
const Map: typeof IMap;
|
@@ -4290,6 +4328,15 @@ declare interface Vector3_2 {
|
|
4290
4328
|
z: number;
|
4291
4329
|
}
|
4292
4330
|
|
4331
|
+
/**
|
4332
|
+
* @public
|
4333
|
+
*/
|
4334
|
+
declare type Vector3Type = {
|
4335
|
+
x: number;
|
4336
|
+
y: number;
|
4337
|
+
z: number;
|
4338
|
+
};
|
4339
|
+
|
4293
4340
|
/** @public */
|
4294
4341
|
declare const VisibilityComponent: ComponentDefinition<ISchema<PBVisibilityComponent>, PBVisibilityComponent>;
|
4295
4342
|
|