载入中...
搜索中...
未找到
eve::ScriptComponentStoreKey结构体 参考

一条脚本组件数据的键:实体 + 组件名 + 版本。 更多...

#include <ScriptComponentStore.h>

Public 属性

std::uint64_t entityId = 0
 
std::string name
 脚本侧声明的组件名。
 
SchemaVersion version
 脚本侧声明的版本。
 

友元

bool operator< (const ScriptComponentStoreKey &a, const ScriptComponentStoreKey &b) noexcept
 

详细描述

一条脚本组件数据的键:实体 + 组件名 + 版本。

用名字 + 版本而不是类对象:热重载会换掉类对象,而这两者不变(见 ECS.h 的 ScriptComponentRecord)。这两个身份合起来才能回答"这份数据属于哪个组件的哪一代"。

在文件 ScriptComponentStore.h 第 23 行定义.

友元及相关函数文档

◆ operator<

bool operator< ( const ScriptComponentStoreKey &  a,
const ScriptComponentStoreKey &  b 
)
friend

在文件 ScriptComponentStore.h 第 30 行定义.

类成员变量说明

◆ entityId

std::uint64_t eve::ScriptComponentStoreKey::entityId = 0

在文件 ScriptComponentStore.h 第 24 行定义.

◆ name

std::string eve::ScriptComponentStoreKey::name

脚本侧声明的组件名。

在文件 ScriptComponentStore.h 第 26 行定义.

◆ version

SchemaVersion eve::ScriptComponentStoreKey::version

脚本侧声明的版本。

在文件 ScriptComponentStore.h 第 28 行定义.


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