@galacean/engine-loader 1.5.8 → 1.5.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/engine-loader",
3
- "version": "1.5.8",
3
+ "version": "1.5.10",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -18,9 +18,9 @@
18
18
  "types/**/*"
19
19
  ],
20
20
  "dependencies": {
21
- "@galacean/engine-math": "1.5.8",
22
- "@galacean/engine-rhi-webgl": "1.5.8",
23
- "@galacean/engine-core": "1.5.8"
21
+ "@galacean/engine-core": "1.5.10",
22
+ "@galacean/engine-math": "1.5.10",
23
+ "@galacean/engine-rhi-webgl": "1.5.10"
24
24
  },
25
25
  "scripts": {
26
26
  "b:types": "tsc"
@@ -11,6 +11,7 @@ export { Texture2DDecoder } from "./resources/texture2D/TextureDecoder";
11
11
  * @returns
12
12
  */
13
13
  export declare function decode<T>(arrayBuffer: ArrayBuffer, engine: Engine, ...args: any[]): AssetPromise<T>;
14
+ export * from "./resources/parser/HierarchyParser";
14
15
  export * from "./resources/parser/ParserContext";
15
16
  export * from "./resources/scene/EditorTextureLoader";
16
17
  export * from "./resources/scene/SceneParser";
@@ -1,8 +1,8 @@
1
1
  import { Engine, Scene } from "@galacean/engine-core";
2
+ import { PrefabResource } from "../../../prefab/PrefabResource";
2
3
  import type { IHierarchyFile } from "../schema";
3
- import { ReflectionParser } from "./ReflectionParser";
4
4
  import { ParserContext } from "./ParserContext";
5
- import { PrefabResource } from "../../../prefab/PrefabResource";
5
+ import { ReflectionParser } from "./ReflectionParser";
6
6
  /** @Internal */
7
7
  export declare abstract class HierarchyParser<T extends Scene | PrefabResource, V extends ParserContext<IHierarchyFile, T>> {
8
8
  readonly data: IHierarchyFile;
@@ -37,4 +37,7 @@ export declare abstract class HierarchyParser<T extends Scene | PrefabResource,
37
37
  private _addComponents;
38
38
  private _applyEntityData;
39
39
  private _generateInstanceContext;
40
+ private _parseComponentsPropsAndMethods;
41
+ private _addComponentPlugin;
42
+ private _addEntityPlugin;
40
43
  }
@@ -1,5 +1,5 @@
1
1
  import { Component, Engine, EngineObject, Entity, ReferResource, ResourceManager, Scene } from "@galacean/engine-core";
2
- import type { IComponentRef, IEntity, IHierarchyFile } from "../schema";
2
+ import type { IEntity, IHierarchyFile } from "../schema";
3
3
  export declare enum ParserType {
4
4
  Prefab = 0,
5
5
  Scene = 1
@@ -14,12 +14,10 @@ export declare class ParserContext<T extends IHierarchyFile, I extends EngineObj
14
14
  entityMap: Map<string, Entity>;
15
15
  entityConfigMap: Map<string, IEntity>;
16
16
  components: Map<string, Component>;
17
+ componentConfigMap: Map<string, any>;
17
18
  rootIds: string[];
18
19
  strippedIds: string[];
19
- componentWaitingMap: Map<string, Function[]>;
20
20
  readonly resourceManager: ResourceManager;
21
21
  constructor(engine: Engine, type: ParserType, resource: ReferResource | Scene);
22
- addComponent(id: string, component: Component): void;
23
- getComponentByRef(ref: IComponentRef): Promise<Component>;
24
22
  clear(): void;
25
23
  }