@galacean/engine-loader 2.0.0-alpha.13 → 2.0.0-alpha.15

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": "2.0.0-alpha.13",
3
+ "version": "2.0.0-alpha.15",
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": "2.0.0-alpha.13",
23
- "@galacean/engine-math": "2.0.0-alpha.13",
24
- "@galacean/engine-rhi-webgl": "2.0.0-alpha.13"
22
+ "@galacean/engine-math": "2.0.0-alpha.15",
23
+ "@galacean/engine-core": "2.0.0-alpha.15",
24
+ "@galacean/engine-rhi-webgl": "2.0.0-alpha.15"
25
25
  },
26
26
  "scripts": {
27
27
  "b:types": "tsc"
@@ -0,0 +1 @@
1
+ export {};
package/types/index.d.ts CHANGED
@@ -23,6 +23,7 @@ import "./ktx2/KTX2Loader";
23
23
  import "./ShaderLoader";
24
24
  import "./ShaderChunkLoader";
25
25
  import "./PhysicsMaterialLoader";
26
+ import "./RenderTargetLoader";
26
27
  export { GLTFLoader } from "./GLTFLoader";
27
28
  export type { GLTFParams } from "./GLTFLoader";
28
29
  export * from "./SceneLoader";
@@ -1,15 +1,14 @@
1
- import { EngineObject, Entity } from "@galacean/engine-core";
2
- import type { IBasicType, IClass, IEntity, IHierarchyFile, IMethodParams } from "../schema";
1
+ import { EngineObject, Entity, Signal } from "@galacean/engine-core";
2
+ import type { IBasicType, IClass, IEntity, IHierarchyFile, IMethodParams, ISignalRef } from "../schema";
3
3
  import { ParserContext } from "./ParserContext";
4
4
  export declare class ReflectionParser {
5
5
  private readonly _context;
6
- static customParseComponentHandles: Map<string, Function>;
7
- static registerCustomParseComponent(componentType: string, handle: Function): void;
8
6
  constructor(_context: ParserContext<IHierarchyFile, EngineObject>);
9
7
  parseEntity(entityConfig: IEntity): Promise<Entity>;
10
8
  parseClassObject(item: IClass): Promise<any>;
11
9
  parsePropsAndMethods(instance: any, item: Omit<IClass, "class">): Promise<any>;
12
10
  parseMethod(instance: any, methodName: string, methodParams: IMethodParams): Promise<any>;
11
+ parseSignal(signalRef: ISignalRef): Promise<Signal>;
13
12
  parseBasicType(value: IBasicType, originValue?: any): Promise<any>;
14
13
  private _getEntityByConfig;
15
14
  private static _isClass;
@@ -17,5 +16,6 @@ export declare class ReflectionParser {
17
16
  private static _isAssetRef;
18
17
  private static _isEntityRef;
19
18
  private static _isComponentRef;
19
+ private static _isSignalRef;
20
20
  private static _isMethodObject;
21
21
  }
@@ -83,7 +83,7 @@ export interface IInstance {
83
83
  export type IClassType = {
84
84
  classType: string;
85
85
  };
86
- export type IBasicType = string | number | boolean | null | undefined | IAssetRef | IClass | IClassType | IMethodParams | IEntityRef;
86
+ export type IBasicType = string | number | boolean | null | undefined | IAssetRef | IClass | IClassType | IMethodParams | IEntityRef | IComponentRef | ISignalRef;
87
87
  export type IAssetRef = {
88
88
  key?: string;
89
89
  url: string;
@@ -95,3 +95,10 @@ export type IComponentRef = {
95
95
  ownerId: string;
96
96
  componentId: string;
97
97
  };
98
+ export type ISignalRef = {
99
+ listeners: Array<{
100
+ target: IComponentRef;
101
+ methodName: string;
102
+ arguments?: Array<IBasicType>;
103
+ }>;
104
+ };