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 canPluginUse, pluginType, fromPluginType to ComponentDefinition #131

Closed kennethloeffler closed 2 years ago

kennethloeffler commented 2 years ago

Closes #72

This PR adds the members canPluginUse, pluginType, and fromPluginType to ComponentDefinition. These allow consumers to selectively expose components to the plugin, use a different representation for static versions of components, and convert between the static and the runtime representation, respectively.