pub struct WangSet {
pub corner_colors: Vec<WangColor>,
pub edge_colors: Vec<WangColor>,
pub name: String,
pub tile: u32,
pub wang_tiles: Vec<WangTile>,
}
Expand description
Data set for Wang
tiles
Wang tiles are similar in concept to Terrains. They are, however, more focused on filling larger areas without repetition. One defines the edge and corner colors of tiles in a tileset. This information can then be used when filling, or brushing to allow for smooth, non-repetitive transitions between tiles. In most cases this tiling is random, and based on color probability.
Fields§
§corner_colors: Vec<WangColor>
§edge_colors: Vec<WangColor>
§name: String
§tile: u32
Local ID of tile representing the Wang set
wang_tiles: Vec<WangTile>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WangSet
impl<'de> Deserialize<'de> for WangSet
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
impl StructuralPartialEq for WangSet
Auto Trait Implementations§
impl Freeze for WangSet
impl RefUnwindSafe for WangSet
impl Send for WangSet
impl Sync for WangSet
impl Unpin for WangSet
impl UnwindSafe for WangSet
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