refactor api documentation structure

This commit is contained in:
2026-03-26 16:45:24 +08:00
parent 45842e961e
commit 6244b586bb
4389 changed files with 80504 additions and 69241 deletions

View File

@@ -0,0 +1,32 @@
# ComponentFactoryRegistry::CreateComponent
创建新对象或资源。
```cpp
Component* CreateComponent(GameObject* gameObject, const std::string& typeName) const;
```
该方法声明于 `XCEngine/Components/ComponentFactoryRegistry.h`,当前页面用于固定 `ComponentFactoryRegistry` 类目录下的方法级 canonical 路径。
**参数:**
- `gameObject` - 参数语义详见头文件声明。
- `typeName` - 参数语义详见头文件声明。
**返回:** `Component*` - 返回值语义详见头文件声明。
**示例:**
```cpp
#include <XCEngine/Components/ComponentFactoryRegistry.h>
void Example() {
XCEngine::Components::ComponentFactoryRegistry object;
// 根据上下文补齐参数后调用 ComponentFactoryRegistry::CreateComponent(...)。
(void)object;
}
```
## 相关文档
- [返回类总览](ComponentFactoryRegistry.md)
- [返回模块目录](../Components.md)