specs
specs copied to clipboard
Add WriteStorage::take
Description
It will remove the component from the entity and return it (not by reference), similar to Option::take.
Motivation
This avoids cloning the component if it will be removed soon anyway. This allows cleaner code.