diff options
Diffstat (limited to 'src/componentwrapper.rs')
| -rw-r--r-- | src/componentwrapper.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/componentwrapper.rs b/src/componentwrapper.rs index 6e11a0b..951745d 100644 --- a/src/componentwrapper.rs +++ b/src/componentwrapper.rs @@ -2,6 +2,7 @@ use std::collections::HashMap; use specs::{Builder, world::LazyBuilder}; +use crate::PlayerId; use crate::components::{Visible, Blocking, Player, Floor, Item, Inventory, Health, Serialise}; use crate::parameter::{Parameter, ParameterType}; @@ -91,7 +92,7 @@ components!( }; Blocking () {Blocking}; Floor () {Floor}; - Player (name: String) {Player::new(name)}; + Player (name: String) {Player::new(PlayerId{name})}; Item (ent: Template, name: String) {Item{ent, name}}; Inventory (capacity: Int) {Inventory{items: Vec::new(), capacity: capacity as usize}}; Health (health: Int, maxhealth: Int) {Health{health, maxhealth}}; |
