@glowjs/core 2025.6.30 → 2025.7.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/glow.core.d.ts +87 -24
- package/dist/glow.core.js +1 -1
- package/dist/typings/entity/Building.d.ts +0 -4
- package/dist/typings/entity/Floor.d.ts +0 -4
- package/dist/typings/entity/component/archive/ArchiveCabinetGroup.d.ts +2 -0
- package/dist/typings/index.d.ts +1 -0
- package/dist/typings/res/ResCacheData.d.ts +1 -2
- package/dist/typings/res/ResOptions.d.ts +2 -0
- package/dist/typings/res/ResPool.d.ts +29 -22
- package/dist/typings/runtime/babylonjs/babylonjs-core.d.ts +1 -0
- package/package.json +1 -1
package/dist/typings/index.d.ts
CHANGED
|
@@ -88,5 +88,6 @@ export { ResPool } from './res/ResPool';
|
|
|
88
88
|
export { ResOptions } from './res/ResOptions';
|
|
89
89
|
export { ParticleData } from './effect/ParticleData';
|
|
90
90
|
export { DistanceTool } from './tool/DistanceTool';
|
|
91
|
+
export { HeightTool } from './tool/HeightTool';
|
|
91
92
|
export * from './misc';
|
|
92
93
|
export * from './restool';
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { ResCacheData } from
|
|
6
|
-
import
|
|
7
|
-
import { ParticleData } from '../effect/ParticleData';
|
|
1
|
+
import { Base } from "../base/Base";
|
|
2
|
+
import { App } from "../core/App";
|
|
3
|
+
import { ParticleData } from "../effect/ParticleData";
|
|
4
|
+
import { InstantiatedEntries, NodeMaterial, Texture } from "../runtime";
|
|
5
|
+
import { ResCacheData } from "./ResCacheData";
|
|
6
|
+
import { ResOptions } from "./ResOptions";
|
|
8
7
|
/**
|
|
9
8
|
* 资源池
|
|
10
9
|
*/
|
|
11
10
|
export declare class ResPool extends Base {
|
|
12
|
-
readonly random: string;
|
|
13
11
|
/**
|
|
14
12
|
* 资源列表
|
|
15
13
|
*/
|
|
@@ -21,25 +19,12 @@ export declare class ResPool extends Base {
|
|
|
21
19
|
/**
|
|
22
20
|
* 加载中的资源列表
|
|
23
21
|
*/
|
|
24
|
-
private
|
|
25
|
-
private _assetContainerAdded;
|
|
22
|
+
private _locked;
|
|
26
23
|
/**
|
|
27
24
|
* 实例化一个资源池对象
|
|
28
25
|
* @param app 应用
|
|
29
26
|
*/
|
|
30
27
|
constructor(app: App);
|
|
31
|
-
/**
|
|
32
|
-
* 加载指定资源
|
|
33
|
-
* @param id 编号
|
|
34
|
-
*/
|
|
35
|
-
_loadRes(info: ResOptions): Promise<void>;
|
|
36
|
-
/**
|
|
37
|
-
* 获取指定资源
|
|
38
|
-
* @param id 编号
|
|
39
|
-
* @param optimized 是否优化网格
|
|
40
|
-
* @param archiveGrid 是否包含档案格
|
|
41
|
-
*/
|
|
42
|
-
getRes(id: string, optimized?: boolean, archiveGrid?: boolean): Promise<Texture | any | InstantiatedEntries | NodeMaterial | undefined>;
|
|
43
28
|
/**
|
|
44
29
|
* 判断指定编号的的资源是否已缓存
|
|
45
30
|
* @param id 编号
|
|
@@ -60,5 +45,27 @@ export declare class ResPool extends Base {
|
|
|
60
45
|
* @param id 编号
|
|
61
46
|
*/
|
|
62
47
|
getResIndex(id: string): number | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* 加载指定资源
|
|
50
|
+
* @param id 编号
|
|
51
|
+
*/
|
|
52
|
+
_loadRes(info: ResOptions): Promise<void>;
|
|
53
|
+
/**
|
|
54
|
+
* 获取指定资源
|
|
55
|
+
* @param id 编号
|
|
56
|
+
* @param optimized 是否优化网格
|
|
57
|
+
* @param archiveGrid 是否包含档案格
|
|
58
|
+
*/
|
|
59
|
+
getRes(id: string, optimized?: boolean, archiveGrid?: boolean): Promise<Texture | InstantiatedEntries | NodeMaterial | any>;
|
|
60
|
+
private _cloneEntires;
|
|
61
|
+
private _loadModel;
|
|
62
|
+
private _loadTexture;
|
|
63
|
+
private _loadMaterial;
|
|
64
|
+
private _loadParticle;
|
|
65
|
+
private _getResType;
|
|
66
|
+
/**
|
|
67
|
+
* 获取粒子默认数据(仅用于编辑器)
|
|
68
|
+
* @param id 编号
|
|
69
|
+
*/
|
|
63
70
|
getDefaultParticleData(id: string): Promise<ParticleData>;
|
|
64
71
|
}
|
|
@@ -41,6 +41,7 @@ export { CubeTexture } from '@babylonjs/core/Materials/Textures/cubeTexture';
|
|
|
41
41
|
export { NodeMaterial } from '@babylonjs/core/Materials/Node/nodeMaterial';
|
|
42
42
|
export { Effect } from '@babylonjs/core/Materials/effect';
|
|
43
43
|
import '@babylonjs/core/Materials/Node/Blocks';
|
|
44
|
+
import '@babylonjs/core/Materials/Textures';
|
|
44
45
|
export { EquiRectangularCubeTexture } from '@babylonjs/core/Materials/Textures/equiRectangularCubeTexture';
|
|
45
46
|
export { PickingInfo } from '@babylonjs/core/Collisions/pickingInfo';
|
|
46
47
|
export { Tools } from '@babylonjs/core/Misc/tools';
|