pub struct InteractableNav {
pub position: Vec3,
pub label: String,
pub codex: Option<String>,
pub web: Option<String>,
pub name: String,
pub behavior: Option<String>,
pub interaction: Option<Interaction>,
pub hits_done: u32,
pub data: Value,
}Expand description
An inspectable placement (a Codex pedestal, a web signboard, or a placement with a bound behavior module).
Fields§
§position: Vec3§label: String§codex: Option<String>§web: Option<String>§name: StringThe placement’s manifest name — the identity a behavior receives.
behavior: Option<String>Id of the behavior module bound to this placement, if any.
interaction: Option<Interaction>A codeless declarative interaction (label + effects), if the placement declared one. The simple path — no WASM behavior needed.
hits_done: u32Progress toward completing the declarative interaction (a tree takes a few
chops). Resets to 0 once interaction.hits is reached and effects fire.
data: ValueThe placement’s manifest data block, passed through to its behavior.
Trait Implementations§
Auto Trait Implementations§
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