pub struct Tile {
pub name: String,
pub mesh: MeshId,
pub offset: Transform,
pub material: Option<MaterialId>,
pub motion: Motion,
}Expand description
One variant inside a tileset.
Fields§
§name: String§mesh: MeshId§offset: TransformExtra transform applied after the cell placement (alignment, rotation …).
material: Option<MaterialId>Material used by every cell of this tile (falls back to the mesh’s own
material handling when None).
motion: MotionProcedural motion for every cell of this tile (viewer draw time).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tile
impl<'de> Deserialize<'de> for Tile
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 Tile
Auto Trait Implementations§
impl Freeze for Tile
impl RefUnwindSafe for Tile
impl Send for Tile
impl Sync for Tile
impl Unpin for Tile
impl UnsafeUnpin for Tile
impl UnwindSafe for Tile
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