Browse Source

guess I needed this PartialEq for the tests

pbs
jake 5 years ago
parent
commit
b22ce086f7
  1. 4
      src/entity/item/mod.rs
  2. 2
      src/ship/items.rs
  3. 2
      src/ship/map.rs

4
src/entity/item/mod.rs

@ -16,7 +16,7 @@ pub struct ItemId(u32);
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct BankName(String);
#[derive(Clone, Debug)]
#[derive(Clone, Debug, PartialEq)]
pub enum ItemLocation {
Inventory {
character_id: CharacterEntityId,
@ -106,7 +106,7 @@ pub struct NewItemEntity {
pub item: ItemDetail,
}
#[derive(Clone, Debug)]
#[derive(Clone, Debug, PartialEq)]
pub struct ItemEntity {
pub id: ItemEntityId,
pub location: ItemLocation,

2
src/ship/items.rs

@ -17,7 +17,7 @@ use crate::ship::drops::{ItemDrop, ItemDropType};
use crate::ship::ship::ShipError;
#[derive(Debug)]
#[derive(Debug, PartialEq)]
enum ItemInstance {
Individual(ItemEntity),
Stacked(Vec<ItemEntity>),

2
src/ship/map.rs

@ -349,7 +349,7 @@ enum MapVariantMode {
Offline,
}
#[derive(Debug, Copy, Clone)]
#[derive(Debug, Copy, Clone, PartialEq)]
pub enum MapArea {
Pioneer2Ep1,
Forest1,

Loading…
Cancel
Save