@galacean/engine-loader 0.0.0-experimental-ktx2.0 → 0.0.0-experimental-double11.2

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.
Files changed (37) hide show
  1. package/dist/main.js +3757 -4788
  2. package/dist/main.js.map +1 -1
  3. package/dist/miniprogram.js +3763 -4794
  4. package/dist/module.js +3760 -4791
  5. package/dist/module.js.map +1 -1
  6. package/package.json +5 -5
  7. package/types/gltf/GLTFSchema.d.ts +1 -7
  8. package/types/gltf/GLTFUtil.d.ts +1 -1
  9. package/types/gltf/GLTFUtils.d.ts +3 -4
  10. package/types/gltf/extensions/KHR_texture_basisu.d.ts +0 -1
  11. package/types/gltf/extensions/OASIS_animation.d.ts +1 -0
  12. package/types/gltf/extensions/OASIS_materials_remap.d.ts +1 -0
  13. package/types/gltf/parser/GLTFSceneParser.d.ts +0 -2
  14. package/types/gltf/parser/GLTFSchemaParser.d.ts +7 -0
  15. package/types/gltf/parser/GLTFTextureParser.d.ts +5 -8
  16. package/types/index.d.ts +3 -6
  17. package/types/resource-deserialize/resources/animationClip/type.d.ts +30 -0
  18. package/types/resource-deserialize/resources/animatorController/AnimatorControllerDecoder.d.ts +6 -0
  19. package/types/resource-deserialize/resources/animatorController/type.d.ts +0 -0
  20. package/types/resource-deserialize/resources/prefab/PrefabDesign.d.ts +4 -4
  21. package/types/resource-deserialize/resources/schema/ProjectSchema.d.ts +9 -0
  22. package/types/resource-deserialize/utils/BufferReader.d.ts +10 -6
  23. package/types/PrefabLoader.d.ts +0 -6
  24. package/types/gltf/extensions/MeshoptDecoder.d.ts +0 -12
  25. package/types/ktx2/BinomialLLCTranscoder/BinomialLLCTranscoder.d.ts +0 -13
  26. package/types/ktx2/BinomialLLCTranscoder/TranscodeWorkerCode.d.ts +0 -33
  27. package/types/ktx2/KTX2Parser.d.ts +0 -4
  28. package/types/ktx2/KhronosTranscoder/KhronosTranscoder.d.ts +0 -17
  29. package/types/ktx2/KhronosTranscoder/TranscoderWorkerCode.d.ts +0 -34
  30. package/types/ktx2/TargetFormat.d.ts +0 -8
  31. package/types/ktx2/TranscodeResult.d.ts +0 -10
  32. package/types/ktx2/constants.d.ts +0 -7
  33. package/types/ktx2/zstddec.d.ts +0 -62
  34. package/types/resource-deserialize/resources/parser/HierarchyParser.d.ts +0 -43
  35. package/types/resource-deserialize/resources/parser/ParserContext.d.ts +0 -26
  36. package/types/resource-deserialize/resources/parser/PrefabParserContext.d.ts +0 -5
  37. /package/types/{gltf/extensions/EXT_meshopt_compression.d.ts → ProjectLoader.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/engine-loader",
3
- "version": "0.0.0-experimental-ktx2.0",
3
+ "version": "0.0.0-experimental-double11.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -15,10 +15,10 @@
15
15
  "types/**/*"
16
16
  ],
17
17
  "dependencies": {
18
- "@galacean/engine-core": "0.0.0-experimental-ktx2.0",
19
- "@galacean/engine-math": "0.0.0-experimental-ktx2.0",
20
- "@galacean/engine-draco": "0.0.0-experimental-ktx2.0",
21
- "@galacean/engine-rhi-webgl": "0.0.0-experimental-ktx2.0"
18
+ "@galacean/engine-core": "0.0.0-experimental-double11.2",
19
+ "@galacean/engine-rhi-webgl": "0.0.0-experimental-double11.2",
20
+ "@galacean/engine-draco": "0.0.0-experimental-double11.2",
21
+ "@galacean/engine-math": "0.0.0-experimental-double11.2"
22
22
  },
