pub struct TrapDisarm {
pub via: AnchorId,
pub sets_flag: FlagId,
}Expand description
A Trap’s disarm affordance (DSL v0.6, spec-0011): the player acts on the
via anchor (an interaction the compiler emits, reusing the v0.4 interaction
entity) to turn the trap off — setting sets_flag and emptying the dispenser —
before the trap cell is forced. Discharges the DW0342 obligation when the
affordance is reachable ahead of the trap without crossing it.
Fields§
§via: AnchorIdThe anchor the player interacts with to disarm.
sets_flag: FlagIdThe flag set when the trap is disarmed (a new flag this trap produces; other
objectives/triggers may read it via requires_flags).
Trait Implementations§
Source§impl Clone for TrapDisarm
impl Clone for TrapDisarm
Source§impl Debug for TrapDisarm
impl Debug for TrapDisarm
Source§impl<'de> Deserialize<'de> for TrapDisarm
impl<'de> Deserialize<'de> for TrapDisarm
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 JsonSchema for TrapDisarm
impl JsonSchema for TrapDisarm
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for TrapDisarm
impl PartialEq for TrapDisarm
Source§impl Serialize for TrapDisarm
impl Serialize for TrapDisarm
impl StructuralPartialEq for TrapDisarm
Auto Trait Implementations§
impl Freeze for TrapDisarm
impl RefUnwindSafe for TrapDisarm
impl Send for TrapDisarm
impl Sync for TrapDisarm
impl Unpin for TrapDisarm
impl UnsafeUnpin for TrapDisarm
impl UnwindSafe for TrapDisarm
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