Skip to main content

create_piece

Function create_piece 

Source
fn create_piece(
    kind: FortressPieceKind,
    pieces: &[FortressPiece],
    rng: &mut LegacyRandom,
    foot: IVec3,
    dir: Direction,
    gen_depth: i32,
) -> Option<FortressPiece>
Expand description

Mirrors vanilla’s findAndCreateBridgePieceFactory + PIECE.createPiece.