Type Definition specs::ReadStorage
[−]
[src]
type ReadStorage<'a, T> = Storage<'a, T, Fetch<'a, MaskedStorage<T>>>;
A storage with read access.
Trait Implementations
impl<'a, T> SystemData<'a> for ReadStorage<'a, T> where
T: Component,
[src]
T: Component,
fn fetch(res: &'a Resources, id: usize) -> Self
[src]
Creates a new resource bundle by fetching the required resources from the [Resources
] struct. Read more
fn reads(id: usize) -> Vec<ResourceId>
[src]
A list of [ResourceId
]s the bundle needs read access to in order to build the target resource bundle. Read more
fn writes(_: usize) -> Vec<ResourceId>
[src]
A list of [ResourceId
]s the bundle needs write access to in order to build the target resource bundle. Read more