Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - news: release 0.8.0 #406

Closed
wants to merge 30 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
a2e5005
news: release 0.8.0
cart Jul 23, 2022
0df1388
Update content/news/2022-07-29-bevy-0.8/index.md
cart Jul 28, 2022
b89bf37
Apply suggestions from code review
cart Jul 28, 2022
73fb379
Resolve some comments
cart Jul 28, 2022
5b9ebda
Apply suggestions from code review
cart Jul 28, 2022
5a5a9dc
high-level
cart Jul 28, 2022
98fae10
resolve some comments
cart Jul 29, 2022
5fab1b9
Add Taffy section (authored by @alice-i-cecile)
cart Jul 29, 2022
89a8be9
Sponsor Us!
cart Jul 29, 2022
1416056
Static TypeInfo and WASM Builder sections
cart Jul 29, 2022
6a8355d
Fill in examples and "whats next" sections
cart Jul 29, 2022
6dc9b1d
bevy -> Bevy
cart Jul 29, 2022
c2e1b3d
Add graphs
cart Jul 29, 2022
ae414b6
Griffin's marble video
cart Jul 29, 2022
d8825e5
re-encode portals to save some space
cart Jul 29, 2022
68201aa
colorful shapes!
cart Jul 29, 2022
c53c1f3
add rob to the support section
cart Jul 29, 2022
9ac0697
Apply suggestions from code review
cart Jul 29, 2022
de9dc3d
Android context
cart Jul 29, 2022
254957b
Add material tutorial link
cart Jul 29, 2022
58b5d8c
Remove AABB recalculation
cart Jul 29, 2022
875f4e4
iter_many_mut
cart Jul 30, 2022
22397a4
Add draft of Full Change Log for 0.8.0 blog post (#7)
colepoirier Jul 30, 2022
c95066d
Update content/news/2022-07-29-bevy-0.8/index.md
cart Jul 30, 2022
84d121f
Add contributors and fill in numbers
cart Jul 30, 2022
bd0baff
more whats next
cart Jul 30, 2022
e4d9f2d
Replace pngs that have too much detail for their own good with (sligh…
cart Jul 30, 2022
4a02f08
Update content/news/2022-07-29-bevy-0.8/index.md
cart Jul 30, 2022
c89a66a
Address comments
cart Jul 30, 2022
cda35f9
adjust date
cart Jul 30, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions content/news/2022-07-29-bevy-0.8/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -716,16 +716,17 @@ fn system(blue_team: Res<BlueTeam>, players: Query<&Player>) {
}
```

There is also a [`Query::many_for_each_mut`], which provides similar functionality for mutable queries, but it uses a closure to ensure there is never aliased mutability if the given list contains duplicates:
There is also a [`Query::iter_many_mut`], which provides similar functionality for mutable queries. But to ensure aliased mutability is not allowed, it doesn't not implement iterator. Instead, use this pattern:
cart marked this conversation as resolved.
Show resolved Hide resolved

```rust
players.many_for_each_mut(&blue_team.members, |mut player| {
let mut iter = players.iter_many_mut(&blue_team.members);
while let Some(mut player) = iter.fetch_next() {
player.score += 1;
});
}
```

[`Query::iter_many`]: https://docs.rs/bevy/0.8.0/bevy/ecs/system/struct.Query.html#method.iter_many
[`Query::many_for_each_mut`]: https://docs.rs/bevy/0.8.0/bevy/ecs/system/struct.Query.html#method.many_for_each_mut
[`Query::iter_many_mut`]: https://docs.rs/bevy/0.8.0/bevy/ecs/system/struct.Query.html#method.iter_many_mut


## Convert Mutable Queries to Read-only
Expand Down