pub enum BodySlot {
Show 15 variants
Head,
Chest,
Forearms,
Legs,
Feet,
Cloak,
Back,
Waist,
Earrings,
Necklace,
Eyeglasses,
RingLeft1,
RingLeft2,
RingRight1,
RingRight2,
}Expand description
Body region a wearable item occupies — at most one item equipped per slot.
Armor, cloak, jewelry, and carriers (Back backpack, Waist belt). Hands
(mainhand / offhand) are separate combat sockets — not BodySlot.
Variants§
Head
Chest
Chest / torso armor. Serde alias body for older YAML / saves.
Forearms
Gauntlets / bracers / sleeves. Serde alias arms for older YAML / saves.
Legs
Feet
Cloak
Back
Waist
Earrings
Necklace
Eyeglasses
RingLeft1
Explicit rename: plain snake_case would be ring_left1.
RingLeft2
RingRight1
RingRight2
Implementations§
Trait Implementations§
impl Copy for BodySlot
Source§impl<'de> Deserialize<'de> for BodySlot
impl<'de> Deserialize<'de> for BodySlot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BodySlot
Source§impl Ord for BodySlot
impl Ord for BodySlot
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for BodySlot
impl PartialOrd for BodySlot
impl StructuralPartialEq for BodySlot
Auto Trait Implementations§
impl Freeze for BodySlot
impl RefUnwindSafe for BodySlot
impl Send for BodySlot
impl Sync for BodySlot
impl Unpin for BodySlot
impl UnsafeUnpin for BodySlot
impl UnwindSafe for BodySlot
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