pub struct AssemblyStrikes {
pub while_in: StealthZone,
pub pattern: Vec<StrikeStep>,
pub aim: Option<StrikeAim>,
}Expand description
An assembly’s strike pattern (spec-0082 §3.2).
The pattern runs, repeating from its first step, on every tick on which
some player’s body is in while_in, and stops at the end of the step in
flight when nobody is.
Fields§
§while_in: StealthZoneThe arming region: an anchor-centred box. Every landing box lies inside
it (DW0938), so a player who never entered it is never struck.
pattern: Vec<StrikeStep>The steps, in order.
aim: Option<StrikeAim>Aim (spec-0082 §5.7). Absent: every blow lands where its on_land
boxes say. Present: at the start of every wind-up the assembly turns to
the one of its declared facings nearest the bearing of the nearest
player in while_in, and every damage-players box in on_land turns
with it.
Trait Implementations§
Source§impl Clone for AssemblyStrikes
impl Clone for AssemblyStrikes
Source§impl Debug for AssemblyStrikes
impl Debug for AssemblyStrikes
Source§impl<'de> Deserialize<'de> for AssemblyStrikes
impl<'de> Deserialize<'de> for AssemblyStrikes
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 AssemblyStrikes
impl JsonSchema for AssemblyStrikes
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 AssemblyStrikes
impl PartialEq for AssemblyStrikes
Source§impl Serialize for AssemblyStrikes
impl Serialize for AssemblyStrikes
impl StructuralPartialEq for AssemblyStrikes
Auto Trait Implementations§
impl Freeze for AssemblyStrikes
impl RefUnwindSafe for AssemblyStrikes
impl Send for AssemblyStrikes
impl Sync for AssemblyStrikes
impl Unpin for AssemblyStrikes
impl UnsafeUnpin for AssemblyStrikes
impl UnwindSafe for AssemblyStrikes
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