You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
376 B
21 lines
376 B
mod weapon;
|
|
mod tool;
|
|
mod armor;
|
|
|
|
use entity::item::ItemDetail;
|
|
|
|
pub trait ShopItem {
|
|
fn price(&self) -> usize;
|
|
fn as_bytes(&self) -> [u8; 12];
|
|
fn as_item(&self) -> ItemDetail;
|
|
}
|
|
|
|
pub enum ShopType {
|
|
Weapon,
|
|
Tool,
|
|
Armor
|
|
}
|
|
|
|
pub use weapon::{WeaponShop, WeaponShopItem};
|
|
pub use tool::{ToolShop, ToolShopItem};
|
|
pub use armor::{ArmorShop, ArmorShopItem};
|