pub struct CornerLayer {
pub of: BTreeSet<TerrainId>,
pub tiles: [Option<ImageRect>; 16],
}Expand description
Pictures drawn between tiles: each is one tile big and centred on a point where four tiles meet.
Fields§
§of: BTreeSet<TerrainId>The terrains that are in the layer.
tiles: [Option<ImageRect>; 16]The picture for each mix of the four tiles round a point being
in the layer. A mix with none draws nothing; mix 0 never has one.
Trait Implementations§
Source§impl Clone for CornerLayer
impl Clone for CornerLayer
Source§fn clone(&self) -> CornerLayer
fn clone(&self) -> CornerLayer
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 moreSource§impl Debug for CornerLayer
impl Debug for CornerLayer
impl Eq for CornerLayer
Source§impl PartialEq for CornerLayer
impl PartialEq for CornerLayer
impl StructuralPartialEq for CornerLayer
Auto Trait Implementations§
impl Freeze for CornerLayer
impl RefUnwindSafe for CornerLayer
impl Send for CornerLayer
impl Sync for CornerLayer
impl Unpin for CornerLayer
impl UnsafeUnpin for CornerLayer
impl UnwindSafe for CornerLayer
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