@galacean/engine-loader 1.6.10 → 1.6.12
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.6.
|
|
3
|
+
"version": "1.6.12",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"libs/**/*"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@galacean/engine-core": "1.6.
|
|
23
|
-
"@galacean/engine-math": "1.6.
|
|
24
|
-
"@galacean/engine-rhi-webgl": "1.6.
|
|
22
|
+
"@galacean/engine-core": "1.6.12",
|
|
23
|
+
"@galacean/engine-math": "1.6.12",
|
|
24
|
+
"@galacean/engine-rhi-webgl": "1.6.12"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"b:types": "tsc"
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Engine, Entity } from "@galacean/engine-core";
|
|
2
|
+
import { IEntity, IHierarchyFile, ParserContext } from "../resource-deserialize";
|
|
2
3
|
import { HierarchyParser } from "../resource-deserialize/resources/parser/HierarchyParser";
|
|
3
4
|
import { PrefabResource } from "./PrefabResource";
|
|
4
|
-
import { IHierarchyFile, ParserContext } from "../resource-deserialize";
|
|
5
5
|
export declare class PrefabParser extends HierarchyParser<PrefabResource, ParserContext<IHierarchyFile, Entity>> {
|
|
6
6
|
readonly prefabResource: PrefabResource;
|
|
7
7
|
static parse(engine: Engine, url: string, data: IHierarchyFile): Promise<PrefabResource>;
|
|
8
8
|
constructor(data: IHierarchyFile, context: ParserContext<IHierarchyFile, Entity>, prefabResource: PrefabResource);
|
|
9
|
+
protected _applyEntityData(entity: Entity, entityConfig?: IEntity): Entity;
|
|
9
10
|
protected _handleRootEntity(id: string): void;
|
|
10
11
|
protected _clearAndResolve(): PrefabResource;
|
|
11
12
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Engine, Scene } from "@galacean/engine-core";
|
|
1
|
+
import { Engine, Entity, Scene } from "@galacean/engine-core";
|
|
2
2
|
import { PrefabResource } from "../../../prefab/PrefabResource";
|
|
3
|
-
import type { IHierarchyFile } from "../schema";
|
|
3
|
+
import type { IEntity, IHierarchyFile } from "../schema";
|
|
4
4
|
import { ParserContext } from "./ParserContext";
|
|
5
5
|
import { ReflectionParser } from "./ReflectionParser";
|
|
6
6
|
/** @Internal */
|
|
@@ -20,6 +20,7 @@ export declare abstract class HierarchyParser<T extends Scene | PrefabResource,
|
|
|
20
20
|
constructor(data: IHierarchyFile, context: V);
|
|
21
21
|
/** start parse the scene or prefab or others */
|
|
22
22
|
start(): void;
|
|
23
|
+
protected _applyEntityData(entity: Entity, entityConfig?: IEntity): Entity;
|
|
23
24
|
protected abstract _handleRootEntity(id: string): void;
|
|
24
25
|
protected abstract _clearAndResolve(): Scene | PrefabResource;
|
|
25
26
|
private _parseEntities;
|
|
@@ -35,7 +36,6 @@ export declare abstract class HierarchyParser<T extends Scene | PrefabResource,
|
|
|
35
36
|
private _parseStrippedEntity;
|
|
36
37
|
private _parseChildren;
|
|
37
38
|
private _addComponents;
|
|
38
|
-
private _applyEntityData;
|
|
39
39
|
private _generateInstanceContext;
|
|
40
40
|
private _parseComponentsPropsAndMethods;
|
|
41
41
|
private _addComponentPlugin;
|