pub enum InteractionEffect {
GiveItem {
item: StructuredId,
count: u32,
},
Despawn,
Message(String),
Effect(String),
Navigate(String),
}Expand description
One outcome of a completed Interaction. Deliberately small + declarative;
serialized snake_case (unit variants as bare strings) so manifests read clean.
Variants§
GiveItem
Put an item in the visitor’s inventory.
Despawn
Remove the interacted object from the world.
Message(String)
Show the visitor a transient message.
Effect(String)
Play a named visual/audio effect at the object (an Asset id or built-in).
Veilwalk to a Locator — any object can be a doorway. This is how text becomes teleportable: a link-stone under a paragraph carries the linked article’s address.
Trait Implementations§
Source§impl Clone for InteractionEffect
impl Clone for InteractionEffect
Source§impl Debug for InteractionEffect
impl Debug for InteractionEffect
Source§impl<'de> Deserialize<'de> for InteractionEffect
impl<'de> Deserialize<'de> for InteractionEffect
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
Source§impl PartialEq for InteractionEffect
impl PartialEq for InteractionEffect
Source§impl Serialize for InteractionEffect
impl Serialize for InteractionEffect
impl StructuralPartialEq for InteractionEffect
Auto Trait Implementations§
impl Freeze for InteractionEffect
impl RefUnwindSafe for InteractionEffect
impl Send for InteractionEffect
impl Sync for InteractionEffect
impl Unpin for InteractionEffect
impl UnsafeUnpin for InteractionEffect
impl UnwindSafe for InteractionEffect
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