kennethloeffler / anatta

Anatta is a library that integrates the ECS pattern into Roblox.
https://kennethloeffler.github.io/anatta/
MIT License
38 stars 1 forks source link

Add `Reactor:getAttachment`, use pairs to iterate attachments #114

Closed kennethloeffler closed 2 years ago

kennethloeffler commented 2 years ago

I think it's time to allow attachments to be accessed via a Reactor. This PR adds Reactor:getAttachment lets the return table from a Reactor:withAttachments callback be a dictionary to facilitate this.