feat(asset-system): 添加运行时资产目录和bundle格式

This commit is contained in:
yhh
2025-12-03 16:19:03 +08:00
parent e2cca5e490
commit 25e70a1d7b
15 changed files with 1068 additions and 614 deletions

View File

@@ -69,6 +69,12 @@ export interface IAssetManager {
*/
getAssetByHandle<T = unknown>(handle: AssetHandle): T | null;
/**
* Get loaded asset by path (synchronous)
* 通过路径获取已加载的资产(同步)
*/
getAssetByPath<T = unknown>(path: string): T | null;
/**
* Check if asset is loaded
* 检查资产是否已加载