@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.
@@ -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'];
@@ -1178,7 +1110,7 @@ export declare type DeepReadonlyObject<T> = {
1178
1110
  */
1179
1111
  export declare type DeepReadonlySet<T> = ReadonlySet<DeepReadonly<T>>;
1180
1112
 
1181
- export declare function defineComponent<T extends ISchema, ConstructorType = ComponentType<T>>(componentId: number, spec: T, constructorDefault?: ConstructorType): ComponentDefinition<T, ConstructorType>;
1113
+ export declare function defineComponent<T>(componentId: number, spec: ISchema<T>): ComponentDefinition<T>;
1182
1114
 
1183
1115
  /**
1184
1116
  * Constant used to convert from Euler degrees to radians
@@ -1190,11 +1122,6 @@ export declare type EcsElements = {
1190
1122
  entity: Partial<Omit<EntityComponents, 'onClick'> & CommonProps>;
1191
1123
  };
1192
1124
 
1193
- /**
1194
- * @public
1195
- */
1196
- export declare type EcsResult<T extends ISchema> = T extends ISchema ? ReturnType<T['deserialize']> : never;
1197
-
1198
1125
  /**
1199
1126
  * @public
1200
1127
  */
@@ -1263,7 +1190,9 @@ export declare const executeTask: (task: Task<unknown>) => void;
1263
1190
  export declare type FloatArray = number[];
1264
1191
 
1265
1192
  export declare const enum Font {
1266
- F_SANS_SERIF = 0
1193
+ F_SANS_SERIF = 0,
1194
+ F_SERIF = 1,
1195
+ F_MONOSPACE = 2
1267
1196
  }
1268
1197
 
1269
1198
  export declare type GizmoDragEndEvent = {
@@ -1287,14 +1216,7 @@ export declare type GlobalInputEventResult = InputEventResult & {
1287
1216
  };
1288
1217
 
1289
1218
  /** @public */
1290
- export declare const GltfContainer: ComponentDefinition<typeof GltfContainerSchema>;
1291
-
1292
- /**
1293
- *
1294
- */
1295
- export declare const GltfContainerSchema: ISchema<PBGltfContainer> & {
1296
- COMPONENT_ID: number;
1297
- };
1219
+ export declare const GltfContainer: ComponentDefinition<PBGltfContainer>;
1298
1220
 
1299
1221
  /**
1300
1222
  * @public
@@ -1356,7 +1278,7 @@ export declare type IEngine = {
1356
1278
  * @param component - The component definition
1357
1279
  * @param componentId - unique id to identify the component, if the component id already exist, it will fail.
1358
1280
  */
1359
- registerCustomComponent<T extends ISchema, V>(component: ComponentDefinition<T, V>, componentId: number): ComponentDefinition<T, V>;
1281
+ registerCustomComponent<T>(component: ComponentDefinition<T>, componentId: number): ComponentDefinition<T>;
1360
1282
  /**
1361
1283
  * Define a component and add it to the engine.
1362
1284
  * @param spec - An object with schema fields
@@ -1373,7 +1295,7 @@ export declare type IEngine = {
1373
1295
  *
1374
1296
  * ```
1375
1297
  */
1376
- defineComponent<T extends Spec, ConstructorType = Partial<Result<T>>>(spec: T, componentId: number, constructorDefault?: ConstructorType): ComponentDefinition<ISchema<Result<T>>, Partial<Result<T>>>;
1298
+ defineComponent<T extends Spec>(spec: T, componentId: number, constructorDefault?: Partial<MapResult<T>>): MapComponentDefinition<MapResult<T>>;
1377
1299
  /**
1378
1300
  * Define a component and add it to the engine.
1379
1301
  * @param spec - An object with schema fields
@@ -1385,7 +1307,7 @@ export declare type IEngine = {
1385
1307
  * const StateComponent = engine.defineComponent(Schemas.Bool, VisibleComponentId)
1386
1308
  * ```
1387
1309
  */
1388
- defineComponentFromSchema<T extends ISchema<ConstructorType>, ConstructorType>(spec: T, componentId: number, constructorDefault?: ConstructorType): ComponentDefinition<T, ConstructorType>;
1310
+ defineComponentFromSchema<T>(spec: ISchema<T>, componentId: number): ComponentDefinition<T>;
1389
1311
  /**
1390
1312
  * Get the component definition from the component id.
1391
1313
  * @param componentId - component number used to identify the component descriptor
@@ -1395,7 +1317,7 @@ export declare type IEngine = {
1395
1317
  * const StateComponent = engine.getComponent(StateComponentId)
1396
1318
  * ```
1397
1319
  */
1398
- getComponent<T extends ISchema>(componentId: number): ComponentDefinition<T>;
1320
+ getComponent<T>(componentId: number): ComponentDefinition<T>;
1399
1321
  /**
1400
1322
  * Get the component definition from the component id.
1401
1323
  * @param componentId - component number used to identify the component descriptor
@@ -1405,7 +1327,7 @@ export declare type IEngine = {
1405
1327
  * const StateComponent = engine.getComponent(StateComponentId)
1406
1328
  * ```
1407
1329
  */
1408
- getComponentOrNull<T extends ISchema>(componentId: number): ComponentDefinition<T> | null;
1330
+ getComponentOrNull<T>(componentId: number): ComponentDefinition<T> | null;
1409
1331
  /**
1410
1332
  * Get a iterator of entities that has all the component requested.
1411
1333
  * @param components - a list of component definitions
@@ -1618,7 +1540,7 @@ export declare type IInputSystem = {
1618
1540
  /**
1619
1541
  * @public
1620
1542
  */
1621
- export declare function IMap<T extends Spec>(spec: T): ISchema<Result<T>>;
1543
+ export declare function IMap<T extends Spec>(spec: T, defaultValue?: Partial<MapResult<T>>): ISchema<MapResult<T>>;
1622
1544
 
1623
1545
  /** Include property keys from T where the property is assignable to U */
1624
1546
  export declare type IncludeUndefined<T> = {
@@ -1670,6 +1592,7 @@ export declare type ISchema<T = any> = {
1670
1592
  serialize(value: T, builder: ByteBuffer): void;
1671
1593
  deserialize(reader: ByteBuffer): T;
1672
1594
  create(): T;
1595
+ extend?: (base?: T) => T;
1673
1596
  };
1674
1597
 
1675
1598
  export declare const isListener: (key: string) => key is "onClick";
@@ -1688,12 +1611,36 @@ export declare type Listeners = {
1688
1611
  onClick?: EventSystemCallback;
1689
1612
  };
1690
1613
 
1614
+ export declare interface MapComponentDefinition<T> extends ComponentDefinition<T> {
1615
+ /**
1616
+ * Add the current component to an entity, throw an error if the component already exists (use `createOrReplace` instead).
1617
+ * - Internal comment: This method adds the &lt;entity,component&gt; to the list to be reviewed next frame
1618
+ * @param entity - Entity that will be used to create the component
1619
+ * @param val - The initial value
1620
+ */
1621
+ create(entity: Entity, val?: Partial<T>): T;
1622
+ /**
1623
+ * Add the current component to an entity or replace the content if the entity already has the component
1624
+ * - Internal comment: This method adds the &lt;entity,component&gt; to the list to be reviewed next frame
1625
+ * @param entity - Entity that will be used to create or replace the component
1626
+ * @param val - The initial or new value
1627
+ */
1628
+ createOrReplace(entity: Entity, val?: Partial<T>): T;
1629
+ }
1630
+
1631
+ /**
1632
+ * @public
1633
+ */
1634
+ export declare type MapResult<T extends Spec> = ToOptional<{
1635
+ [K in keyof T]: T[K] extends ISchema ? ReturnType<T[K]['deserialize']> : T[K] extends Spec ? MapResult<T[K]> : never;
1636
+ }>;
1637
+
1691
1638
  export declare const Material: MaterialComponentDefinitionExtended;
1692
1639
 
1693
1640
  /**
1694
1641
  * @public
1695
1642
  */
1696
- export declare type MaterialComponentDefinition = ComponentDefinition<ISchema<PBMaterial>, PBMaterial>;
1643
+ export declare type MaterialComponentDefinition = ComponentDefinition<PBMaterial>;
1697
1644
 
1698
1645
  /**
1699
1646
  * @public
@@ -1717,13 +1664,6 @@ export declare interface MaterialComponentDefinitionExtended extends MaterialCom
1717
1664
  setPbrMaterial: (entity: Entity, material: PBMaterial_PbrMaterial) => void;
1718
1665
  }
1719
1666
 
1720
- /**
1721
- *
1722
- */
1723
- export declare const MaterialSchema: ISchema<PBMaterial> & {
1724
- COMPONENT_ID: number;
1725
- };
1726
-
1727
1667
  export declare const enum MaterialTransparencyMode {
1728
1668
  MTM_OPAQUE = 0,
1729
1669
  MTM_ALPHA_TEST = 1,
@@ -2468,7 +2408,7 @@ export declare const MeshCollider: MeshColliderComponentDefinitionExtended;
2468
2408
  /**
2469
2409
  * @public
2470
2410
  */
2471
- export declare type MeshColliderComponentDefinition = ComponentDefinition<ISchema<PBMeshCollider>, PBMeshCollider>;
2411
+ export declare type MeshColliderComponentDefinition = ComponentDefinition<PBMeshCollider>;
2472
2412
 
2473
2413
  /**
2474
2414
  * @public
@@ -2506,19 +2446,12 @@ export declare interface MeshColliderComponentDefinitionExtended extends MeshCol
2506
2446
  setSphere(entity: Entity, colliderLayers?: ColliderLayer | ColliderLayer[]): void;
2507
2447
  }
2508
2448
 
2509
- /**
2510
- *
2511
- */
2512
- export declare const MeshColliderSchema: ISchema<PBMeshCollider> & {
2513
- COMPONENT_ID: number;
2514
- };
2515
-
2516
2449
  export declare const MeshRenderer: MeshRendererComponentDefinitionExtended;
2517
2450
 
2518
2451
  /**
2519
2452
  * @public
2520
2453
  */
2521
- export declare type MeshRendererComponentDefinition = ComponentDefinition<ISchema<PBMeshRenderer>, PBMeshRenderer>;
2454
+ export declare type MeshRendererComponentDefinition = ComponentDefinition<PBMeshRenderer>;
2522
2455
 
2523
2456
  /**
2524
2457
  * @public
@@ -2554,13 +2487,6 @@ export declare interface MeshRendererComponentDefinitionExtended extends MeshRen
2554
2487
  setSphere(entity: Entity): void;
2555
2488
  }
2556
2489
 
2557
- /**
2558
- *
2559
- */
2560
- export declare const MeshRendererSchema: ISchema<PBMeshRenderer> & {
2561
- COMPONENT_ID: number;
2562
- };
2563
-
2564
2490
  export declare class MessageBus {
2565
2491
  private messageQueue;
2566
2492
  private flushing;
@@ -2597,14 +2523,7 @@ export declare const enum NftFrameType {
2597
2523
  }
2598
2524
 
2599
2525
  /** @public */
2600
- export declare const NftShape: ComponentDefinition<typeof NftShapeSchema>;
2601
-
2602
- /**
2603
- *
2604
- */
2605
- export declare const NftShapeSchema: ISchema<PBNftShape> & {
2606
- COMPONENT_ID: number;
2607
- };
2526
+ export declare const NftShape: ComponentDefinition<PBNftShape>;
2608
2527
 
2609
2528
  export declare class Observable<T> {
2610
2529
  private _observers;
@@ -3325,8 +3244,11 @@ export declare interface PBTextShape {
3325
3244
  paddingRight?: number | undefined;
3326
3245
  paddingBottom?: number | undefined;
3327
3246
  paddingLeft?: number | undefined;
3247
+ /** The amount of additional spacing to add between each lines of text. */
3328
3248
  lineSpacing?: number | undefined;
3249
+ /** Allows control over how many lines of text are displayed. */
3329
3250
  lineCount?: number | undefined;
3251
+ /** Enables text wrapping */
3330
3252
  textWrapping?: boolean | undefined;
3331
3253
  shadowBlur?: number | undefined;
3332
3254
  shadowOffsetX?: number | undefined;
@@ -3631,14 +3553,7 @@ export declare namespace Plane {
3631
3553
  }
3632
3554
 
3633
3555
  /** @public */
3634
- export declare const PointerEventsResult: ComponentDefinition<typeof PointerEventsResultSchema>;
3635
-
3636
- /**
3637
- *
3638
- */
3639
- export declare const PointerEventsResultSchema: ISchema<PBPointerEventsResult> & {
3640
- COMPONENT_ID: number;
3641
- };
3556
+ export declare const PointerEventsResult: ComponentDefinition<PBPointerEventsResult>;
3642
3557
 
3643
3558
  export declare type PointerEventsSystem = ReturnType<typeof createPointerEventSystem>;
3644
3559
 
@@ -3659,24 +3574,10 @@ export declare const enum PointerEventType {
3659
3574
  }
3660
3575
 
3661
3576
  /** @public */
3662
- export declare const PointerHoverFeedback: ComponentDefinition<typeof PointerHoverFeedbackSchema>;
3663
-
3664
- /**
3665
- *
3666
- */
3667
- export declare const PointerHoverFeedbackSchema: ISchema<PBPointerHoverFeedback> & {
3668
- COMPONENT_ID: number;
3669
- };
3577
+ export declare const PointerHoverFeedback: ComponentDefinition<PBPointerHoverFeedback>;
3670
3578
 
3671
3579
  /** @public */
3672
- export declare const PointerLock: ComponentDefinition<typeof PointerLockSchema>;
3673
-
3674
- /**
3675
- *
3676
- */
3677
- export declare const PointerLockSchema: ISchema<PBPointerLock> & {
3678
- COMPONENT_ID: number;
3679
- };
3580
+ export declare const PointerLock: ComponentDefinition<PBPointerLock>;
3680
3581
 
3681
3582
  /**
3682
3583
  * @public
@@ -3954,7 +3855,7 @@ export declare type QuaternionType = {
3954
3855
  export declare const RAD2DEG: number;
3955
3856
 
3956
3857
  /** @public */
3957
- export declare const Raycast: ComponentDefinition<typeof RaycastSchema>;
3858
+ export declare const Raycast: ComponentDefinition<PBRaycast>;
3958
3859
 
3959
3860
  /** Position will be relative to the scene */
3960
3861
  export declare interface RaycastHit {
@@ -3987,21 +3888,7 @@ export declare type RaycastResponsePayload<T> = {
3987
3888
  };
3988
3889
 
3989
3890
  /** @public */
3990
- export declare const RaycastResult: ComponentDefinition<typeof RaycastResultSchema>;
3991
-
3992
- /**
3993
- *
3994
- */
3995
- export declare const RaycastResultSchema: ISchema<PBRaycastResult> & {
3996
- COMPONENT_ID: number;
3997
- };
3998
-
3999
- /**
4000
- *
4001
- */
4002
- export declare const RaycastSchema: ISchema<PBRaycast> & {
4003
- COMPONENT_ID: number;
4004
- };
3891
+ export declare const RaycastResult: ComponentDefinition<PBRaycastResult>;
4005
3892
 
4006
3893
  export declare type ReactBasedUiSystem = {
4007
3894
  destroy(): void;
@@ -4024,8 +3911,8 @@ export declare const ReactEcsRenderer: ReactBasedUiSystem;
4024
3911
  /**
4025
3912
  * @public
4026
3913
  */
4027
- export declare type ReadonlyComponentSchema<T extends [ComponentDefinition<any, any>, ...ComponentDefinition<any, any>[]]> = {
4028
- [K in keyof T]: T[K] extends ComponentDefinition<any, any> ? ReturnType<T[K]['get']> : never;
3914
+ export declare type ReadonlyComponentSchema<T extends [ComponentDefinition<unknown>, ...ComponentDefinition<unknown>[]]> = {
3915
+ [K in keyof T]: T[K] extends ComponentDefinition<unknown> ? ReturnType<T[K]['get']> : never;
4029
3916
  };
4030
3917
 
4031
3918
  /**
@@ -4043,13 +3930,6 @@ export declare type ReceiveMessage = {
4043
3930
  messageBuffer: Uint8Array;
4044
3931
  };
4045
3932
 
4046
- /**
4047
- * @public
4048
- */
4049
- export declare type Result<T extends Spec> = ToOptional<{
4050
- [K in keyof T]: T[K] extends ISchema ? ReturnType<T[K]['deserialize']> : T[K] extends Spec ? Result<T[K]> : never;
4051
- }>;
4052
-
4053
3933
  export declare type RPCSendableMessage = {
4054
3934
  jsonrpc: '2.0';
4055
3935
  id: number;
@@ -4286,6 +4166,12 @@ export declare interface Spec {
4286
4166
  */
4287
4167
  export declare type SystemFn = (dt: number) => void;
4288
4168
 
4169
+ export declare type SystemItem = {
4170
+ fn: SystemFn;
4171
+ priority: number;
4172
+ name?: string;
4173
+ };
4174
+
4289
4175
  export declare type Task<T = unknown> = () => Promise<T>;
4290
4176
 
4291
4177
  export declare const enum TextAlignMode {
@@ -4301,14 +4187,7 @@ export declare const enum TextAlignMode {
4301
4187
  }
4302
4188
 
4303
4189
  /** @public */
4304
- export declare const TextShape: ComponentDefinition<typeof TextShapeSchema>;
4305
-
4306
- /**
4307
- *
4308
- */
4309
- export declare const TextShapeSchema: ISchema<PBTextShape> & {
4310
- COMPONENT_ID: number;
4311
- };
4190
+ export declare const TextShape: ComponentDefinition<PBTextShape>;
4312
4191
 
4313
4192
  export declare interface Texture {
4314
4193
  src: string;
@@ -4385,9 +4264,20 @@ export declare const ToLinearSpace = 2.2;
4385
4264
 
4386
4265
  export declare type ToOptional<T> = OnlyOptionalUndefinedTypes<T> & OnlyNonUndefinedTypes<T>;
4387
4266
 
4388
- export declare const Transform: TransformComponent;
4267
+ export declare const Transform: TransformComponentExtended;
4389
4268
 
4390
- export declare type TransformComponent = ComponentDefinition<ISchema<TransformType>, Partial<TransformType>>;
4269
+ /**
4270
+ * @public
4271
+ */
4272
+ export declare type TransformComponent = ComponentDefinition<TransformType>;
4273
+
4274
+ /**
4275
+ * @public
4276
+ */
4277
+ export declare interface TransformComponentExtended extends TransformComponent {
4278
+ create(entity: Entity, val?: TransformTypeWithOptionals): TransformType;
4279
+ createOrReplace(entity: Entity, val?: TransformTypeWithOptionals): TransformType;
4280
+ }
4391
4281
 
4392
4282
  /**
4393
4283
  * @public
@@ -4412,6 +4302,11 @@ export declare type TransformType = {
4412
4302
  parent?: Entity;
4413
4303
  };
4414
4304
 
4305
+ /**
4306
+ * @public
4307
+ */
4308
+ export declare type TransformTypeWithOptionals = Partial<TransformType>;
4309
+
4415
4310
  export declare type Transport = {
4416
4311
  send(message: Uint8Array): Promise<void>;
4417
4312
  onmessage?(message: Uint8Array): void;
@@ -4421,14 +4316,7 @@ export declare type Transport = {
4421
4316
  export declare type TransportMessage = Omit<ReceiveMessage, 'data'>;
4422
4317
 
4423
4318
  /** @public */
4424
- export declare const UiBackground: ComponentDefinition<typeof UiBackgroundSchema>;
4425
-
4426
- /**
4427
- *
4428
- */
4429
- export declare const UiBackgroundSchema: ISchema<PBUiBackground> & {
4430
- COMPONENT_ID: number;
4431
- };
4319
+ export declare const UiBackground: ComponentDefinition<PBUiBackground>;
4432
4320
 
4433
4321
  export declare type UiComponent = () => JSX.Element;
4434
4322
 
@@ -4438,17 +4326,10 @@ export declare type UiComponent = () => JSX.Element;
4438
4326
  export declare function UiEntity(props: EntityPropTypes & Partial<CommonProps>): ReactEcs.JSX.Element;
4439
4327
 
4440
4328
  /** @public */
4441
- export declare const UiText: ComponentDefinition<typeof UiTextSchema>;
4442
-
4443
- /**
4444
- *
4445
- */
4446
- export declare const UiTextSchema: ISchema<PBUiText> & {
4447
- COMPONENT_ID: number;
4448
- };
4329
+ export declare const UiText: ComponentDefinition<PBUiText>;
4449
4330
 
4450
4331
  /** @public */
4451
- export declare const UiTransform: ComponentDefinition<typeof UiTransformSchema>;
4332
+ export declare const UiTransform: ComponentDefinition<PBUiTransform>;
4452
4333
 
4453
4334
  /**
4454
4335
  * @public
@@ -4478,13 +4359,6 @@ export declare interface UiTransformProps {
4478
4359
  overflow?: YGOverflow;
4479
4360
  }
4480
4361
 
4481
- /**
4482
- *
4483
- */
4484
- export declare const UiTransformSchema: ISchema<PBUiTransform> & {
4485
- COMPONENT_ID: number;
4486
- };
4487
-
4488
4362
  /**
4489
4363
  * @public
4490
4364
  */
@@ -5094,14 +4968,7 @@ export declare type Vector3Type = {
5094
4968
  };
5095
4969
 
5096
4970
  /** @public */
5097
- export declare const VisibilityComponent: ComponentDefinition<typeof VisibilityComponentSchema>;
5098
-
5099
- /**
5100
- *
5101
- */
5102
- export declare const VisibilityComponentSchema: ISchema<PBVisibilityComponent> & {
5103
- COMPONENT_ID: number;
5104
- };
4971
+ export declare const VisibilityComponent: ComponentDefinition<PBVisibilityComponent>;
5105
4972
 
5106
4973
  export declare namespace WireMessage {
5107
4974
  export type Uint32 = number;
@@ -5126,7 +4993,7 @@ export declare namespace WireMessage {
5126
4993
  */
5127
4994
  export function validate(buf: ByteBuffer): boolean;
5128
4995
  export function readHeader(buf: ByteBuffer): Header | null;
5129
- export function getType(component: ComponentDefinition<ISchema<unknown>, unknown>, entity: Entity): Enum;
4996
+ export function getType(component: ComponentDefinition<unknown>, entity: Entity): Enum;
5130
4997
  }
5131
4998
 
5132
4999
  export declare const enum YGAlign {