@wonderlandengine/editor-api 1.2.3-dev.1 → 1.2.4

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/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # Wonderland Editor JavaScript Plugin API
1
+ # Wonderland Editor JavaScript/TypeScript Plugin API
2
2
 
3
- (Experimental!) API to extend the Wonderland Editor with JavaScript or TypeScript.
3
+ API to extend the Wonderland Editor with JavaScript or TypeScript.
4
4
 
5
- **Note:** This package requires the upcoming 1.2.0 version of Wonderland Engine.
5
+ **Note:** This package requires version 1.2.4 of Wonderland Engine.
6
6
 
7
7
  Learn more about Wonderland Engine in the [documentation](https://wonderlandengine.com/editor/plugins/).
8
8
 
package/dist/data.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export declare let data: EditorData;
1
2
  /** Object reference */
2
3
  export type ObjectReference = string | null;
3
4
  /** Mesh reference */
@@ -20,21 +21,38 @@ export type SkinReference = string | null;
20
21
  export type ImageReference = string | null;
21
22
  /** Animation reference */
22
23
  export type AnimationReference = string | null;
24
+ /** Project type */
25
+ export declare enum ProjectType {
26
+ Website = "website",
27
+ Game = "game"
28
+ }
29
+ export declare function toValue(value: any): any;
30
+ export declare class Access {
31
+ exists?: (key: string) => boolean;
32
+ keys(): string[];
33
+ values(): any[];
34
+ entries(): [string, any][];
35
+ toValue(): Object;
36
+ toJSON(): Object;
37
+ [Symbol.iterator](): IterableIterator<[string, any]>;
38
+ }
23
39
  /** Project settings */
24
- export declare class ProjectSettings {
40
+ export declare class ProjectSettings extends Access {
25
41
  name: string;
42
+ description: string;
43
+ type: ProjectType;
26
44
  customIndexHtml: boolean;
27
45
  extraFilesFolder: string;
28
46
  packageForStreaming: boolean;
29
47
  version: number[];
30
48
  }
31
49
  /** Sky settings */
32
- export declare class SkySettings {
50
+ export declare class SkySettings extends Access {
33
51
  enabled: boolean;
34
52
  material: MaterialReference;
35
53
  }
36
54
  /** Bloom settings */
37
- export declare class BloomSettings {
55
+ export declare class BloomSettings extends Access {
38
56
  enabled: boolean;
39
57
  passes: number;
40
58
  threshold: number;
@@ -57,12 +75,12 @@ export declare enum TonemappingMode {
57
75
  Exponential = "exponential"
58
76
  }
59
77
  /** HDR settings */
60
- export declare class HdrSettings {
78
+ export declare class HdrSettings extends Access {
61
79
  exposure: number;
62
80
  tonemapping: TonemappingMode;
63
81
  }
64
82
  /** Texture streaming settings */
65
- export declare class TextureStreamingSettings {
83
+ export declare class TextureStreamingSettings extends Access {
66
84
  maxCacheSize: number;
67
85
  maxUploadPerFrame: number;
68
86
  }
@@ -73,7 +91,7 @@ export declare enum EnvironmentMode {
73
91
  SphericalHarmonic2 = "spherical-harmonic-2"
74
92
  }
75
93
  /** Environment settings */
76
- export declare class EnvironmentSettings {
94
+ export declare class EnvironmentSettings extends Access {
77
95
  enabled: boolean;
78
96
  image: ImageReference;
79
97
  mode: EnvironmentMode;
@@ -83,7 +101,7 @@ export declare class EnvironmentSettings {
83
101
  maxSpecularEnvironmentSize: number;
84
102
  }
85
103
  /** Rendering settings */
86
- export declare class RenderingSettings {
104
+ export declare class RenderingSettings extends Access {
87
105
  api: 'webgl2' | 'webgpu-or-webgl2';
88
106
  textureAtlasSize: number[];
89
107
  compressedTextureAtlasSize: number[];
@@ -100,12 +118,12 @@ export declare class RenderingSettings {
100
118
  maxTextures: number;
101
119
  }
102
120
  /** Camera settings */
103
- export declare class CameraSettings {
121
+ export declare class CameraSettings extends Access {
104
122
  near: number;
105
123
  far: number;
106
124
  }
107
125
  /** Editor settings */
108
- export declare class EditorSettings {
126
+ export declare class EditorSettings extends Access {
109
127
  serverPort: number;
110
128
  serverCOEP: string;
111
129
  camera: CameraSettings;
@@ -116,30 +134,29 @@ export declare class EditorSettings {
116
134
  };
117
135
  }
118
136
  /** Plugins settings */
119
- export declare class PluginsSettings {
137
+ export declare class PluginsSettings extends Access {
120
138
  }
121
139
  /** WebXR feature flags */
122
140
  export interface WebXRFeatureFlags {
123
- local: boolean;
141
+ 'local': boolean;
124
142
  'local-floor': boolean;
125
143
  'bounded-floor': boolean;
126
- unbounded: boolean;
144
+ 'unbounded': boolean;
127
145
  'hand-tracking': boolean;
128
146
  'hit-test': boolean;
129
147
  'plane-detection': boolean;
130
148
  'light-estimation': boolean;
131
- anchors: boolean;
132
- occlusion: boolean;
149
+ 'anchors': boolean;
150
+ 'occlusion': boolean;
133
151
  'marker-tracking': boolean;
134
- extraFeatures: string;
135
152
  }
136
153
  /** WebXR settings */
137
- export declare class WebXRSettings {
154
+ export declare class WebXRSettings extends Access {
138
155
  optionalFeatures: WebXRFeatureFlags;
139
156
  requiredFeatures: WebXRFeatureFlags;
140
157
  }
141
158
  /** PWA settings */
142
- export declare class PWASettings {
159
+ export declare class PWASettings extends Access {
143
160
  enable: boolean;
144
161
  customServiceWorker: boolean;
145
162
  customManifest: boolean;
@@ -148,7 +165,7 @@ export declare class PWASettings {
148
165
  appIcon: ImageReference;
149
166
  }
150
167
  /** Runtime settings */
151
- export declare class RuntimeSettings {
168
+ export declare class RuntimeSettings extends Access {
152
169
  visualizeColliders: boolean;
153
170
  visualizePhysX: boolean;
154
171
  visualizeOverdraw: boolean;
@@ -167,7 +184,7 @@ export declare enum BundlingType {
167
184
  Npm = "npm"
168
185
  }
169
186
  /** Scripting settings */
170
- export declare class ScriptingSettings {
187
+ export declare class ScriptingSettings extends Access {
171
188
  sourcePaths: never[];
172
189
  libraryPaths: never[];
173
190
  bundlingType: BundlingType;
@@ -177,14 +194,14 @@ export declare class ScriptingSettings {
177
194
  entryPoint: string;
178
195
  }
179
196
  /** VR settings */
180
- export declare class VRSettings {
197
+ export declare class VRSettings extends Access {
181
198
  enable: boolean;
182
199
  rightEyeObject: ObjectReference;
183
200
  leftEyeObject: ObjectReference;
184
201
  framebufferScaleFactor: number;
185
202
  }
186
203
  /** Physics settings */
187
- export declare class PhysXSettings {
204
+ export declare class PhysXSettings extends Access {
188
205
  enable: boolean;
189
206
  maxTimestep: number;
190
207
  contactOffset: number;
@@ -204,18 +221,18 @@ export declare class PhysXSettings {
204
221
  speedToleranceScale: number;
205
222
  }
206
223
  /** AR settings */
207
- export declare class ARSettings {
224
+ export declare class ARSettings extends Access {
208
225
  enable: boolean;
209
226
  }
210
227
  /** Localization settings */
211
- export declare class LocalizationSettings {
228
+ export declare class LocalizationSettings extends Access {
212
229
  enableZipCompression: boolean;
213
230
  format: 'i18next';
214
231
  languagesFolder: string;
215
232
  defaultLanguage: string;
216
233
  }
217
234
  /** Settings for the currently open project */
218
- export declare class Settings {
235
+ export declare class Settings extends Access {
219
236
  project: ProjectSettings;
220
237
  rendering: RenderingSettings;
221
238
  editor: EditorSettings;
@@ -233,8 +250,16 @@ export declare enum ImageCompressionType {
233
250
  ETC1s = "etc1s",
234
251
  UASTC = "uastc"
235
252
  }
253
+ export declare class Link extends Access {
254
+ name: string;
255
+ file: string;
256
+ }
257
+ export declare class Resource extends Access {
258
+ name: string;
259
+ link: Link | null;
260
+ }
236
261
  /** Image resource */
237
- export declare class ImageResource {
262
+ export declare class ImageResource extends Resource {
238
263
  name: string;
239
264
  maxSize: number[];
240
265
  compression: ImageCompressionType;
@@ -244,7 +269,7 @@ export declare class ImageResource {
244
269
  hdr: boolean;
245
270
  }
246
271
  /** Texture resource */
247
- export declare class TextureResource {
272
+ export declare class TextureResource extends Resource {
248
273
  name: string;
249
274
  image: ImageReference;
250
275
  type: number;
@@ -264,14 +289,14 @@ export declare enum ShaderType {
264
289
  Fullscreen = "fullscreen"
265
290
  }
266
291
  /** Shader resource */
267
- export declare class ShaderResource {
292
+ export declare class ShaderResource extends Resource {
268
293
  name: string;
269
294
  stage: ShaderStage;
270
295
  type: ShaderType;
271
296
  packageUnused: boolean;
272
297
  }
273
298
  /** Mesh resource */
274
- export declare class MeshResource {
299
+ export declare class MeshResource extends Resource {
275
300
  name: string;
276
301
  simplify: boolean;
277
302
  simplifyTarget: number;
@@ -280,7 +305,7 @@ export declare class MeshResource {
280
305
  hasMorphTargets: boolean;
281
306
  }
282
307
  /** Material properties for the default Phong pipeline */
283
- export declare class PhongMaterial {
308
+ export declare class PhongMaterial extends Access {
284
309
  ambientColor: number[];
285
310
  diffuseTexture: TextureReference;
286
311
  diffuseColor: number[];
@@ -296,7 +321,7 @@ export declare class PhongMaterial {
296
321
  alphaMaskTexture: TextureReference;
297
322
  }
298
323
  /** Material properties for the default Phong pipeline */
299
- export declare class PhysicalMaterial {
324
+ export declare class PhysicalMaterial extends Access {
300
325
  albedoColor: number[];
301
326
  emissiveTexture: TextureReference;
302
327
  emissiveColor: number[];
@@ -313,19 +338,19 @@ export declare class PhysicalMaterial {
313
338
  alphaMaskTexture: TextureReference;
314
339
  }
315
340
  /** Material properties for the default MeshVisualizer pipeline */
316
- export declare class MeshVisualizerMaterial {
341
+ export declare class MeshVisualizerMaterial extends Access {
317
342
  color: number[];
318
343
  wireframeColor: number[];
319
344
  }
320
345
  /** Material properties for the default Flat pipeline */
321
- export declare class FlatMaterial {
346
+ export declare class FlatMaterial extends Access {
322
347
  color: number[];
323
348
  flatTexture: TextureReference;
324
349
  alphaMaskThreshold: number;
325
350
  alphaMaskTexture: TextureReference;
326
351
  }
327
352
  /** Material properties for the default Particle pipeline */
328
- export declare class ParticleMaterial {
353
+ export declare class ParticleMaterial extends Access {
329
354
  color: number[];
330
355
  mainTexture: TextureReference;
331
356
  noiseTexture: TextureReference;
@@ -333,7 +358,7 @@ export declare class ParticleMaterial {
333
358
  offsetY: number;
334
359
  }
335
360
  /** Material properties for the default DistanceFieldVector pipeline */
336
- export declare class DistanceFieldVectorMaterial {
361
+ export declare class DistanceFieldVectorMaterial extends Access {
337
362
  color: number[];
338
363
  outlineColor: number[];
339
364
  outlineRange: number[];
@@ -341,13 +366,13 @@ export declare class DistanceFieldVectorMaterial {
341
366
  smoothness: number;
342
367
  }
343
368
  /** Material properties for the default Text pipeline */
344
- export declare class TextMaterial {
369
+ export declare class TextMaterial extends Access {
345
370
  color: number[];
346
371
  effectColor: number[];
347
372
  font: FontReference;
348
373
  }
349
374
  /** Material properties for the default Sky pipeline */
350
- export declare class SkyMaterial {
375
+ export declare class SkyMaterial extends Access {
351
376
  colorStop0: number[];
352
377
  colorStop1: number[];
353
378
  colorStop2: number[];
@@ -355,7 +380,7 @@ export declare class SkyMaterial {
355
380
  texture: TextureReference;
356
381
  }
357
382
  /** Material properties for the default Background pipeline */
358
- export declare class BackgroundMaterial {
383
+ export declare class BackgroundMaterial extends Access {
359
384
  colorStop0: number[];
360
385
  colorStop1: number[];
361
386
  colorStop2: number[];
@@ -363,7 +388,7 @@ export declare class BackgroundMaterial {
363
388
  texture: TextureReference;
364
389
  }
365
390
  /** Material properties for the default Particle pipeline */
366
- export declare class MaterialResource {
391
+ export declare class MaterialResource extends Resource {
367
392
  pipeline: PipelineReference;
368
393
  name: string;
369
394
  Phong?: PhongMaterial;
@@ -387,8 +412,8 @@ export declare enum RootMotionMode {
387
412
  ApplyToOwner = "applyToOwner",
388
413
  ScriptEvent = "scriptEvent"
389
414
  }
390
- /** 'animation' component configuration */
391
- export declare class AnimationComponent {
415
+ /** 'animation' component */
416
+ export declare class AnimationComponent extends Access {
392
417
  preview: boolean;
393
418
  retarget: boolean;
394
419
  autoplay: boolean;
@@ -413,8 +438,8 @@ export declare enum LightType {
413
438
  /** Sun light type */
414
439
  Sun = "sun"
415
440
  }
416
- /** 'light' component configuration */
417
- export declare class LightComponent {
441
+ /** 'light' component */
442
+ export declare class LightComponent extends Access {
418
443
  type: LightType;
419
444
  color: number[];
420
445
  intensity: number;
@@ -434,34 +459,34 @@ export declare enum ProjectionType {
434
459
  /** Orthographic projection */
435
460
  Orthographic = "orthographic"
436
461
  }
437
- /** 'view' component configuration */
438
- export declare class ViewComponent {
462
+ /** 'view' component */
463
+ export declare class ViewComponent extends Access {
439
464
  projectionType: ProjectionType;
440
465
  fov: number;
441
466
  extent: number;
442
467
  near: number;
443
468
  far: number;
444
469
  }
445
- /** Settings for a sphere physics shape */
446
- export declare class PhysXSphereConfig {
470
+ /** Sphere physics shape */
471
+ export declare class PhysXSphere extends Access {
447
472
  radius: number;
448
473
  }
449
- /** Settings for a box physics shape */
450
- export declare class PhysXBoxConfig {
474
+ /** Box physics shape */
475
+ export declare class PhysXBox extends Access {
451
476
  extents: number[];
452
477
  }
453
- /** Settings for a capsule physics shape */
454
- export declare class PhysXCapsuleConfig {
478
+ /** Capsule physics shape */
479
+ export declare class PhysXCapsule extends Access {
455
480
  radius: number;
456
481
  halfHeight: number;
457
482
  }
458
- /** Settings for a triangle mesh physics shape */
459
- export declare class PhysXTriangleMeshConfig {
483
+ /** Triangle mesh physics shape */
484
+ export declare class PhysXTriangleMesh extends Access {
460
485
  mesh: MeshReference;
461
486
  scaling: number[];
462
487
  }
463
- /** Settings for a convex mesh physics shape */
464
- export declare class PhysXConvexMeshConfig {
488
+ /** Convex mesh physics shape */
489
+ export declare class PhysXConvexMesh extends Access {
465
490
  mesh: MeshReference;
466
491
  scaling: number[];
467
492
  }
@@ -473,8 +498,8 @@ export declare enum PhysXShapeType {
473
498
  TriangleMesh = "triangleMesh",
474
499
  ConvexMesh = "convexMesh"
475
500
  }
476
- /** 'physx' component configuration */
477
- export declare class PhysXComponent {
501
+ /** 'physx' component */
502
+ export declare class PhysXComponent extends Access {
478
503
  static: boolean;
479
504
  kinematic: boolean;
480
505
  simulate: boolean;
@@ -482,11 +507,11 @@ export declare class PhysXComponent {
482
507
  allowSimulation: boolean;
483
508
  mass: number;
484
509
  shape: PhysXShapeType;
485
- sphere?: PhysXSphereConfig;
486
- box?: PhysXBoxConfig;
487
- capsule?: PhysXCapsuleConfig;
488
- triangleMesh?: PhysXTriangleMeshConfig;
489
- convexMesh?: PhysXConvexMeshConfig;
510
+ sphere?: PhysXSphere;
511
+ box?: PhysXBox;
512
+ capsule?: PhysXCapsule;
513
+ triangleMesh?: PhysXTriangleMesh;
514
+ convexMesh?: PhysXConvexMesh;
490
515
  linearDamping: number;
491
516
  angularDamping: number;
492
517
  staticFriction: number;
@@ -503,8 +528,8 @@ export declare class PhysXComponent {
503
528
  solverPositionIterations: number;
504
529
  solverVelocityIterations: number;
505
530
  }
506
- /** 'mesh' component configuration */
507
- export declare class MeshComponent {
531
+ /** 'mesh' component */
532
+ export declare class MeshComponent extends Access {
508
533
  material: MaterialReference;
509
534
  mesh: MeshReference;
510
535
  skin: SkinReference;
@@ -523,8 +548,8 @@ export declare enum TextWrapMode {
523
548
  Hard = "hard",
524
549
  Clip = "clip"
525
550
  }
526
- /** 'text' component configuration */
527
- export declare class TextComponent {
551
+ /** 'text' component */
552
+ export declare class TextComponent extends Access {
528
553
  alignment: string;
529
554
  verticalAlignment: string;
530
555
  characterSpacing: number;
@@ -535,24 +560,24 @@ export declare class TextComponent {
535
560
  wrapMode: TextWrapMode;
536
561
  wrapWidth: number;
537
562
  }
538
- /** Settings for a sphere collider */
539
- export declare class SphereConfig {
563
+ /** Sphere collider */
564
+ export declare class Sphere extends Access {
540
565
  radius: number;
541
566
  }
542
- /** Settings for a AxisAlignedBoundingBox collider */
543
- export declare class AABBConfig {
567
+ /** AxisAlignedBoundingBox collider */
568
+ export declare class AABB extends Access {
544
569
  extents: number[];
545
570
  }
546
- /** Settings for a box collider */
547
- export declare class BoxConfig {
571
+ /** Box collider */
572
+ export declare class Box extends Access {
548
573
  extents: number[];
549
574
  }
550
- /** 'collision' component configuration */
551
- export declare class CollisionComponent {
575
+ /** 'collision' component */
576
+ export declare class CollisionComponent extends Access {
552
577
  collider: 'sphere' | 'aabb' | 'box';
553
- sphere?: SphereConfig;
554
- aabb?: AABBConfig;
555
- box?: BoxConfig;
578
+ sphere?: Sphere;
579
+ aabb?: AABB;
580
+ box?: Box;
556
581
  groups: number;
557
582
  }
558
583
  /** Input type enum */
@@ -565,21 +590,21 @@ export declare enum InputType {
565
590
  RayLeft = "ray left",
566
591
  RayRight = "ray right"
567
592
  }
568
- /** 'input' component configuration */
569
- export declare class InputComponent {
593
+ /** 'input' component */
594
+ export declare class InputComponent extends Access {
570
595
  type: InputType;
571
596
  }
572
- export declare class AnimationEvent {
597
+ export declare class AnimationEvent extends Access {
573
598
  time: number;
574
599
  name: string;
575
600
  }
576
- export declare class RootMotion {
601
+ export declare class RootMotion extends Access {
577
602
  target: ObjectReference;
578
603
  translationAxis: number;
579
604
  rotationAxis: number;
580
605
  }
581
606
  /** Animation resource */
582
- export declare class AnimationResource {
607
+ export declare class AnimationResource extends Resource {
583
608
  /** Name of the animation */
584
609
  name: string;
585
610
  /** Whether to compress the animation */
@@ -590,31 +615,31 @@ export declare class AnimationResource {
590
615
  events: AnimationEvent[];
591
616
  rootMotion?: RootMotion;
592
617
  }
593
- /** Component configuration */
594
- export declare class ComponentConfig {
618
+ /** Component */
619
+ export declare class ObjectComponent extends Access {
595
620
  /** Component type */
596
621
  type: string | null;
597
622
  /** Whether the component is active */
598
623
  active: boolean;
599
- /** Configuration for animation components */
624
+ /** Animation component */
600
625
  animation?: AnimationComponent;
601
- /** Configuration for collision components */
626
+ /** Collision component */
602
627
  collision?: CollisionComponent;
603
- /** Configuration for input components */
628
+ /** Input component */
604
629
  input?: InputComponent;
605
- /** Configuration for light components */
630
+ /** Light component */
606
631
  light?: LightComponent;
607
- /** Configuration for mesh components */
632
+ /** Mesh component */
608
633
  mesh?: MeshComponent;
609
- /** Configuration for physx components */
634
+ /** Physx component */
610
635
  physx?: PhysXComponent;
611
- /** Configuration for text components */
636
+ /** Text component */
612
637
  text?: TextComponent;
613
- /** Configuration for view components */
638
+ /** View component */
614
639
  view?: ViewComponent;
615
640
  }
616
641
  /** Object resource */
617
- export declare class ObjectResource {
642
+ export declare class ObjectResource extends Resource {
618
643
  /** Name of the object */
619
644
  name: string;
620
645
  /** Translation vector */
@@ -628,10 +653,10 @@ export declare class ObjectResource {
628
653
  /** Skin this object is part of, or `null`, if not a joint. */
629
654
  skin: SkinReference;
630
655
  /** List of components on this object */
631
- components: ComponentConfig[];
656
+ components: ObjectComponent[];
632
657
  }
633
658
  /** Skin resource */
634
- export declare class SkinResource {
659
+ export declare class SkinResource extends Resource {
635
660
  /** Name of the skin */
636
661
  name: string;
637
662
  /** List of objects that make up the joints of this skin */
@@ -678,7 +703,7 @@ export declare enum MeshSorting {
678
703
  MeshIndex = "mesh-index"
679
704
  }
680
705
  /** Pipeline resource */
681
- export declare class PipelineResource {
706
+ export declare class PipelineResource extends Resource {
682
707
  name: string;
683
708
  doubleSided: boolean;
684
709
  castShadows: boolean;
@@ -701,7 +726,7 @@ export declare class PipelineResource {
701
726
  depthFunction: DepthFunction;
702
727
  }
703
728
  /** Font resource */
704
- export declare class FontResource {
729
+ export declare class FontResource extends Resource {
705
730
  /** Name of the font */
706
731
  name: string;
707
732
  /** Which characters need to be renderable with this font */
@@ -712,18 +737,21 @@ export declare class FontResource {
712
737
  outlineSize: number;
713
738
  }
714
739
  /** Language resource */
715
- export declare class LanguageResource {
740
+ export declare class LanguageResource extends Resource {
716
741
  /** Name of the language */
717
742
  name: string;
718
743
  /** Whether this is the default language */
719
744
  isDefault: boolean;
720
745
  }
721
746
  /** File resource */
722
- export declare class FileResource {
747
+ export declare class FileResource extends Resource {
723
748
  fileName: string;
724
749
  importerName: string;
725
750
  importPhysicalAsPhongMaterials: boolean;
726
751
  }
752
+ export declare class ResourceSection<T> {
753
+ [key: string]: T;
754
+ }
727
755
  /**
728
756
  * Access to Wonderland Editor's data.
729
757
  *
@@ -741,32 +769,31 @@ export declare class FileResource {
741
769
  * WL.data.objects[123].components[0].text.text
742
770
  * ```
743
771
  */
744
- export declare class EditorData {
772
+ export interface EditorData {
745
773
  /** Project settings */
746
774
  settings: Settings;
747
775
  /** List of scene file paths */
748
- files: FileResource[];
776
+ files: ResourceSection<FileResource>;
749
777
  /** Animation resources */
750
- animations: AnimationResource[];
778
+ animations: ResourceSection<AnimationResource>;
751
779
  /** Object resources */
752
- objects: ObjectResource[];
780
+ objects: ResourceSection<ObjectResource>;
753
781
  /** Skin resources */
754
- skins: SkinResource[];
782
+ skins: ResourceSection<SkinResource>;
755
783
  /** Image resources */
756
- images: ImageResource[];
784
+ images: ResourceSection<ImageResource>;
757
785
  /** Shader resources */
758
- shaders: ShaderResource[];
786
+ shaders: ResourceSection<ShaderResource>;
759
787
  /** Mesh resources */
760
- meshes: MeshResource[];
788
+ meshes: ResourceSection<MeshResource>;
761
789
  /** Texture resources */
762
- textures: TextureResource[];
790
+ textures: ResourceSection<TextureResource>;
763
791
  /** Material resources */
764
- materials: MaterialResource[];
792
+ materials: ResourceSection<MaterialResource>;
765
793
  /** Font resources */
766
- fonts: FontResource[];
794
+ fonts: ResourceSection<FontResource>;
767
795
  /** Pipeline resources */
768
- pipelines: PipelineResource[];
796
+ pipelines: ResourceSection<PipelineResource>;
769
797
  /** Language resources */
770
- languages: LanguageResource[];
798
+ languages: ResourceSection<LanguageResource>;
771
799
  }
772
- export declare let data: EditorData;