@dcl/playground-assets 7.0.6-3713220614.commit-d02ef9f → 7.0.6-3767144242.commit-6bb12d2

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/alpha.d.ts CHANGED
@@ -5,7 +5,7 @@ export declare const Animator: AnimatorComponentDefinitionExtended;
5
5
  /**
6
6
  * @public
7
7
  */
8
- export declare type AnimatorComponentDefinition = ComponentDefinition<ISchema<PBAnimator>, PBAnimator>;
8
+ export declare type AnimatorComponentDefinition = ComponentDefinition<PBAnimator>;
9
9
 
10
10
  /**
11
11
  * @public
@@ -50,32 +50,11 @@ export declare interface AnimatorComponentDefinitionExtended extends AnimatorCom
50
50
  stopAllAnimations(entity: Entity, resetCursor?: boolean): boolean;
51
51
  }
52
52
 
53
- /**
54
- *
55
- */
56
- export declare const AnimatorSchema: ISchema<PBAnimator> & {
57
- COMPONENT_ID: number;
58
- };
59
-
60
53
  /** @public */
61
- export declare const AudioSource: ComponentDefinition<typeof AudioSourceSchema>;
62
-
63
- /**
64
- *
65
- */
66
- export declare const AudioSourceSchema: ISchema<PBAudioSource> & {
67
- COMPONENT_ID: number;
68
- };
54
+ export declare const AudioSource: ComponentDefinition<PBAudioSource>;
69
55
 
70
56
  /** @public */
71
- export declare const AudioStream: ComponentDefinition<typeof AudioStreamSchema>;
72
-
73
- /**
74
- *
75
- */
76
- export declare const AudioStreamSchema: ISchema<PBAudioStream> & {
77
- COMPONENT_ID: number;
78
- };
57
+ export declare const AudioStream: ComponentDefinition<PBAudioStream>;
79
58
 
