Skip to content

Commit

Permalink
Update book and example to match shred-derive changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Imberflur committed Jan 12, 2024
1 parent c1a49bb commit e893f20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/tutorials/src/06_system_data.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ That's why you can also create your own `SystemData` bundle using a struct:
extern crate specs;
use specs::prelude::*;
// `shred` needs to be in scope for the `SystemData` derive.
use specs::shred;
#[derive(SystemData)]
pub struct MySystemData<'a> {
Expand Down
2 changes: 1 addition & 1 deletion examples/full.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use specs::{prelude::*, storage::HashMapStorage};
use specs::{prelude::*, shred, storage::HashMapStorage};

// -- Components --
// A component exists for 0..n
Expand Down

0 comments on commit e893f20

Please sign in to comment.