registry:
* public and runtime pools * removed basic_registry<...>::prepare
This commit is contained in:
@@ -8,7 +8,8 @@ CR_EXPORT int cr_main(cr_plugin *ctx, cr_op operation) {
|
||||
// forces things to break
|
||||
auto ®istry = *static_cast<entt::registry *>(ctx->userdata);
|
||||
|
||||
registry.prepare<velocity>();
|
||||
// forces the creation of the pool for the velocity component
|
||||
registry.storage<velocity>();
|
||||
|
||||
const auto view = registry.view<position>();
|
||||
registry.insert(view.begin(), view.end(), velocity{1., 1.});
|
||||
|
||||
Reference in New Issue
Block a user