@dcl/sdk 7.0.0-2536021667.commit-17c845c → 7.0.0-2536237172.commit-c1aae82
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 +27 -1
- package/dist/ecs7/index.js +76 -36
- package/dist/ecs7/index.min.js +1 -1
- package/dist/ecs7/index.min.js.map +1 -1
- package/package.json +4 -4
- package/types/@decentraland/Identity/index.d.ts +2 -0
- package/types/@decentraland/Players/index.d.ts +2 -0
- package/types/ecs7/index.d.ts +27 -1
- package/types/tsconfig.ecs7.json +12 -2
package/dist/ecs7/index.d.ts
CHANGED
@@ -231,7 +231,15 @@ export declare type EcsType<T = any> = {
|
|
231
231
|
/**
|
232
232
|
* @public
|
233
233
|
*/
|
234
|
-
export declare function Engine(
|
234
|
+
export declare function Engine({ transports }?: {
|
235
|
+
transports?: Transport[];
|
236
|
+
}): IEngine;
|
237
|
+
|
238
|
+
/**
|
239
|
+
* @alpha * This file initialization is an alpha one. This is based on the old-ecs
|
240
|
+
* init and it'll be changing.
|
241
|
+
*/
|
242
|
+
export declare const engine: IEngine;
|
235
243
|
|
236
244
|
/**
|
237
245
|
* @public
|
@@ -1447,6 +1455,15 @@ export declare namespace Quaternion {
|
|
1447
1455
|
*/
|
1448
1456
|
export declare const RAD2DEG: number;
|
1449
1457
|
|
1458
|
+
declare type ReceiveMessage = {
|
1459
|
+
entity: Entity;
|
1460
|
+
componentId: number;
|
1461
|
+
timestamp: number;
|
1462
|
+
transportType?: string;
|
1463
|
+
data: Uint8Array;
|
1464
|
+
messageBuffer: Uint8Array;
|
1465
|
+
};
|
1466
|
+
|
1450
1467
|
/**
|
1451
1468
|
* @public
|
1452
1469
|
*/
|
@@ -1505,6 +1522,15 @@ declare type Transform = {
|
|
1505
1522
|
|
1506
1523
|
declare const Transform: EcsType<Transform>;
|
1507
1524
|
|
1525
|
+
declare type Transport = {
|
1526
|
+
type: string;
|
1527
|
+
send(message: Uint8Array): void;
|
1528
|
+
onmessage?(message: Uint8Array): void;
|
1529
|
+
filter(message: TransportMessage): boolean;
|
1530
|
+
};
|
1531
|
+
|
1532
|
+
declare type TransportMessage = Omit<ReceiveMessage, 'data'>;
|
1533
|
+
|
1508
1534
|
/**
|
1509
1535
|
* @public
|
1510
1536
|
*/
|