make equippedentity serializeable

This commit is contained in:
jake 2020-11-11 19:26:12 -07:00
parent c7a310391f
commit ceb632aec8

View File

@ -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>,