evaera / matter

A modern ECS library for Roblox.
https://eryn.io/matter/
MIT License
144 stars 34 forks source link

Prevented systems with undefined dependencies from being scheduled #57

Closed metrowaii closed 1 year ago

metrowaii commented 1 year ago

Closes #56

benbrimeyer commented 1 year ago

What's the outcome to the code posted in #56 with this change? It looks like it just no-opts invisibly?

metrowaii commented 1 year ago

Assuming you define the system with an undefined system first (in this case systemB) then that system will not run until its dependency is scheduled (systemA).

benbrimeyer commented 1 year ago

For UX, should there be a warning in the case we have a dormant system and the loop has been running a few times? I could see myself and potentially others confused why my system is not running if I'm doing some clever hotreloading thing.