@galacean/engine-loader 1.3.0-beta.5 → 1.3.0-beta.8
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/main.js +10 -8
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +10 -8
- package/dist/module.js +11 -9
- package/dist/module.js.map +1 -1
- package/package.json +4 -4
- package/types/resource-deserialize/resources/prefab/PrefabParser.d.ts +14 -0
- package/types/resource-deserialize/resources/prefab/PrefabParserContext.d.ts +5 -0
- package/types/resource-deserialize/resources/scene/SceneParserContext.d.ts +9 -0
- package/types/resource-deserialize/resources/schema/SceneSchema.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/engine-loader",
|
|
3
|
-
"version": "1.3.0-beta.
|
|
3
|
+
"version": "1.3.0-beta.8",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
"types/**/*"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@galacean/engine-core": "1.3.0-beta.
|
|
19
|
-
"@galacean/engine-math": "1.3.0-beta.
|
|
20
|
-
"@galacean/engine-rhi-webgl": "1.3.0-beta.
|
|
18
|
+
"@galacean/engine-core": "1.3.0-beta.8",
|
|
19
|
+
"@galacean/engine-math": "1.3.0-beta.8",
|
|
20
|
+
"@galacean/engine-rhi-webgl": "1.3.0-beta.8"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"b:types": "tsc"
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Entity, Engine } from "@galacean/engine-core";
|
|
2
|
+
import type { IPrefabFile } from "../schema";
|
|
3
|
+
import { PrefabParserContext } from "./PrefabParserContext";
|
|
4
|
+
import HierarchyParser from "../parser/HierarchyParser";
|
|
5
|
+
export declare class PrefabParser extends HierarchyParser<Entity, PrefabParserContext> {
|
|
6
|
+
/**
|
|
7
|
+
* Parse prefab data.
|
|
8
|
+
* @param engine - the engine of the parser context
|
|
9
|
+
* @param prefabData - prefab data which is exported by editor
|
|
10
|
+
* @returns a promise of prefab
|
|
11
|
+
*/
|
|
12
|
+
static parse(engine: Engine, prefabData: IPrefabFile): PrefabParser;
|
|
13
|
+
protected handleRootEntity(id: string): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Scene } from "@galacean/engine-core";
|
|
2
|
+
import { IScene } from "../schema";
|
|
3
|
+
import { ParserContext } from "../parser/ParserContext";
|
|
4
|
+
export declare class SceneParserContext extends ParserContext<IScene, Scene> {
|
|
5
|
+
readonly originalData: IScene;
|
|
6
|
+
readonly engine: any;
|
|
7
|
+
readonly scene: Scene;
|
|
8
|
+
constructor(originalData: IScene, engine: any, scene: Scene);
|
|
9
|
+
}
|