pub enum InteractionResult {
NoTarget,
Talk {
npc_index: u8,
text_id: u8,
},
AlreadyDefeated {
npc_index: u8,
text_id: u8,
},
}Expand description
Result of an NPC interaction attempt (pressing A near an NPC).
Game-specific interaction types (e.g., trainer battle, item pickup) are handled by the consuming crate using additional NPC metadata stored alongside the runtime state.
Variants§
NoTarget
No NPC in front of the player.
Talk
Regular NPC dialog — show text_id from the map’s text table.
AlreadyDefeated
NPC already defeated/collected — shows post-defeat dialog.
Trait Implementations§
Source§impl Clone for InteractionResult
impl Clone for InteractionResult
Source§fn clone(&self) -> InteractionResult
fn clone(&self) -> InteractionResult
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 moreSource§impl Debug for InteractionResult
impl Debug for InteractionResult
impl Eq for InteractionResult
Source§impl PartialEq for InteractionResult
impl PartialEq for InteractionResult
impl StructuralPartialEq for InteractionResult
Auto Trait Implementations§
impl Freeze for InteractionResult
impl RefUnwindSafe for InteractionResult
impl Send for InteractionResult
impl Sync for InteractionResult
impl Unpin for InteractionResult
impl UnsafeUnpin for InteractionResult
impl UnwindSafe for InteractionResult
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