guess I needed this PartialEq for the tests
This commit is contained in:
parent
a32a7130f4
commit
b22ce086f7
@ -16,7 +16,7 @@ pub struct ItemId(u32);
|
|||||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||||
pub struct BankName(String);
|
pub struct BankName(String);
|
||||||
|
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug, PartialEq)]
|
||||||
pub enum ItemLocation {
|
pub enum ItemLocation {
|
||||||
Inventory {
|
Inventory {
|
||||||
character_id: CharacterEntityId,
|
character_id: CharacterEntityId,
|
||||||
@ -106,7 +106,7 @@ pub struct NewItemEntity {
|
|||||||
pub item: ItemDetail,
|
pub item: ItemDetail,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug, PartialEq)]
|
||||||
pub struct ItemEntity {
|
pub struct ItemEntity {
|
||||||
pub id: ItemEntityId,
|
pub id: ItemEntityId,
|
||||||
pub location: ItemLocation,
|
pub location: ItemLocation,
|
||||||
|
@ -17,7 +17,7 @@ use crate::ship::drops::{ItemDrop, ItemDropType};
|
|||||||
use crate::ship::ship::ShipError;
|
use crate::ship::ship::ShipError;
|
||||||
|
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug, PartialEq)]
|
||||||
enum ItemInstance {
|
enum ItemInstance {
|
||||||
Individual(ItemEntity),
|
Individual(ItemEntity),
|
||||||
Stacked(Vec<ItemEntity>),
|
Stacked(Vec<ItemEntity>),
|
||||||
|
@ -349,7 +349,7 @@ enum MapVariantMode {
|
|||||||
Offline,
|
Offline,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Copy, Clone)]
|
#[derive(Debug, Copy, Clone, PartialEq)]
|
||||||
pub enum MapArea {
|
pub enum MapArea {
|
||||||
Pioneer2Ep1,
|
Pioneer2Ep1,
|
||||||
Forest1,
|
Forest1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user