docs: Remove sub-headers from 公共方法 sections to follow SKILL.md规范
This commit is contained in:
@@ -12,8 +12,6 @@
|
||||
|
||||
## 公共方法
|
||||
|
||||
### 基础属性
|
||||
|
||||
| 方法 | 描述 |
|
||||
|------|------|
|
||||
| `ResourceType GetType() const` | 获取资源类型 |
|
||||
@@ -22,32 +20,11 @@
|
||||
| `ResourceGUID GetGUID() const` | 获取全局唯一标识符 |
|
||||
| `bool IsValid() const` | 检查资源是否有效 |
|
||||
| `size_t GetMemorySize() const` | 获取资源占用的内存大小(字节) |
|
||||
|
||||
### 生命周期
|
||||
|
||||
| 方法 | 描述 |
|
||||
|------|------|
|
||||
| `void Release()` | 释放资源引用 |
|
||||
|
||||
### 构造参数
|
||||
|
||||
```cpp
|
||||
struct ConstructParams {
|
||||
Containers::String name; // 资源名称
|
||||
Containers::String path; // 资源路径
|
||||
ResourceGUID guid; // 全局唯一标识符
|
||||
size_t memorySize = 0; // 内存大小
|
||||
};
|
||||
```
|
||||
|
||||
### 初始化方法
|
||||
|
||||
| 方法 | 描述 |
|
||||
|------|------|
|
||||
| `void Initialize(const ConstructParams& params)` | 使用构造参数初始化资源 |
|
||||
| `void SetInvalid()` | 将资源标记为无效 |
|
||||
|
||||
## 公共成员
|
||||
### 构造参数
|
||||
|
||||
| 成员 | 类型 | 描述 |
|
||||
|------|------|------|
|
||||
|
||||
Reference in New Issue
Block a user