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

@@ -22,55 +22,28 @@
## 公共方法
### 节点管理
| 方法 | 描述 |
|------|------|
| `void AddNode(ResourceGUID guid, ResourceType type)` | 添加依赖节点 |
| `void RemoveNode(ResourceGUID guid)` | 移除依赖节点 |
| `bool HasNode(ResourceGUID guid) const` | 检查节点是否存在 |
### 依赖关系
| 方法 | 描述 |
|------|------|
| `void AddDependency(ResourceGUID owner, ResourceGUID dependency)` | 添加依赖关系A 依赖 B |
| `void RemoveDependency(ResourceGUID owner, ResourceGUID dependency)` | 移除依赖关系 |
| `Containers::Array<ResourceGUID> GetDependencies(ResourceGUID guid) const` | 获取指定资源的直接依赖列表 |
| `Containers::Array<ResourceGUID> GetDependents(ResourceGUID guid) const` | 获取依赖指定资源的所有资源列表 |
| `Containers::Array<ResourceGUID> GetAllDependencies(ResourceGUID guid) const` | 获取所有递归依赖(包括传递依赖) |
### 引用计数
| 方法 | 描述 |
|------|------|
| `void IncrementRefCount(ResourceGUID guid)` | 增加引用计数 |
| `void DecrementRefCount(ResourceGUID guid)` | 减少引用计数 |
| `Core::uint32 GetRefCount(ResourceGUID guid) const` | 获取引用计数 |
### 循环检测
| 方法 | 描述 |
|------|------|
| `bool HasCircularDependency(ResourceGUID guid, Containers::Array<ResourceGUID>& outCycle) const` | 检测是否存在循环依赖 |
### 排序与卸载
| 方法 | 描述 |
|------|------|
| `Containers::Array<ResourceGUID> TopologicalSort() const` | 拓扑排序(当前返回空数组 - stub |
| `bool Unload(ResourceGUID guid)` | 安全卸载(考虑依赖关系) |
| `void Clear()` | 清空所有节点和依赖关系 |
## 实现说明
**注意**: `TopologicalSort()` 当前为 stub返回空数组。
### 清理
| 方法 | 描述 |
|------|------|
| `void Clear()` | 清空所有节点和依赖关系 |
## 使用示例
```cpp