LessNoise.Sh some signal

Roguelike Dev Day 7: Finishing Inventory

(1 minute) programming, rust, game, roguelike

Finishing Inventory

Chapter 9 is right over there.

...

I wonder if Systems (the "S" in "ECS") always have these big data selector types. I'd like to look into other ECS implementations to see how they handle this.

impl<'a> System<'a> for PotionUseSystem {
    type SystemData = (
        ReadExpect<'a, Entity>,
        WriteExpect<'a, GameLog>,
        Entities<'a>,
        WriteStorage<'a, WantsToDrinkPotion>,
        ReadStorage<'a, Name>,
        ReadStorage<'a, Potion>,
        WriteStorage<'a, CombatStats>,
    );

    // More PotionUseSystem stuff
}

Other ECSs?

I've looked a bit into other Rust ECS options and so far haven't found a recent comparison. I may just have to read through the ECS list on arewegameyet.rs.