amethyst / amethyst/specs

Add WriteStorage::take

Aperta
#633 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
feature-request
Lingua principale
Rust
Stelle
2.6k
Fork
215
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

## 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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.