继承结构调整,Object->Component->ComponentWithId->Entity 中间加了一层ComponentWithId结构,主要考虑到,大部分组件是不需要Id这一字段的,
但是也有少部分需要,例如玩家的物品背包组件需要单独存数据库,那么这个组件需要Id,需要存数据库的组件都需要继承ComponentWithId
Showing
想要评论请 注册 或 登录
从无法访问的项目Fork
但是也有少部分需要,例如玩家的物品背包组件需要单独存数据库,那么这个组件需要Id,需要存数据库的组件都需要继承ComponentWithId