amethyst / specs

Specs - Parallel ECS
https://amethyst.github.io/specs/
Apache License 2.0
2.51k stars 221 forks source link

Expose paired storage. #700

Closed Azaril closed 4 years ago

Azaril commented 4 years ago

Checklist

API changes

This change makes paired storage public to complement the already public restricted storage. The type is not accessible due to the restrict module being private. This means if you want to do anything with paired storage other than treat it as an anonymous type you can't. Given that it does not implement any public traits for storage access, you can't pass it to any other code without wrapping it in another generic type (i.e. putting it in a closure.)

The use case is passing the structure to another function or beyond the original scope it's contained within.

azriel91 commented 4 years ago

bors r+

bors[bot] commented 4 years ago

Build succeeded: