/// Creates a new inventory of the given
/// type and number of slots.
Creates a new inventory of the given
type and number of slots.
Creates a new inventory of the given type and number of slots .
pub fn new(ty: InventoryType, num_slots: u32) -> Self {
        Self {
            items: vec![None; num_slots as usize],
            ty,
        }
    }
pub fn new ( ty : InventoryType , num_slots : u32 ) -> Self { Self { items : vec ! [ None num_slots as usize ] , ty , } }
Creates a new inventory of the given
type and number of slots.
Creates a new inventory of the given type and number of slots .
ty
InventoryType
num_slots
u32