Swapped some rarely use storages.

This commit is contained in:
Acrimon 2019-07-31 11:30:46 +02:00
parent c2f8dbc2d7
commit 9fbf710cc9
3 changed files with 4 additions and 4 deletions

2
Cargo.lock generated
View File

@ -2601,7 +2601,7 @@ dependencies = [
[[package]]
name = "specs-idvs"
version = "0.1.0"
source = "git+http://gitlab.nebulanet.cc/xacrimon/specs-idvs.git#282b0b573ba485fe71b5800d6c354adeb19a3c1b"
source = "git+http://gitlab.nebulanet.cc/xacrimon/specs-idvs.git#0a61720de65311840804cce31b4344747dff1df0"
dependencies = [
"hibitset 0.5.4 (registry+https://github.com/rust-lang/crates.io-index)",
"specs 0.14.3 (registry+https://github.com/rust-lang/crates.io-index)",

View File

@ -1,4 +1,4 @@
use specs::{Component, FlaggedStorage};
use specs::{Component, FlaggedStorage, HashMapStorage};
use specs_idvs::IDVStorage;
#[derive(Clone, Copy, Debug, PartialEq, Serialize, Deserialize)]
@ -25,5 +25,5 @@ impl Default for ActionState {
}
impl Component for ActionState {
type Storage = FlaggedStorage<Self, IDVStorage<Self>>;
type Storage = FlaggedStorage<Self, HashMapStorage<Self>>;
}

View File

@ -43,5 +43,5 @@ impl Inventory {
}
impl Component for Inventory {
type Storage = IDVStorage<Self>;
type Storage = HashMapStorage<Self>;
}