Async Entity Component System based on the ideas of specs (https://github.com/amethyst/specs)
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

20 righe
480 B

  1. mod anti_storage;
  2. mod masked_storage;
  3. mod storage_wrapper;
  4. mod vec_storage;
  5. pub use anti_storage::AntiStorage;
  6. pub use masked_storage::MaskedStorage;
  7. pub use storage_wrapper::StorageWrapper;
  8. pub use vec_storage::VecStorage;
  9. use crate::{entity::Index, misc::TryDefault};
  10. pub trait Storage<T>: TryDefault {
  11. fn get(&self, index: Index) -> &T;
  12. fn get_mut(&mut self, index: Index) -> &mut T;
  13. fn insert(&mut self, index: Index, value: T);
  14. }
  15. pub trait DistinctStorage {}