add armor_slot to postgres model for unit
This commit is contained in:
parent
f3e7599975
commit
f3608d99ad
@ -384,6 +384,7 @@ impl Into<shield::Shield> for PgShield {
|
||||
pub struct PgUnit {
|
||||
unit: unit::UnitType,
|
||||
modifier: Option<unit::UnitModifier>,
|
||||
armor_slot: u8,
|
||||
}
|
||||
|
||||
impl From<unit::Unit> for PgUnit {
|
||||
@ -391,6 +392,7 @@ impl From<unit::Unit> for PgUnit {
|
||||
PgUnit {
|
||||
unit: other.unit,
|
||||
modifier: other.modifier,
|
||||
armor_slot: other.armor_slot,
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -400,6 +402,7 @@ impl Into<unit::Unit> for PgUnit {
|
||||
unit::Unit {
|
||||
unit: self.unit,
|
||||
modifier: self.modifier,
|
||||
armor_slot: self.armor_slot,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user