80
59
  export declare const enum AvatarAnchorPointType {
81
60
  AAPT_POSITION = 0,
@@ -85,24 +64,10 @@ export declare const enum AvatarAnchorPointType {
85
64
  }
86
65
 
87
66
  /** @public */
88
- export declare const AvatarAttach: ComponentDefinition<typeof AvatarAttachSchema>;
89
-
90
- /**
91
- *
92
- */
93
- export declare const AvatarAttachSchema: ISchema<PBAvatarAttach> & {
94
- COMPONENT_ID: number;
95
- };
67
+ export declare const AvatarAttach: ComponentDefinition<PBAvatarAttach>;
96
68
 
97
69
  /** @public */
98
- export declare const AvatarModifierArea: ComponentDefinition<typeof AvatarModifierAreaSchema>;
99
-
100
- /**
101
- *
102
- */
103
- export declare const AvatarModifierAreaSchema: ISchema<PBAvatarModifierArea> & {
104
- COMPONENT_ID: number;
105
- };
70
+ export declare const AvatarModifierArea: ComponentDefinition<PBAvatarModifierArea>;
106
71
 
107
72
  export declare const enum AvatarModifierType {
108
73
  AMT_HIDE_AVATARS = 0,
@@ -110,14 +75,7 @@ export declare const enum AvatarModifierType {
110
75
  }
111
76
 
112
77
  /** @public */
113
- export declare const AvatarShape: ComponentDefinition<typeof AvatarShapeSchema>;
114
-
115
- /**
116
- *
117
- */
118
- export declare const AvatarShapeSchema: ISchema<PBAvatarShape> & {
119
- COMPONENT_ID: number;
120
- };
78
+ export declare const AvatarShape: ComponentDefinition<PBAvatarShape>;
121
79
 
122
80
  export declare interface AvatarTexture {
123
81
  userId: string;
@@ -136,20 +94,13 @@ export declare const AvatarTexture: {
136
94
  };
137
95
 
138
96
  /** @public */
139
- export declare const Billboard: ComponentDefinition<typeof BillboardSchema>;
97
+ export declare const Billboard: ComponentDefinition<PBBillboard>;
140
98
 
141
99
  export declare const enum BillboardMode {
142
100
  BM_ALL_AXES = 0,
143
101
  BM_Y_AXE = 1
144
102
  }
145
103
 
146
- /**
147
- *
148
- */
149
- export declare const BillboardSchema: ISchema<PBBillboard> & {
150
- COMPONENT_ID: number;
151
- };
152
-
153
104
  /**
154
105
  * @public
155
106
  */
@@ -258,24 +209,10 @@ export declare type ByteBuffer = {
258
209
  };
259
210
 
260
211
  /** @public */
261
- export declare const CameraMode: ComponentDefinition<typeof CameraModeSchema>;
212
+ export declare const CameraMode: ComponentDefinition<PBCameraMode>;
262
213
 
263
214
  /** @public */
264
- export declare const CameraModeArea: ComponentDefinition<typeof CameraModeAreaSchema>;
265
-
266
- /**
267
- *
268
- */
269
- export declare const CameraModeAreaSchema: ISchema<PBCameraModeArea> & {
270
- COMPONENT_ID: number;
271
- };
272
-
273
- /**
274
- *
275
- */
276
- export declare const CameraModeSchema: ISchema<PBCameraMode> & {
277
- COMPONENT_ID: number;
278
- };
215
+ export declare const CameraModeArea: ComponentDefinition<PBCameraModeArea>;
279
216
 
280
217
  export declare const enum CameraType {
281
218
  CT_FIRST_PERSON = 0,
@@ -1005,12 +942,12 @@ export declare type CommonProps = {
1005
942
  /**
1006
943
  * @public
1007
944
  */
1008
- export declare type ComponentDefinition<T extends ISchema<ConstructorType>, ConstructorType = any> = {
945
+ export declare type ComponentDefinition<T> = {
1009
946
  _id: number;
1010
947
  /**
1011
948
  * Return the default value of the current component
1012
949
  */
1013
- default(): DeepReadonly<ComponentType<T>>;
950
+ default(): DeepReadonly<T>;
1014
951
  /**
1015
952
  * Get if the entity has this component
1016
953
  * @param entity - entity to test
@@ -1021,45 +958,45 @@ export declare type ComponentDefinition<T extends ISchema<ConstructorType>, Cons
1021
958
  * @param entity - Entity that will be used to get the component
1022
959
  * @returns
1023
960
  */
1024
- get(entity: Entity): DeepReadonly<ComponentType<T>>;
961
+ get(entity: Entity): DeepReadonly<T>;
1025
962
  /**
1026
963
  * Get the readonly component of the entity (to mutate it, use getMutable instead), or null if the entity doesn't have the component.
1027
964
  * @param entity - Entity that will be used to try to get the component
1028
965
  */
1029
- getOrNull(entity: Entity): DeepReadonly<ComponentType<T>> | null;
966
+ getOrNull(entity: Entity): DeepReadonly<T> | null;
1030
967
  /**
1031
968
  * Add the current component to an entity, throw an error if the component already exists (use `createOrReplace` instead).
1032
969
  * - Internal comment: This method adds the &lt;entity,component&gt; to the list to be reviewed next frame
1033
970
  * @param entity - Entity that will be used to create the component
1034
971
  * @param val - The initial value
1035
972
  */
1036
- create(entity: Entity, val?: ConstructorType): ComponentType<T>;
973
+ create(entity: Entity, val?: T): T;
1037
974
  /**
1038
975
  * Add the current component to an entity or replace the content if the entity already has the component
1039
976
  * - Internal comment: This method adds the &lt;entity,component&gt; to the list to be reviewed next frame
1040
977
  * @param entity - Entity that will be used to create or replace the component
1041
978
  * @param val - The initial or new value
1042
979
  */
1043
- createOrReplace(entity: Entity, val?: ConstructorType): ComponentType<T>;
980
+ createOrReplace(entity: Entity, val?: T): T;
1044
981
  /**
1045
982
  * @public
1046
983
  * Delete the current component to an entity, return null if the entity doesn't have the current component.
1047
984
  * - Internal comment: This method adds the &lt;entity,component&gt; to the list to be reviewed next frame
1048
985
  * @param entity - Entity to delete the component from
1049
986
  */
1050
- deleteFrom(entity: Entity): ComponentType<T> | null;
987
+ deleteFrom(entity: Entity): T | null;
1051
988
  /**
1052
989
  * Get the mutable component of the entity, throw an error if the entity doesn't have the component.
1053
990
  * - Internal comment: This method adds the &lt;entity,component&gt; to the list to be reviewed next frame
1054
991
  * @param entity - Entity to get the component from
1055
992
  */
1056
- getMutable(entity: Entity): ComponentType<T>;
993
+ getMutable(entity: Entity): T;
1057
994
  /**
1058
995
  * Get the mutable component of the entity, return null if the entity doesn't have the component.
1059
996
  * - Internal comment: This method adds the &lt;entity,component&gt; to the list to be reviewed next frame
1060
997
  * @param entity - Entity to get the component from
1061
998
  */
1062
- getMutableOrNull(entity: Entity): ComponentType<T> | null;
999
+ getMutableOrNull(entity: Entity): T | null;
1063
1000
  writeToByteBuffer(entity: Entity, buffer: ByteBuffer): void;
1064
1001
  };
1065
1002
 
@@ -1072,11 +1009,6 @@ export declare type ComponentSchema<T extends [ComponentDefinition<any>, ...Comp
1072
1009
  [K in keyof T]: T[K] extends ComponentDefinition<any> ? ReturnType<T[K]['getMutable']> : never;
1073
1010
  };
1074
1011
 
1075
- /**
1076
- * @public
1077
- */
1078
- export declare type ComponentType<T extends ISchema> = EcsResult<T>;
1079
-
1080
1012
  export declare function Container({ width, height, children }: ContainerPropTypes): ReactEcs.JSX.Element;
1081
1013
 
1082
1014
  export declare type ContainerPropTypes = Partial<CommonProps> & EntityPropTypes['uiTransform'];
@@ -1166,7 +1098,7 @@ export declare type DeepReadonlyObject<T> = {
1166
1098
  */
1167
1099
  export declare type DeepReadonlySet<T> = ReadonlySet<DeepReadonly<T>>;
1168
1100
 
1169
- export declare function defineComponent<T extends ISchema, ConstructorType = ComponentType<T>>(componentId: number, spec: T, constructorDefault?: ConstructorType): ComponentDefinition<T, ConstructorType>;
1101
+ export declare function defineComponent<T>(componentId: number, spec: ISchema<T>): ComponentDefinition<T>;
1170
1102
 
1171
1103
  /**
1172
1104
  * Constant used to convert from Euler degrees to radians
@@ -1178,11 +1110,6 @@ export declare type EcsElements = {
1178
1110
  entity: Partial<Omit<EntityComponents, 'onClick'> & CommonProps>;
1179
1111
  };
1180
1112
 
1181
- /**
1182
- * @public
1183
- */
1184
- export declare type EcsResult<T extends ISchema> = T extends ISchema ? ReturnType<T['deserialize']> : never;
1185
-
1186
1113
  /**
1187
1114
  * @public
1188
1115
  */
@@ -1251,7 +1178,9 @@ export declare const executeTask: (task: Task<unknown>) => void;
1251
1178
  export declare type FloatArray = number[];
1252
1179
 
1253
1180
  export declare const enum Font {
1254
- F_SANS_SERIF = 0
1181
+ F_SANS_SERIF = 0,
1182
+ F_SERIF = 1,
1183
+ F_MONOSPACE = 2
1255
1184
  }
1256
1185
 
1257
1186
  export declare type GizmoDragEndEvent = {
@@ -1275,14 +1204,7 @@ export declare type GlobalInputEventResult = InputEventResult & {
1275
1204
  };
1276
1205
 
1277
1206
  /** @public */
1278
- export declare const GltfContainer: ComponentDefinition<typeof GltfContainerSchema>;
1279
-
1280
- /**
1281
- *
1282
- */
1283
- export declare const GltfContainerSchema: ISchema<PBGltfContainer> & {
1284
- COMPONENT_ID: number;
1285
- };
1207
+ export declare const GltfContainer: ComponentDefinition<PBGltfContainer>;
1286
1208
 
1287
1209
  /**
1288
1210
  * @public
@@ -1344,7 +1266,7 @@ export declare type IEngine = {
1344
1266
  * @param component - The component definition
1345
1267
  * @param componentId - unique id to identify the component, if the component id already exist, it will fail.
1346
1268
  */
1347
- registerCustomComponent<T extends ISchema, V>(component: ComponentDefinition<T, V>, componentId: number): ComponentDefinition<T, V>;
1269
+ registerCustomComponent<T>(component: ComponentDefinition<T>, componentId: number): ComponentDefinition<T>;
1348
1270
  /**
1349
1271
  * Define a component and add it to the engine.
1350
1272
  * @param spec - An object with schema fields
@@ -1361,7 +1283,7 @@ export declare type IEngine = {
1361
1283
  *
1362
1284
  * ```
1363
1285
  */
1364
- defineComponent<T extends Spec, ConstructorType = Partial<Result<T>>>(spec: T, componentId: number, constructorDefault?: ConstructorType): ComponentDefinition<ISchema<Result<T>>, Partial<Result<T>>>;
1286
+ defineComponent<T extends Spec>(spec: T, componentId: number, constructorDefault?: Partial<MapResult<T>>): MapComponentDefinition<MapResult<T>>;
1365
1287
  /**
1366
1288
  * Define a component and add it to the engine.
1367
1289
  * @param spec - An object with schema fields
@@ -1373,7 +1295,7 @@ export declare type IEngine = {
1373
1295
  * const StateComponent = engine.defineComponent(Schemas.Bool, VisibleComponentId)
1374
1296
  * ```
1375
1297
  */
1376
- defineComponentFromSchema<T extends ISchema<ConstructorType>, ConstructorType>(spec: T, componentId: number, constructorDefault?: ConstructorType): ComponentDefinition<T, ConstructorType>;
1298
+ defineComponentFromSchema<T>(spec: ISchema<T>, componentId: number): ComponentDefinition<T>;
1377
1299
  /**
1378
1300
  * Get the component definition from the component id.
1379
1301
  * @param componentId - component number used to identify the component descriptor
@@ -1383,7 +1305,7 @@ export declare type IEngine = {
1383
1305
  * const StateComponent = engine.getComponent(StateComponentId)
1384
1306
  * ```
1385
1307
  */
1386
- getComponent<T extends ISchema>(componentId: number): ComponentDefinition<T>;
1308
+ getComponent<T>(componentId: number): ComponentDefinition<T>;
1387
1309
  /**
1388
1310
  * Get the component definition from the component id.
1389
1311
  * @param componentId - component number used to identify the component descriptor
@@ -1393,7 +1315,7 @@ export declare type IEngine = {
1393
1315
  * const StateComponent = engine.getComponent(StateComponentId)
1394
1316
  * ```
1395
1317
  */
1396
- getComponentOrNull<T extends ISchema>(componentId: number): ComponentDefinition<T> | null;
1318
+ getComponentOrNull<T>(componentId: number): ComponentDefinition<T> | null;
1397
1319
  /**
1398
1320
  * Get a iterator of entities that has all the component requested.
1399
1321
  * @param components - a list of component definitions
@@ -1606,7 +1528,7 @@ export declare type IInputSystem = {
1606
1528
  /**
1607
1529
  * @public
1608
1530
  */
1609
- export declare function IMap<T extends Spec>(spec: T): ISchema<Result<T>>;
1531
+ export declare function IMap<T extends Spec>(spec: T, defaultValue?: Partial<MapResult<T>>): ISchema<MapResult<T>>;
1610
1532
 
1611
1533
  /** Include property keys from T where the property is assignable to U */
1612
1534
  export declare type IncludeUndefined<T> = {
@@ -1658,6 +1580,7 @@ export declare type ISchema<T = any> = {
1658
1580
  serialize(value: T, builder: ByteBuffer): void;
1659
1581
  deserialize(reader: ByteBuffer): T;
1660
1582
  create(): T;
1583
+ extend?: (base?: T) => T;
1661
1584
  };
1662
1585
 
1663
1586
  export declare const isListener: (key: string) => key is "onClick";
@@ -1676,12 +1599,36 @@ export declare type Listeners = {
1676
1599
  onClick?: EventSystemCallback;
1677
1600
  };
1678
1601
 
1602
+ export declare interface MapComponentDefinition<T> extends ComponentDefinition<T> {
1603
+ /**
1604
+ * Add the current component to an entity, throw an error if the component already exists (use `createOrReplace` instead).
1605
+ * - Internal comment: This method adds the &lt;entity,component&gt; to the list to be reviewed next frame
1606
+ * @param entity - Entity that will be used to create the component
1607
+ * @param val - The initial value
1608
+ */
1609
+ create(entity: Entity, val?: Partial<T>): T;
1610
+ /**
1611
+ * Add the current component to an entity or replace the content if the entity already has the component
1612
+ * - Internal comment: This method adds the &lt;entity,component&gt; to the list to be reviewed next frame
1613
+ * @param entity - Entity that will be used to create or replace the component
1614
+ * @param val - The initial or new value
1615
+ */
1616
+ createOrReplace(entity: Entity, val?: Partial<T>): T;
1617
+ }
1618
+
1619
+ /**
1620
+ * @public
1621
+ */
1622
+ export declare type MapResult<T extends Spec> = ToOptional<{
1623
+ [K in keyof T]: T[K] extends ISchema ? ReturnType<T[K]['deserialize']> : T[K] extends Spec ? MapResult<T[K]> : never;
1624
+ }>;
1625
+
1679
1626
  export declare const Material: MaterialComponentDefinitionExtended;
1680
1627
 
1681
1628
  /**
1682
1629
  * @public
1683
1630
  */
1684
- export declare type MaterialComponentDefinition = ComponentDefinition<ISchema<PBMaterial>, PBMaterial>;
1631
+ export declare type MaterialComponentDefinition = ComponentDefinition<PBMaterial>;
1685
1632
 
1686
1633
  /**
1687
1634
  * @public
@@ -1705,13 +1652,6 @@ export declare interface MaterialComponentDefinitionExtended extends MaterialCom
1705
1652
  setPbrMaterial: (entity: Entity, material: PBMaterial_PbrMaterial) => void;
1706
1653
  }
1707
1654
 
1708
- /**
1709
- *
1710
- */
1711
- export declare const MaterialSchema: ISchema<PBMaterial> & {
1712
- COMPONENT_ID: number;
1713
- };
1714
-
1715
1655
  export declare const enum MaterialTransparencyMode {
1716
1656
  MTM_OPAQUE = 0,
1717
1657
  MTM_ALPHA_TEST = 1,
@@ -2456,7 +2396,7 @@ export declare const MeshCollider: MeshColliderComponentDefinitionExtended;
2456
2396
  /**
2457
2397
  * @public
2458
2398
  */
2459
- export declare type MeshColliderComponentDefinition = ComponentDefinition<ISchema<PBMeshCollider>, PBMeshCollider>;
2399
+ export declare type MeshColliderComponentDefinition = ComponentDefinition<PBMeshCollider>;
2460
2400
 
2461
2401
  /**
2462
2402
  * @public
@@ -2494,19 +2434,12 @@ export declare interface MeshColliderComponentDefinitionExtended extends MeshCol
2494
2434
  setSphere(entity: Entity, colliderLayers?: ColliderLayer | ColliderLayer[]): void;
2495
2435
  }
2496
2436
 
2497
- /**
2498
- *
2499
- */
2500
- export declare const MeshColliderSchema: ISchema<PBMeshCollider> & {
2501
- COMPONENT_ID: number;
2502
- };
2503
-
2504
2437
  export declare const MeshRenderer: MeshRendererComponentDefinitionExtended;
2505
2438
 
2506
2439
  /**
2507
2440
  * @public
2508
2441
  */
2509
- export declare type MeshRendererComponentDefinition = ComponentDefinition<ISchema<PBMeshRenderer>, PBMeshRenderer>;
2442
+ export declare type MeshRendererComponentDefinition = ComponentDefinition<PBMeshRenderer>;
2510
2443
 
2511
2444
  /**
2512
2445
  * @public
@@ -2542,13 +2475,6 @@ export declare interface MeshRendererComponentDefinitionExtended extends MeshRen
2542
2475
  setSphere(entity: Entity): void;
2543
2476
  }
2544
2477
 
2545
- /**
2546
- *
2547
- */
2548
- export declare const MeshRendererSchema: ISchema<PBMeshRenderer> & {
2549
- COMPONENT_ID: number;
2550
- };
2551
-
2552
2478
  export declare class MessageBus {
2553
2479
  private messageQueue;
2554
2480
  private flushing;
@@ -2585,14 +2511,7 @@ export declare const enum NftFrameType {
2585
2511
  }
2586
2512
 
2587
2513
  /** @public */
2588
- export declare const NftShape: ComponentDefinition<typeof NftShapeSchema>;
2589
-
2590
- /**
2591
- *
2592
- */
2593
- export declare const NftShapeSchema: ISchema<PBNftShape> & {
2594
- COMPONENT_ID: number;
2595
- };
2514
+ export declare const NftShape: ComponentDefinition<PBNftShape>;
2596
2515
 
2597
2516
  export declare class Observable<T> {
2598
2517
  private _observers;
@@ -3313,8 +3232,11 @@ export declare interface PBTextShape {
3313
3232
  paddingRight?: number | undefined;
3314
3233
  paddingBottom?: number | undefined;
3315
3234
  paddingLeft?: number | undefined;
3235
+ /** The amount of additional spacing to add between each lines of text. */
3316
3236
  lineSpacing?: number | undefined;
3237
+ /** Allows control over how many lines of text are displayed. */
3317
3238
  lineCount?: number | undefined;
3239
+ /** Enables text wrapping */
3318
3240
  textWrapping?: boolean | undefined;
3319
3241
  shadowBlur?: number | undefined;
3320
3242
  shadowOffsetX?: number | undefined;
@@ -3619,14 +3541,7 @@ export declare namespace Plane {
3619
3541
  }
3620
3542
 
3621
3543
  /** @public */
3622
- export declare const PointerEventsResult: ComponentDefinition<typeof PointerEventsResultSchema>;
3623
-
3624
- /**
3625
- *
3626
- */
3627
- export declare const PointerEventsResultSchema: ISchema<PBPointerEventsResult> & {
3628
- COMPONENT_ID: number;
3629
- };
3544
+ export declare const PointerEventsResult: ComponentDefinition<PBPointerEventsResult>;
3630
3545
 
3631
3546
  export declare type PointerEventsSystem = ReturnType<typeof createPointerEventSystem>;
3632
3547
 
@@ -3647,24 +3562,10 @@ export declare const enum PointerEventType {
3647
3562
  }
3648
3563
 
3649
3564
  /** @public */
3650
- export declare const PointerHoverFeedback: ComponentDefinition<typeof PointerHoverFeedbackSchema>;
3651
-
3652
- /**
3653
- *
3654
- */
3655
- export declare const PointerHoverFeedbackSchema: ISchema<PBPointerHoverFeedback> & {
3656
- COMPONENT_ID: number;
3657
- };
3565
+ export declare const PointerHoverFeedback: ComponentDefinition<PBPointerHoverFeedback>;
3658
3566
 
3659
3567
  /** @public */
3660
- export declare const PointerLock: ComponentDefinition<typeof PointerLockSchema>;
3661
-
3662
- /**
3663
- *
3664
- */
3665
- export declare const PointerLockSchema: ISchema<PBPointerLock> & {
3666
- COMPONENT_ID: number;
3667
- };
3568
+ export declare const PointerLock: ComponentDefinition<PBPointerLock>;
3668
3569
 
3669
3570
  /**
3670
3571
  * @public
@@ -3942,7 +3843,7 @@ export declare type QuaternionType = {
3942
3843
  export declare const RAD2DEG: number;
3943
3844
 
3944
3845
  /** @public */
3945
- export declare const Raycast: ComponentDefinition<typeof RaycastSchema>;
3846
+ export declare const Raycast: ComponentDefinition<PBRaycast>;
3946
3847
 
3947
3848
  /** Position will be relative to the scene */
3948
3849
  export declare interface RaycastHit {
@@ -3975,21 +3876,7 @@ export declare type RaycastResponsePayload<T> = {
3975
3876
  };
3976
3877
 
3977
3878
  /** @public */
3978
- export declare const RaycastResult: ComponentDefinition<typeof RaycastResultSchema>;
3979
-
3980
- /**
3981
- *
3982
- */
3983
- export declare const RaycastResultSchema: ISchema<PBRaycastResult> & {
3984
- COMPONENT_ID: number;
3985
- };
3986
-
3987
- /**
3988
- *
3989
- */
3990
- export declare const RaycastSchema: ISchema<PBRaycast> & {
3991
- COMPONENT_ID: number;
3992
- };
3879
+ export declare const RaycastResult: ComponentDefinition<PBRaycastResult>;
3993
3880
 
3994
3881
  export declare type ReactBasedUiSystem = {
3995
3882
  destroy(): void;
@@ -4012,8 +3899,8 @@ export declare const ReactEcsRenderer: ReactBasedUiSystem;
4012
3899
  /**
4013
3900
  * @public
4014
3901
  */
4015
- export declare type ReadonlyComponentSchema<T extends [ComponentDefinition<any, any>, ...ComponentDefinition<any, any>[]]> = {
4016
- [K in keyof T]: T[K] extends ComponentDefinition<any, any> ? ReturnType<T[K]['get']> : never;
3902
+ export declare type ReadonlyComponentSchema<T extends [ComponentDefinition<unknown>, ...ComponentDefinition<unknown>[]]> = {
3903
+ [K in keyof T]: T[K] extends ComponentDefinition<unknown> ? ReturnType<T[K]['get']> : never;
4017
3904
  };
4018
3905
 
4019
3906
  /**
@@ -4031,13 +3918,6 @@ export declare type ReceiveMessage = {
4031
3918
  messageBuffer: Uint8Array;
4032
3919
  };
4033
3920
 
4034
- /**
4035
- * @public
4036
- */
4037
- export declare type Result<T extends Spec> = ToOptional<{
4038
- [K in keyof T]: T[K] extends ISchema ? ReturnType<T[K]['deserialize']> : T[K] extends Spec ? Result<T[K]> : never;
4039
- }>;
4040
-
4041
3921
  export declare type RPCSendableMessage = {
4042
3922
  jsonrpc: '2.0';
4043
3923
  id: number;
@@ -4274,6 +4154,12 @@ export declare interface Spec {
4274
4154
  */
4275
4155
  export declare type SystemFn = (dt: number) => void;
4276
4156
 
4157
+ export declare type SystemItem = {
4158
+ fn: SystemFn;
4159
+ priority: number;
4160
+ name?: string;
4161
+ };
4162
+
4277
4163
  export declare type Task<T = unknown> = () => Promise<T>;
4278
4164
 
4279
4165
  export declare const enum TextAlignMode {
@@ -4289,14 +4175,7 @@ export declare const enum TextAlignMode {
4289
4175
  }
4290
4176
 
4291
4177
  /** @public */
4292
- export declare const TextShape: ComponentDefinition<typeof TextShapeSchema>;
4293
-
4294
- /**
4295
- *
4296
- */
4297
- export declare const TextShapeSchema: ISchema<PBTextShape> & {
4298
- COMPONENT_ID: number;
4299
- };
4178
+ export declare const TextShape: ComponentDefinition<PBTextShape>;
4300
4179
 
4301
4180
  export declare interface Texture {
4302
4181
  src: string;
@@ -4373,9 +4252,20 @@ export declare const ToLinearSpace = 2.2;
4373
4252
 
4374
4253
  export declare type ToOptional<T> = OnlyOptionalUndefinedTypes<T> & OnlyNonUndefinedTypes<T>;
4375
4254
 
4376
- export declare const Transform: TransformComponent;
4255
+ export declare const Transform: TransformComponentExtended;
4377
4256
 
4378
- export declare type TransformComponent = ComponentDefinition<ISchema<TransformType>, Partial<TransformType>>;
4257
+ /**
4258
+ * @public
4259
+ */
4260
+ export declare type TransformComponent = ComponentDefinition<TransformType>;
4261
+
4262
+ /**
4263
+ * @public
4264
+ */
4265
+ export declare interface TransformComponentExtended extends TransformComponent {
4266
+ create(entity: Entity, val?: TransformTypeWithOptionals): TransformType;
4267
+ createOrReplace(entity: Entity, val?: TransformTypeWithOptionals): TransformType;
4268
+ }
4379
4269
 
4380
4270
  /**
4381
4271
  * @public
@@ -4400,6 +4290,11 @@ export declare type TransformType = {
4400
4290
  parent?: Entity;
4401
4291
  };
4402
4292
 
4293
+ /**
4294
+ * @public
4295
+ */
4296
+ export declare type TransformTypeWithOptionals = Partial<TransformType>;
4297
+
4403
4298
  export declare type Transport = {
4404
4299
  send(message: Uint8Array): Promise<void>;
4405
4300
  onmessage?(message: Uint8Array): void;
@@ -4409,14 +4304,7 @@ export declare type Transport = {
4409
4304
  export declare type TransportMessage = Omit<ReceiveMessage, 'data'>;
4410
4305
 
4411
4306
  /** @public */
4412
- export declare const UiBackground: ComponentDefinition<typeof UiBackgroundSchema>;
4413
-
4414
- /**
4415
- *
4416
- */
4417
- export declare const UiBackgroundSchema: ISchema<PBUiBackground> & {
4418
- COMPONENT_ID: number;
4419
- };
4307
+ export declare const UiBackground: ComponentDefinition<PBUiBackground>;
4420
4308
 
4421
4309
  export declare type UiComponent = () => JSX.Element;
4422
4310
 
@@ -4426,17 +4314,10 @@ export declare type UiComponent = () => JSX.Element;
4426
4314
  export declare function UiEntity(props: EntityPropTypes & Partial<CommonProps>): ReactEcs.JSX.Element;
4427
4315
 
4428
4316
  /** @public */
4429
- export declare const UiText: ComponentDefinition<typeof UiTextSchema>;
4430
-
4431
- /**
4432
- *
4433
- */
4434
- export declare const UiTextSchema: ISchema<PBUiText> & {
4435
- COMPONENT_ID: number;
4436
- };
4317
+ export declare const UiText: ComponentDefinition<PBUiText>;
4437
4318
 
4438
4319
  /** @public */
4439
- export declare const UiTransform: ComponentDefinition<typeof UiTransformSchema>;
4320
+ export declare const UiTransform: ComponentDefinition<PBUiTransform>;
4440
4321
 
4441
4322
  /**
4442
4323
  * @public
@@ -4466,13 +4347,6 @@ export declare interface UiTransformProps {
4466
4347
  overflow?: YGOverflow;
4467
4348
  }
4468
4349
 
4469
- /**
4470
- *
4471
- */
4472
- export declare const UiTransformSchema: ISchema<PBUiTransform> & {
4473
- COMPONENT_ID: number;
4474
- };
4475
-
4476
4350
  /**
4477
4351
  * @public
4478
4352
  */
@@ -5082,14 +4956,7 @@ export declare type Vector3Type = {
5082
4956
  };
5083
4957
 
5084
4958
  /** @public */
5085
- export declare const VisibilityComponent: ComponentDefinition<typeof VisibilityComponentSchema>;
5086
-
5087
- /**
5088
- *
5089
- */
5090
- export declare const VisibilityComponentSchema: ISchema<PBVisibilityComponent> & {
5091
- COMPONENT_ID: number;
5092
- };
4959
+ export declare const VisibilityComponent: ComponentDefinition<PBVisibilityComponent>;
5093
4960
 
5094
4961
  export declare namespace WireMessage {
5095
4962
  export type Uint32 = number;
@@ -5114,7 +4981,7 @@ export declare namespace WireMessage {
5114
4981
  */
5115
4982
  export function validate(buf: ByteBuffer): boolean;
5116
4983
  export function readHeader(buf: ByteBuffer): Header | null;
5117
- export function getType(component: ComponentDefinition<ISchema<unknown>, unknown>, entity: Entity): Enum;
4984
+ export function getType(component: ComponentDefinition<unknown>, entity: Entity): Enum;
5118
4985
  }
5119
4986
 
5120
4987
  export declare const enum YGAlign {