pub struct Focus {
pub label: String,
pub codex: Option<String>,
pub web: Option<String>,
pub behavior: Option<String>,
pub interact_label: Option<String>,
pub data: Value,
}Expand description
What the player is standing in front of (Codex pedestal and/or web signboard).
Fields§
§label: String§codex: Option<String>§web: Option<String>§behavior: Option<String>Id of the behavior module bound here — interact() will dispatch to it.
interact_label: Option<String>The creator-defined verb for a declarative interaction here (“Chop”, “Mine”), if any — drives the “[E] …” prompt.
data: ValueThe placement’s manifest data block — so a browser can act on a bound
placement (e.g. a buy stall’s item + price) even when the sandboxed
module layer is compiled out (graceful degradation).
Auto Trait Implementations§
impl Freeze for Focus
impl RefUnwindSafe for Focus
impl Send for Focus
impl Sync for Focus
impl Unpin for Focus
impl UnsafeUnpin for Focus
impl UnwindSafe for Focus
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