Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

N40: Add Sparsey v0.10 Section #1212

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
merged 3 commits into from
Dec 4, 2022
Merged
Changes from all commits
Commits
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
26 changes: 26 additions & 0 deletions 26 content/news/040/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,32 @@ commands
[seq-actions-docs]: https://docs.rs/bevy-sequential-actions
[bevy]: https://bevyengine.org

### [Sparsey] v0.10

[Sparsey] by [@LechintanTudor] is an Entity Component System focused on
flexibility, conciseness and providing features exclusive to its sparse
set-based implementation.

The latest release takes advantage of the newly added Generic Associated Types
to provide a uniform interface for running systems, functions and closures that
borrow data from World and Resources, via the "run", "run_locally" and
"run_exclusive" functions.

Example:

```rust
let heaviest = sparsey::run(&world, &resources, |weights: Comp<Weight>| {
(&weights)
.iter()
.with_entity()
.max_by_key(|(_entity, &weight)| weight)
.map(|(entity, _weight)| entity)
});
```

[Sparsey]: https://github.com/LechintanTudor/sparsey
[@LechintanTudor]: https://github.com/LechintanTudor

## Popular Workgroup Issues in Github

<!-- Up to 10 links to interesting issues -->
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.