legion
legion copied to clipboard
High performance Rust ECS library
```rust pub struct ArchetypeWriter
Hi there, I'm just playing around with some game dev. I have a new project hosted here https://gitlab.com/freiguy1/strands (look at branch `legion` for this code) which is very small, just...
Is there a way to query entities with a given component, sorted by a value in the component? I'm thinking of the case where entities represent 'Renderable' objects, which are...
- Make the `KnownLength` trait public as `legion::storage::KnownLength`. - Fix lints and use `Iterator::reduce` instead of the deprecated [`Itertools::fold1`](https://docs.rs/itertools/latest/itertools/trait.Itertools.html#method.fold1). ## Motivation and Context Closes issue https://github.com/amethyst/legion/issues/274 [CommandBuffer](https://docs.rs/legion/0.4.0/legion/systems/struct.CommandBuffer.html#method.push) allows to push...
Hi all! I want to push an entity, but I don't know what components will be exists, because it can be known on runtime. So currently I'm just creating an...
Added implementation of the `LayoutFilter` trait for `Box`. ## Description - Added `impl LayoutFilter for Box {...}`. - Corresponding documentation entry added with an example and motivation explanations. ## Motivation...
Hi, I hope it's ok to open an issue to ask questions rather than reporting an issue. I have a couple questions on how to handle game maps. The first...
The readme file is missing the codegen feature flag. ## Description I just added the missing feature flag. ## Motivation and Context If you read the readme and tray to...
When I do: ```rust // Define our entity data types #[derive(Clone, Copy, Debug, PartialEq)] struct Position { x: f32, y: f32, } #[derive(Clone, Copy, Debug, PartialEq)] struct Velocity { dx:...
I browsed the docs, but I could not figure out for myself. I know we have queries that will let us go trough all the components of type `C` from...