Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在一个小型 2D minecraft 类游戏的小组项目中工作,应用实体组件系统设计模式。我们需要使用EnTT 框架。
我们希望通过将块标记为“属于”它们所在的块来更容易管理块,这样我们就可以做类似的事情
registry.view<Block, ChunkID>();
从注册表中获取给定块中的所有块。
有没有办法在 EnTT 中动态创建新组件?或者将一组实体标记为更大组的一部分,然后检索该组中的所有实体?
另外,我们有没有办法在特定的注册表中手动管理 EnTT ID?
谢谢!