pub struct TileTypeDef {
pub glyph: u16,
pub display_char: Option<char>,
pub move_cost: u32,
pub blocks_move: bool,
pub blocks_sight: bool,
}Expand description
Individual tile type definition: glyph, movement cost, blocking rules.
Fields§
§glyph: u16Tile ID (u16).
display_char: Option<char>Optional display character for rendering.
move_cost: u32Movement cost for pathfinding. 999 = impassable.
blocks_move: boolWhether this tile blocks entity movement.
blocks_sight: boolWhether this tile blocks line of sight.
Trait Implementations§
Source§impl Clone for TileTypeDef
impl Clone for TileTypeDef
Source§fn clone(&self) -> TileTypeDef
fn clone(&self) -> TileTypeDef
Returns a duplicate of the value. Read more
1.0.0 · 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 TileTypeDef
impl Debug for TileTypeDef
Source§impl<'de> Deserialize<'de> for TileTypeDef
impl<'de> Deserialize<'de> for TileTypeDef
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
Auto Trait Implementations§
impl Freeze for TileTypeDef
impl RefUnwindSafe for TileTypeDef
impl Send for TileTypeDef
impl Sync for TileTypeDef
impl Unpin for TileTypeDef
impl UnsafeUnpin for TileTypeDef
impl UnwindSafe for TileTypeDef
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