specs icon indicating copy to clipboard operation
specs copied to clipboard

FlaggedStorage doc update require

Open AndreaCatania opened this issue 6 years ago • 0 comments

The example on this page is outdated: https://slide-rs.github.io/specs-website/docs/docs/0.10/specs/struct.FlaggedStorage.html

 for (entity, _) in (&*entities, &comps.check()).join() {
             if true { // check whether this component should be modified.
                 match comps.get_mut(entity) {
                     Some(component) => { /* ... */ },
                     None => { /* ... */ },
                 }
             }
         }

The function check got replaced with the function mask which now return a reference.

Check the issue here: https://github.com/slide-rs/specs/issues/304

AndreaCatania avatar Jul 08 '19 07:07 AndreaCatania