diff options
| author | troido <troido@protonmail.com> | 2020-02-11 01:40:44 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-02-11 01:40:44 +0100 |
| commit | 97850d8c1ee3522ccce30ef31ed91601da8c0730 (patch) | |
| tree | 770761b1f211d47dbc619f9d6922174686bd6fc7 /src/componentwrapper.rs | |
| parent | f6d1d4ea258490670ee1605c596a6ba9a49a77db (diff) | |
inventory is now shown
Diffstat (limited to 'src/componentwrapper.rs')
| -rw-r--r-- | src/componentwrapper.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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}} ); |
