pub enum UseWorldKind {
Player,
Npc,
QuestBoard,
ExitDoor,
EnterDoor,
Well,
Water,
Loot,
ChestPickup,
Harvest,
}Expand description
What kind of world-use target this is (drives tint + verb).
Variants§
Implementations§
Source§impl UseWorldKind
impl UseWorldKind
pub fn verb(self) -> &'static str
Sourcepub fn interact_priority(self) -> u8
pub fn interact_priority(self) -> u8
Sort key within the same distance band (lower = preferred), matching interact priority.
Sourcepub fn cascade_stage(self) -> u8
pub fn cascade_stage(self) -> u8
Cascade stage for use_nearest (0 = interact layer, then loot, chest, harvest).
Trait Implementations§
Source§impl Clone for UseWorldKind
impl Clone for UseWorldKind
Source§fn clone(&self) -> UseWorldKind
fn clone(&self) -> UseWorldKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UseWorldKind
Source§impl Debug for UseWorldKind
impl Debug for UseWorldKind
impl Eq for UseWorldKind
Source§impl Hash for UseWorldKind
impl Hash for UseWorldKind
Source§impl PartialEq for UseWorldKind
impl PartialEq for UseWorldKind
impl StructuralPartialEq for UseWorldKind
Auto Trait Implementations§
impl Freeze for UseWorldKind
impl RefUnwindSafe for UseWorldKind
impl Send for UseWorldKind
impl Sync for UseWorldKind
impl Unpin for UseWorldKind
impl UnsafeUnpin for UseWorldKind
impl UnwindSafe for UseWorldKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.