Enum veloren_common::rtsim::NpcAction
source · pub enum NpcAction {
Say(Option<Actor>, Content),
Attack(Actor),
}
Expand description
Represents event-like actions that rtsim NPCs can perform to interact with the world
Variants§
Say(Option<Actor>, Content)
Speak the given message, with an optional target for that speech.
Attack(Actor)
Attack the given target
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for NpcAction
impl Send for NpcAction
impl Sync for NpcAction
impl Unpin for NpcAction
impl UnwindSafe for NpcAction
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