pub struct Assembly {
pub id: AssemblyId,
pub rig: RigId,
pub at: Mark,
pub facing: Option<Facing>,
pub initial: Option<String>,
pub hitbox: Option<AssemblyHitbox>,
pub strikes: Option<AssemblyStrikes>,
}Expand description
A fixed thing that can be hit and hits back (spec-0082): an object built of
display entities standing at a Mark, moving through the clips of a
library rig, struck in melee through an optional
minecraft:interaction hitbox, and striking a player who stands in its
arming region.
It is not a fight class and never dies: no health, equipment, traversal,
health bar or kill credit. A hit count is an ordinary state datum a
strike-assembly trigger adds to, and what happens at a count is an effect
behind the ordinary gate.
Fields§
§id: AssemblyIdUnique assembly id (assembly/<kebab>).
rig: RigIdThe library rig (rig/<name>, resolved to rigs/<name>/rig.json
beside the prefab library) whose parts and clips this assembly is.
at: MarkWhere the rig’s origin stands: an anchor and an optional offset. The rig’s origin is the mark cell’s centre at its floor plane.
facing: Option<Facing>Which way the rig’s +z front faces (default south). Applied by the
compiler to every frame, so the emitted entities stand at yaw 0.
initial: Option<String>The clip playing from spawn. Absent: the parts stand in the rig’s rest
pose and no clip plays until a play-clip.
hitbox: Option<AssemblyHitbox>The minecraft:interaction a player strikes. Absent: the assembly
cannot be struck, and a strike-assembly on it is refused (DW0936).
strikes: Option<AssemblyStrikes>The blows it deals. Absent: it never strikes.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Assembly
impl<'de> Deserialize<'de> for Assembly
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>,
Source§impl JsonSchema for Assembly
impl JsonSchema for Assembly
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more