|
ShitEngine
基于 C++20 与 SDL3 的轻量级 2D 游戏引擎
|
单个组件的数据(类型名 + 反射字段值,JSON 可序列化) 更多...
#include <Prefab.h>
Public 属性 | |
| std::string | typeName |
| 组件类型名(TypeRegistry::Get 查询) | |
| nlohmann::json | fields |
| 字段名 → 值(仅反射且可序列化的字段) | |
单个组件的数据(类型名 + 反射字段值,JSON 可序列化)
| nlohmann::json fields |
字段名 → 值(仅反射且可序列化的字段)
| std::string typeName |
组件类型名(TypeRegistry::Get 查询)