specs icon indicating copy to clipboard operation
specs copied to clipboard

Add WriteStorage::take

Open timokoesters opened this issue 6 years ago • 0 comments

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.

timokoesters avatar Aug 27 '19 12:08 timokoesters