23
23
  "scripts": {
24
24
  "b:types": "tsc"
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Module for glTF 2.0 Interface
3
3
  */
4
- import type { MeshTopology, TextureFilterMode, TextureWrapMode as EngineTextureWrapMode } from "@galacean/engine-core";
4
+ import { MeshTopology } from "@galacean/engine-core";
5
5
  /**
6
6
  * The datatype of the components in the attribute
7
7
  */
@@ -814,9 +814,3 @@ export interface IGLTF extends IProperty {
814
814
  }
815
815
  /** glTF extensible owner schema. */
816
816
  export type GLTFExtensionOwnerSchema = IMeshPrimitive | IMaterial | ITextureInfo | INode;
817
- export interface ISamplerInfo {
818
- filterMode?: TextureFilterMode;
819
- wrapModeU?: EngineTextureWrapMode;
820
- wrapModeV?: EngineTextureWrapMode;
821
- mipmap?: boolean;
822
- }
@@ -21,7 +21,7 @@ export declare class GLTFUtil {
21
21
  /**
22
22
  * Get the TypedArray corresponding to the component type.
23
23
  */
24
- static getComponentType(componentType: AccessorComponentType): Uint8ArrayConstructor | Float32ArrayConstructor | Uint16ArrayConstructor | Int8ArrayConstructor | Int16ArrayConstructor | Uint32ArrayConstructor;
24
+ static getComponentType(componentType: AccessorComponentType): Int8ArrayConstructor | Uint8ArrayConstructor | Int16ArrayConstructor | Uint16ArrayConstructor | Uint32ArrayConstructor | Float32ArrayConstructor;
25
25
  static getNormalizedComponentScale(componentType: AccessorComponentType): number;
26
26
  static getAccessorBuffer(context: ParserContext, gltf: IGLTF, accessor: IAccessor): BufferInfo;
27
27
  /**
@@ -1,6 +1,6 @@
1
- import { IndexFormat, Texture2D, TypedArray, VertexElementFormat } from "@galacean/engine-core";
1
+ import { IndexFormat, TypedArray, VertexElementFormat } from "@galacean/engine-core";
2
2
  import { Color, Vector2, Vector3, Vector4 } from "@galacean/engine-math";
3
- import { AccessorComponentType, AccessorType, IAccessor, IBufferView, IGLTF, ISampler, ISamplerInfo } from "./GLTFSchema";
3
+ import { AccessorComponentType, AccessorType, IAccessor, IBufferView, IGLTF } from "./GLTFSchema";
4
4
  import { BufferInfo, GLTFParserContext } from "./parser/GLTFParserContext";
5
5
  /**
6
6
  * @internal
@@ -44,6 +44,5 @@ export declare class GLTFUtils {
44
44
  glTF: IGLTF;
45
45
  buffers: ArrayBuffer[];
46
46
  };
47
- static parseSampler(texture: Texture2D, samplerInfo: ISamplerInfo): void;
48
- static getSamplerInfo(sampler: ISampler): ISamplerInfo;
47
+ private static _formatRelativePath;
49
48
  }
@@ -1 +0,0 @@
1
- export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -8,6 +8,4 @@ export declare class GLTFSceneParser extends GLTFParser {
8
8
  private _createCamera;
9
9
  private _createRenderer;
10
10
  private _createAnimator;
11
- private _computeLocalBounds;
12
- private _computeApproximateBindMatrix;
13
11
  }
@@ -0,0 +1,7 @@
1
+ import { IGLTF } from "../GLTFSchema";
2
+ import { GLTFParser } from "./GLTFParser";
3
+ import { GLTFParserContext } from "./GLTFParserContext";
4
+ export declare class GLTFSchemaParser extends GLTFParser {
5
+ parse(context: GLTFParserContext): Promise<IGLTF>;
6
+ private _isGLB;
7
+ }
@@ -1,12 +1,9 @@
1
- import { AssetPromise, Texture2D, TextureWrapMode } from "@galacean/engine-core";
1
+ import { AssetPromise, Texture2D } from "@galacean/engine-core";
2
+ import { GLTFParserContext } from ".";
2
3
  import { GLTFParser } from "./GLTFParser";
3
- import { GLTFParserContext } from "./GLTFParserContext";
4
4
  export declare class GLTFTextureParser extends GLTFParser {
5
- /** @internal */
6
- static _wrapMap: {
7
- 33071: TextureWrapMode;
8
- 33648: TextureWrapMode;
9
- 10497: TextureWrapMode;
10
- };
5
+ private static _wrapMap;
11
6
  parse(context: GLTFParserContext): AssetPromise<Texture2D[]> | void;
7
+ private _getSamplerInfo;
8
+ private _parseSampler;
12
9
  }
package/types/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import "./AnimationClipLoader";
2
1
  import "./AnimatorControllerLoader";
3
2
  import "./BufferLoader";
4
3
  import "./EnvLoader";
@@ -15,12 +14,10 @@ import "./SpriteAtlasLoader";
15
14
  import "./SpriteLoader";
16
15
  import "./Texture2DLoader";
17
16
  import "./TextureCubeLoader";
18
- import "./ktx2/KTX2Loader";
17
+ import "./AnimationClipLoader";
18
+ export { parseSingleKTX } from "./compressed-texture";
19
19
  export type { GLTFParams } from "./GLTFLoader";
20
+ export * from "./resource-deserialize";
20
21
  export * from "./SceneLoader";
21
22
  export type { Texture2DParams } from "./Texture2DLoader";
22
- export { parseSingleKTX } from "./compressed-texture";
23
23
  export * from "./gltf";
24
- export { KTX2Loader } from "./ktx2/KTX2Loader";
25
- export { KTX2TargetFormat } from "./ktx2/KTX2TargetFormat";
26
- export * from "./resource-deserialize";
@@ -0,0 +1,30 @@
1
+ import { AnimationProperty, InterpolableValueType } from "@oasis-engine/core";
2
+ export declare enum ComponentClass {
3
+ Transform = 0,
4
+ SkinnedMeshRenderer = 1,
5
+ Other = 2
6
+ }
7
+ export declare const PropertyNameMap: string[];
8
+ export interface IAnimationClipAsset {
9
+ objectId: string;
10
+ name: string;
11
+ events: Array<{
12
+ time: number;
13
+ functionName: string;
14
+ parameter: string;
15
+ }>;
16
+ curveBindings: Array<{
17
+ relativePath: string;
18
+ property: AnimationProperty;
19
+ curve: {
20
+ interpolation: number;
21
+ keys: Array<{
22
+ time: number;
23
+ value: any;
24
+ inTangent: any;
25
+ outTangent: any;
26
+ }>;
27
+ valueType: InterpolableValueType;
28
+ };
29
+ }>;
30
+ }
@@ -0,0 +1,6 @@
1
+ import { Engine, AnimatorController, AnimationClip } from "@oasis-engine/core";
2
+ import type { BufferReader } from "../../utils/BufferReader";
3
+ export declare class AnimatorControllerDecoder {
4
+ static decode(engine: Engine, bufferReader: BufferReader): Promise<AnimatorController>;
5
+ static loadAndSetClip(engine: Engine, path: string, objectId: string): Promise<AnimationClip>;
6
+ }
@@ -1,5 +1,5 @@
1
1
  import type { BackgroundMode } from "@galacean/engine-core";
2
- import { IReferable } from "@galacean/engine-core/types/asset/IReferable";
2
+ import { IRefObject } from "@galacean/engine-core/types/asset/IRefObject";
3
3
  import { IColor } from "../mesh/IModelMesh";
4
4
  export interface IPrefabFile {
5
5
  entities: Array<IEntity>;
@@ -9,11 +9,11 @@ export interface IScene extends IPrefabFile {
9
9
  background: {
10
10
  mode: BackgroundMode;
11
11
  color: IColor;
12
- texture?: IReferable;
13
- sky?: IReferable;
12
+ texture?: IRefObject;
13
+ sky?: IRefObject;
14
14
  };
15
15
  ambient: {
16
- ambientLight: IReferable;
16
+ ambientLight: IRefObject;
17
17
  diffuseSolidColor: IColor;
18
18
  diffuseIntensity: number;
19
19
  specularIntensity: number;
@@ -0,0 +1,9 @@
1
+ export interface IProject {
2
+ scene: string;
3
+ files: {
4
+ virtualPath: string;
5
+ path: string;
6
+ type: string;
7
+ id: string;
8
+ }[];
9
+ }
@@ -1,11 +1,15 @@
1
1
  export declare class BufferReader {
2
- data: Uint8Array;
2
+ buffer: ArrayBuffer;
3
3
  private _dataView;
4
4
  private _littleEndian;
5
5
  private _offset;
6
- private _baseOffset;
7
- constructor(data: Uint8Array, byteOffset?: number, byteLength?: number, littleEndian?: boolean);
8
- get position(): number;
6
+ static imageMapping: {
7
+ 0: string;
8
+ 1: string;
9
+ 2: string;
10
+ 3: string;
11
+ };
12
+ constructor(buffer: ArrayBuffer, byteOffset?: number, byteLength?: number, littleEndian?: boolean);
9
13
  get offset(): number;
10
14
  nextUint8(): number;
11
15
  nextUint16(): number;
@@ -21,8 +25,8 @@ export declare class BufferReader {
21
25
  /**
22
26
  * image data 放在最后
23
27
  */
24
- nextImageData(count?: number): Uint8Array;
25
- nextImagesData(count: number): Uint8Array[];
28
+ nextImageData(count?: number): ArrayBuffer;
29
+ nextImagesData(count: number): ArrayBuffer[];
26
30
  skip(bytes: number): this;
27
31
  scan(maxByteLength: number, term?: number): Uint8Array;
28
32
  }
@@ -1,6 +0,0 @@
1
- import { Entity } from "@galacean/engine-core";
2
- import { PrefabParserContext } from "./resource-deserialize/resources/parser/PrefabParserContext";
3
- export interface IPrefabContextData {
4
- context: PrefabParserContext;
5
- entity: Entity;
6
- }
@@ -1,12 +0,0 @@
1
- declare const MeshoptDecoder: {
2
- ready: Promise<void>;
3
- supported: boolean;
4
- useWorkers: (count: any) => void;
5
- decodeVertexBuffer: (target: any, count: any, size: any, source: any, filter: any) => void;
6
- decodeIndexBuffer: (target: any, count: any, size: any, source: any) => void;
7
- decodeIndexSequence: (target: any, count: any, size: any, source: any) => void;
8
- decodeGltfBuffer: (target: any, count: any, size: any, source: any, mode: any, filter: any) => void;
9
- decodeGltfBufferAsync: (count: number, stride: number, source: Uint8Array, mode: any, filter: any) => Promise<Uint8Array>;
10
- release(): void;
11
- };
12
- export { MeshoptDecoder };
@@ -1,13 +0,0 @@
1
- import { KTX2TargetFormat } from "../KTX2TargetFormat";
2
- import { TranscodeResult } from "../TranscodeResult";
3
- /** @internal */
4
- export declare class BinomialLLCTranscoder {
5
- readonly workerLimit: number;
6
- static MessageId: number;
7
- private _transcodeWorkerPool;
8
- private _initPromise;
9
- constructor(workerLimit: number);
10
- init(): Promise<any>;
11
- transcode(buffer: ArrayBuffer, format: KTX2TargetFormat): Promise<TranscodeResult>;
12
- destroy(): void;
13
- }
@@ -1,33 +0,0 @@
1
- type MessageType = "init" | "transcode";
2
- export interface IBaseMessage {
3
- type: MessageType;
4
- }
5
- export interface IInitMessage extends IBaseMessage {
6
- type: "init";
7
- transcoderWasm: ArrayBuffer;
8
- }
9
- export interface ITranscodeMessage extends IBaseMessage {
10
- type: "transcode";
11
- format: number;
12
- buffer: ArrayBuffer;
13
- }
14
- export type IMessage = IInitMessage | ITranscodeMessage;
15
- export type TranscodeResult = {
16
- width: number;
17
- height: number;
18
- hasAlpha: boolean;
19
- format: number;
20
- faces: Array<{
21
- data: Uint8Array;
22
- width: number;
23
- height: number;
24
- }>[];
25
- faceCount: number;
26
- };
27
- export type TranscodeResponse = {
28
- id: number;
29
- type: "transcoded";
30
- } & TranscodeResult;
31
- /** @internal */
32
- export declare function TranscodeWorkerCode(): void;
33
- export {};
@@ -1,4 +0,0 @@
1
- export declare enum ColorModel {
2
- ETC1S = 163,
3
- UASTC = 166
4
- }
@@ -1,17 +0,0 @@
1
- import { KTX2Container } from "../KTX2Container";
2
- import { KTX2TargetFormat } from "../KTX2TargetFormat";
3
- import { TranscodeResult } from "./TranscoderWorkerCode";
4
- /** @internal */
5
- export declare class KhronosTranscoder {
6
- readonly workerLimit: number;
7
- readonly type: KTX2TargetFormat;
8
- static transcoderMap: {
9
- 0: string;
10
- };
11
- private _transcodeWorkerPool;
12
- private _initPromise;
13
- constructor(workerLimit: number, type: KTX2TargetFormat);
14
- init(): Promise<any>;
15
- transcode(ktx2Container: KTX2Container): Promise<TranscodeResult>;
16
- destroy(): void;
17
- }
@@ -1,34 +0,0 @@
1
- export interface EncodedData {
2
- buffer: Uint8Array;
3
- levelWidth: number;
4
- levelHeight: number;
5
- uncompressedByteLength: number;
6
- }
7
- type MessageType = "init" | "transcode";
8
- export interface IBaseMessage {
9
- type: MessageType;
10
- }
11
- export interface IInitMessage extends IBaseMessage {
12
- type: "init";
13
- transcoderWasm: ArrayBuffer;
14
- }
15
- export interface ITranscodeMessage extends IBaseMessage {
16
- type: "transcode";
17
- format: number;
18
- needZstd: boolean;
19
- data: EncodedData[][];
20
- }
21
- export type IMessage = IInitMessage | ITranscodeMessage;
22
- export type TranscodeResult = {
23
- data: Array<{
24
- data: Uint8Array;
25
- width: number;
26
- height: number;
27
- }>;
28
- };
29
- export type TranscodeResponse = {
30
- id: number;
31
- type: "transcoded";
32
- } & TranscodeResult;
33
- export declare function TranscodeWorkerCode(): void;
34
- export {};
@@ -1,8 +0,0 @@
1
- export declare enum TargetFormat {
2
- ASTC = 0,
3
- BC7 = 1,
4
- DXT = 2,
5
- PVRTC = 3,
6
- ETC = 4,
7
- RGBA8 = 5
8
- }
@@ -1,10 +0,0 @@
1
- export interface TranscodeResult {
2
- width: number;
3
- height: number;
4
- hasAlpha: boolean;
5
- mipmaps: Array<{
6
- data: Uint8Array;
7
- width: number;
8
- height: number;
9
- }>;
10
- }
@@ -1,7 +0,0 @@
1
- export declare enum SupercompressionScheme {
2
- None = 0,
3
- BasisLZ = 1,
4
- Zstd = 2,
5
- ZLib = 3
6
- }
7
- export declare const KHR_DF_SAMPLE_DATATYPE_SIGNED = 64;
@@ -1,62 +0,0 @@
1
- /**
2
- * From https://github.com/donmccurdy/zstddec by Don McCurdy
3
- */
4
- interface DecoderExports {
5
- memory: Uint8Array;
6
- ZSTD_findDecompressedSize: (compressedPtr: number, compressedSize: number) => number;
7
- ZSTD_decompress: (uncompressedPtr: number, uncompressedSize: number, compressedPtr: number, compressedSize: number) => number;
8
- malloc: (ptr: number) => number;
9
- free: (ptr: number) => void;
10
- }
11
- /**
12
- * ZSTD (Zstandard) decoder.
13
- */
14
- export declare class ZSTDDecoder {
15
- static heap: Uint8Array;
16
- static IMPORT_OBJECT: {
17
- env: {
18
- emscripten_notify_memory_growth: () => void;
19
- };
20
- };
21
- static instance: {
22
- exports: DecoderExports;
23
- };
24
- static WasmModuleURL: string;
25
- _initPromise: Promise<any>;
26
- init(): Promise<void>;
27
- _init(result: WebAssembly.WebAssemblyInstantiatedSource): void;
28
- decode(array: Uint8Array, uncompressedSize?: number): Uint8Array;
29
- }
30
- export {};
31
- /**
32
- * BSD License
33
- *
34
- * For Zstandard software
35
- *
36
- * Copyright (c) 2016-present, Yann Collet, Facebook, Inc. All rights reserved.
37
- *
38
- * Redistribution and use in source and binary forms, with or without modification,
39
- * are permitted provided that the following conditions are met:
40
- *
41
- * * Redistributions of source code must retain the above copyright notice, this
42
- * list of conditions and the following disclaimer.
43
- *
44
- * * Redistributions in binary form must reproduce the above copyright notice,
45
- * this list of conditions and the following disclaimer in the documentation
46
- * and/or other materials provided with the distribution.
47
- *
48
- * * Neither the name Facebook nor the names of its contributors may be used to
49
- * endorse or promote products derived from this software without specific
50
- * prior written permission.
51
- *
52
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
53
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
54
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
55
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
56
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
57
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
58
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
59
- * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
60
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
61
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
62
- */
@@ -1,43 +0,0 @@
1
- import { Entity, Engine, Scene } from "@galacean/engine-core";
2
- import type { IPrefabFile } from "../schema";
3
- import { ParserContext } from "./ParserContext";
4
- /**
5
- * HierarchyParser parser.
6
- * Any HierarchyParser parser should extends this class, like scene parser, prefab parser, etc.
7
- * @export
8
- * @abstract
9
- * @class HierarchyParserParser
10
- * @template T
11
- */
12
- export default abstract class HierarchyParser<T extends Scene | Entity> {
13
- readonly context: ParserContext<T, IPrefabFile>;
14
- /**
15
- * The promise of parsed object.
16
- */
17
- readonly promise: Promise<T>;
18
- protected _engine: Engine;
19
- protected _resolve: (prefab: T) => void;
20
- protected _reject: (reason: any) => void;
21
- private childrenContextMap;
22
- constructor(context: ParserContext<T, IPrefabFile>);
23
- /** start parse the scene or prefab or others */
24
- start(): void;
25
- /**
26
- * Append child entity to target.
27
- * @abstract
28
- * @param {Entity} entity
29
- * @memberof ParserContext
30
- */
31
- protected abstract appendChild(entity: Entity): void;
32
- private _parseEntities;
33
- private _parseComponents;
34
- private _parsePrefabModification;
35
- private _clearAndResolve;
36
- private _organizeEntities;
37
- private _getEntityByConfig;
38
- private _parseEntity;
39
- private _parseGLTF;
40
- private _parsePrefab;
41
- private _parseChildren;
42
- private _applyEntityData;
43
- }
@@ -1,26 +0,0 @@
1
- import { Component, Entity } from "@galacean/engine-core";
2
- import type { IEntity } from "../schema";
3
- /**
4
- * Parser context
5
- * @export
6
- * @abstract
7
- * @class ParserContext
8
- * @template T
9
- * @template I
10
- */
11
- export declare abstract class ParserContext<T, I> {
12
- readonly originalData: I;
13
- readonly target: T;
14
- entityMap: Map<string, Entity>;
15
- components: Map<string, Component>;
16
- assets: Map<string, any>;
17
- entityConfigMap: Map<string, IEntity>;
18
- rootIds: string[];
19
- constructor(originalData: I, target: T);
20
- /**
21
- * Destroy the context.
22
- * @abstract
23
- * @memberof ParserContext
24
- */
25
- destroy(): void;
26
- }
@@ -1,5 +0,0 @@
1
- import { Entity } from "@galacean/engine-core";
2
- import { IPrefabFile } from "../schema";
3
- import { ParserContext } from "./ParserContext";
4
- export declare class PrefabParserContext extends ParserContext<Entity, IPrefabFile> {
5
- }