You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding systems, there is no check for unregistered components.
funcmakeSystem(world*world, sinterface{}) *system {
...componentId, found:=world.componentIds[componentType.Elem()]
if!found {
continue// system pointer field is not component bound
}
...
}
Solution
Setting a panic at this point will solve the problem, but may affect the ability to correctly compare entities by mask, as well as the ability to get optional components.
It's also worth noting that fixing issue #1 might fix this issue as well, as before initialization of systems, there will be an initialization of entities in which this check is already present.
The text was updated successfully, but these errors were encountered:
Problem
When adding systems, there is no check for unregistered components.
Solution
Setting a panic at this point will solve the problem, but may affect the ability to correctly compare entities by mask, as well as the ability to get optional components.
It's also worth noting that fixing issue #1 might fix this issue as well, as before initialization of systems, there will be an initialization of entities in which this check is already present.
The text was updated successfully, but these errors were encountered: