Anders429 / Anders429/brood

Adding and removing multiple components from an entity.

オープン
#129 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
A - Storage C - Enhancement P - Low V - Major Breaking Change
主要言語
Rust
スター
41
フォーク
2
PR マージ指標
30日以内にマージされた PR はありません

説明

Currently, [`Entry::add()`](https://docs.rs/brood/0.3.0/brood/world/struct.Entry.html#method.add) and [`Entry::remove()`](https://docs.rs/brood/0.3.0/brood/world/struct.Entry.html#method.remove) only support removing one component at a time. This means that the entity will have to be moved to a new archetype with every change if multiple changes are desired.

To account for this, `Entry::add()` and `Entry::remove()` should be modified to take multiple components. Additionally, a new method called `Entry::add_remove()` could be introduced which both adds and removes components at the same time.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。