pub struct JigsawBlock {
pub pos: [i32; 3],
pub orientation: JigsawOrientation,
pub name: Identifier,
pub target: Identifier,
pub pool: Identifier,
pub joint: JointType,
pub final_state: Identifier,
pub selection_priority: i32,
pub placement_priority: i32,
}Expand description
A jigsaw connector block extracted from a structure template.
Fields§
§pos: [i32; 3]Position relative to template origin.
orientation: JigsawOrientationOrientation (determines facing direction).
name: IdentifierName of this jigsaw connector.
target: IdentifierTarget connector name to attach to.
pool: IdentifierPool to draw target pieces from.
joint: JointTypeJoint type.
final_state: IdentifierBlock state to replace jigsaw with after placement.
selection_priority: i32Priority for selecting this jigsaw among siblings in a piece (higher = tried first).
placement_priority: i32Priority for BFS queue ordering when placing children (higher = processed first).
Trait Implementations§
Source§impl Clone for JigsawBlock
impl Clone for JigsawBlock
Source§fn clone(&self) -> JigsawBlock
fn clone(&self) -> JigsawBlock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for JigsawBlock
impl RefUnwindSafe for JigsawBlock
impl Send for JigsawBlock
impl Sync for JigsawBlock
impl Unpin for JigsawBlock
impl UnsafeUnpin for JigsawBlock
impl UnwindSafe for JigsawBlock
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