Trait specs_static::WorldExt
[−]
[src]
pub trait WorldExt {
fn register_tile_comp<C, I>(&mut self)
where
C: Component + Send + Sync,
C::Storage: Default,
I: Id;
}An extension trait for registering statically managed component storages.
Required Methods
fn register_tile_comp<C, I>(&mut self) where
C: Component + Send + Sync,
C::Storage: Default,
I: Id,
C: Component + Send + Sync,
C::Storage: Default,
I: Id,
Registers a specs_static::Storage for the components of type C.
This will be done automatically if your storage has a Default and you're fetching it with
Read / Write.