tiled_wfc 0.4.0

A n-dimensional tiled wave function collapse library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::AxisPair;

pub trait Tile<const D: usize>
where
    <Self as Tile<D>>::Socket: PartialEq,
{
    type Socket;

    fn sockets(&self) -> [AxisPair<<Self as Tile<D>>::Socket>; D];
}

pub trait Weighted {
    fn weight(&self) -> u32;
}