rj00a / evenio

An event-driven Entity Component System
MIT License
132 stars 14 forks source link

fix: incompatible component access issue for gt 2 queries #33

Closed andrewgazelka closed 5 months ago

andrewgazelka commented 5 months ago

This commit resolves an issue where queries with different component access expressions were incorrectly identified as incompatible when used together in an event handler. The problem was rooted in the logic that combined the component access expressions: it failed to account for the scenario where multiple queries in a handler could be compatible individually but not when combined.

TODO

rj00a commented 5 months ago

Thanks for finding this issue! As discussed on Discord, this PR doesn't quite fix the underlying issue. I've implemented a comprehensive fix in #35. Give that a review if you'd like.