Browse Source

make equippedentity serializeable

pbs
jake 4 years ago
parent
commit
ceb632aec8
  1. 2
      src/entity/item/mod.rs

2
src/entity/item/mod.rs

@ -217,7 +217,7 @@ impl InventoryItemEntity {
} }
} }
#[derive(Clone, Debug, Default)]
#[derive(Clone, Debug, Default, Serialize, Deserialize)]
pub struct EquippedEntity { pub struct EquippedEntity {
pub weapon: Option<ItemEntityId>, pub weapon: Option<ItemEntityId>,
pub armor: Option<ItemEntityId>, pub armor: Option<ItemEntityId>,

Loading…
Cancel
Save