Ukendio / jecs

A fast, portable Entity Component System for Luau
https://ukendio.github.io/jecs/
MIT License
146 stars 26 forks source link

component Hooks #98

Closed DunnoConz closed 3 months ago

DunnoConz commented 3 months ago

Edit by Marcus: I think this is non-obvious, it makes sense for us to allow people to create hooks to listen to types of changes to components. It utilizes existing constructs such as traits and is self contained enough to merit inclusion even if people can make signals themselves. As manually firing signals at each callpoint is very tedious and creating listeners for such.