From 97850d8c1ee3522ccce30ef31ed91601da8c0730 Mon Sep 17 00:00:00 2001 From: troido Date: Tue, 11 Feb 2020 01:40:44 +0100 Subject: inventory is now shown --- src/componentwrapper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/componentwrapper.rs') diff --git a/src/componentwrapper.rs b/src/componentwrapper.rs index bcb750d..feb570e 100644 --- a/src/componentwrapper.rs +++ b/src/componentwrapper.rs @@ -92,7 +92,7 @@ components!( Blocking () {Blocking}; Floor () {Floor}; Player (name: String) {Player::new(name)}; - Item (ent: Template) {Item{ent}}; + Item (ent: Template, name: String) {Item{ent, name}}; Inventory (capacity: Int) {Inventory{items: Vec::new(), capacity: capacity as usize}} ); -- cgit