pub enum Pickup {
Key(usize),
Health {
amount: i32,
max: i32,
},
Armor {
slot: usize,
amount: i32,
},
Weapon {
slot: usize,
ammo: i32,
},
Ammo {
kind: usize,
amount: i32,
},
Inventory(InvItem),
Timed(Timed, f64),
Powerup(&'static str),
}Variants§
Key(usize)
Health
Armor
Weapon
Ammo
Inventory(InvItem)
Timed(Timed, f64)
Powerup(&'static str)
Treasure and items without a gameplay effect yet.
Trait Implementations§
impl Copy for Pickup
impl StructuralPartialEq for Pickup
Auto Trait Implementations§
impl Freeze for Pickup
impl RefUnwindSafe for Pickup
impl Send for Pickup
impl Sync for Pickup
impl Unpin for Pickup
impl UnsafeUnpin for Pickup
impl UnwindSafe for Pickup
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more