summaryrefslogtreecommitdiff
path: root/src/componentwrapper.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/componentwrapper.rs')
-rw-r--r--src/componentwrapper.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/componentwrapper.rs b/src/componentwrapper.rs
index 951745d..e5f9b9f 100644
--- a/src/componentwrapper.rs
+++ b/src/componentwrapper.rs
@@ -1,6 +1,6 @@
use std::collections::HashMap;
-use specs::{Builder, world::LazyBuilder};
+use specs::Builder;
use crate::PlayerId;
use crate::components::{Visible, Blocking, Player, Floor, Item, Inventory, Health, Serialise};
@@ -20,7 +20,7 @@ macro_rules! components {
impl ComponentWrapper {
- pub fn build<'a>(&self, builder: LazyBuilder<'a>) -> LazyBuilder<'a> {
+ pub fn build<A: Builder>(&self, builder: A ) -> A {
match self.clone() {
$(
Self::$comp(c) => builder.with(c),
@@ -101,7 +101,7 @@ components!(
);
-
+pub type PreEntity = Vec<ComponentWrapper>;