use bevy_ecs::component::Component;
use serde::{Deserialize, Serialize};
use std::collections::HashSet;
#[derive(Clone, Serialize, Deserialize, Component)]
#[cfg_attr(target_family = "wasm", derive(tsify_next::Tsify))]
#[cfg_attr(
target_family = "wasm",
tsify(into_wasm_abi, from_wasm_abi, large_number_types_as_bigints)
)]
pub struct Item {
pub name: String,
pub descr: String,
pub length: i32,
pub volume: i32,
pub weight: i32,
pub opaque: bool,
pub price: i32,
pub ext_info: Vec<String>,
pub flag: HashSet<String>,
}