ShitEngine
基于 C++20 与 SDL3 的轻量级 2D 游戏引擎
载入中...
搜索中...
未找到
TypeInfo结构体 参考

#include <TypeInfo.h>

Public 成员函数

void * Create (void *memory=nullptr) const
 创建类型实例。传入 nullptr 则堆分配(new),否则 placement new 到给定地址

Public 属性

std::string name
size_t size = 0
const TypeInfobaseType = nullptr
std::string baseTypeName
 基类类型名(用于延迟解析,消除 SIOF)
std::vector< FieldInfofields
std::vector< EnumValueenumValues
 枚举常量列表(仅枚举类型使用)
std::type_index typeIndex = typeid(nullptr)
std::function< void *(void *)> factory
std::string source
 注册来源(空 = 引擎内置,否则为插件名,用于卸载时批量清理)

成员函数说明

◆ Create()

void * Create ( void * memory = nullptr) const
inline

创建类型实例。传入 nullptr 则堆分配(new),否则 placement new 到给定地址

类成员变量说明

◆ baseType

const TypeInfo* baseType = nullptr

◆ baseTypeName

std::string baseTypeName

基类类型名(用于延迟解析,消除 SIOF)

◆ enumValues

std::vector<EnumValue> enumValues

枚举常量列表(仅枚举类型使用)

◆ factory

std::function<void*(void*)> factory

◆ fields

std::vector<FieldInfo> fields

◆ name

std::string name

◆ size

size_t size = 0

◆ source

std::string source

注册来源(空 = 引擎内置,否则为插件名,用于卸载时批量清理)

◆ typeIndex

std::type_index typeIndex = typeid(nullptr)

该结构体的文档由以下文件生成: