|
ShitEngine
基于 C++20 与 SDL3 的轻量级 2D 游戏引擎
|
#include <TypeInfo.h>
Public 成员函数 | |
| void * | Create (void *memory=nullptr) const |
| 创建类型实例。传入 nullptr 则堆分配(new),否则 placement new 到给定地址 | |
Public 属性 | |
| std::string | name |
| size_t | size = 0 |
| const TypeInfo * | baseType = nullptr |
| std::string | baseTypeName |
| 基类类型名(用于延迟解析,消除 SIOF) | |
| std::vector< FieldInfo > | fields |
| std::vector< EnumValue > | enumValues |
| 枚举常量列表(仅枚举类型使用) | |
| std::type_index | typeIndex = typeid(nullptr) |
| std::function< void *(void *)> | factory |
| std::string | source |
| 注册来源(空 = 引擎内置,否则为插件名,用于卸载时批量清理) | |
|
inline |
创建类型实例。传入 nullptr 则堆分配(new),否则 placement new 到给定地址
| const TypeInfo* baseType = nullptr |
| std::string baseTypeName |
基类类型名(用于延迟解析,消除 SIOF)
| std::vector<EnumValue> enumValues |
枚举常量列表(仅枚举类型使用)
| std::function<void*(void*)> factory |
| std::vector<FieldInfo> fields |
| std::string name |
| size_t size = 0 |
| std::string source |
注册来源(空 = 引擎内置,否则为插件名,用于卸载时批量清理)
| std::type_index typeIndex = typeid(nullptr) |