docs: update resources API docs

This commit is contained in:
2026-03-20 02:35:35 +08:00
parent fd792b7df1
commit ea756c0177
314 changed files with 9439 additions and 1360 deletions

View File

@@ -0,0 +1,44 @@
# ResourceFileSystem::Shutdown
## 方法签名
```cpp
void Shutdown();
```
## 所属类
`XCEngine::Resources::ResourceFileSystem`
## 描述
关闭资源文件系统,释放所有已分配的资源。此方法会清空所有已注册的档案和目录,清除资源信息缓存,并将根路径重置为空字符串。
此方法线程安全。
## 参数
## 返回值
## 示例
```cpp
#include "Resources/ResourceFileSystem.h"
using namespace XCEngine::Resources;
ResourceFileSystem& fs = ResourceFileSystem::Get();
// 程序结束时关闭资源系统
fs.Shutdown();
```
## 注意事项
- 应在程序退出前调用此方法
- 调用后系统处于未初始化状态,需要重新调用 `Initialize()` 才能使用
- 已打开的档案会被自动关闭