diff options
Diffstat (limited to 'src/componentwrapper.rs')
| -rw-r--r-- | src/componentwrapper.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/componentwrapper.rs b/src/componentwrapper.rs index 43c8353..c60c23f 100644 --- a/src/componentwrapper.rs +++ b/src/componentwrapper.rs @@ -2,7 +2,7 @@ use std::collections::HashMap; use specs::{Builder, world::LazyBuilder}; -use crate::components::{Visible, Blocking, Player, Floor}; +use crate::components::{Visible, Blocking, Player, Floor, Item, Inventory}; use crate::parameter::{Parameter, ParameterType}; @@ -91,7 +91,10 @@ components!( }; Blocking () {Blocking}; Floor () {Floor}; - Player (name: String) {Player::new(name.to_string())} + Player (name: String) {Player::new(name.to_string())}; + Item (ent: Template) {Item{ent}}; + Inventory () {Inventory::default()} + ); |
