docs: Remove sub-headers from 公共方法 sections to follow SKILL.md规范

This commit is contained in:
2026-03-19 01:59:38 +08:00
parent b46d450429
commit 8e85fd98b8
13 changed files with 3 additions and 314 deletions

View File

@@ -46,33 +46,16 @@
## 公共方法
### 生命周期
| 方法 | 描述 |
|------|------|
| `void Initialize(Core::uint32 workerThreadCount = 2)` | 初始化异步加载器,创建工作线程 |
| `void Shutdown()` | 关闭异步加载器,等待所有挂起任务完成 |
### 提交请求
| 方法 | 描述 |
|------|------|
| `void Submit(const Containers::String& path, ResourceType type, std::function<void(LoadResult)> callback)` | 提交异步加载请求 |
| `void Submit(const Containers::String& path, ResourceType type, ImportSettings* settings, std::function<void(LoadResult)> callback)` | 带设置的异步加载请求 |
### 进度查询
| 方法 | 描述 |
|------|------|
| `void Update()` | 更新函数,在主线程调用,处理完成的加载请求 |
| `bool IsLoading() const` | 是否有正在加载的资源 |
| `Core::uint32 GetPendingCount() const` | 获取待处理加载请求数量 |
| `float GetProgress() const` | 获取整体加载进度0.0f ~ 1.0f |
### 取消操作
| 方法 | 描述 |
|------|------|
| `void CancelAll()` | 取消所有待处理的加载请求 |
| `void Cancel(Core::uint64 requestId)` | 取消指定 ID 的加载请求 |