pub struct GlyphDisplay {
pub id: u16,
pub display_char: char,
pub name: String,
pub category: String,
pub layer: u8,
pub blocks_move: bool,
pub blocks_sight: bool,
pub move_cost: u32,
}Expand description
Display information for a single tile glyph.
Fields§
§id: u16Tile ID (matches the u16 constants above for built-in glyphs).
display_char: charUnicode character used for rendering.
name: StringHuman-readable name.
category: StringCategory for UI grouping (ground, structure, object, effect, cosmic, world, prefab, entity).
layer: u8Topology layer (0=Universe, 9=Point).
blocks_move: boolWhether this tile blocks movement (display-side mirror of engine rules).
blocks_sight: boolWhether this tile blocks line of sight.
move_cost: u32Movement cost for pathfinding (999 = impassable).
Implementations§
Trait Implementations§
Source§impl Clone for GlyphDisplay
impl Clone for GlyphDisplay
Source§fn clone(&self) -> GlyphDisplay
fn clone(&self) -> GlyphDisplay
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 GlyphDisplay
impl Debug for GlyphDisplay
Source§impl<'de> Deserialize<'de> for GlyphDisplay
impl<'de> Deserialize<'de> for GlyphDisplay
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 GlyphDisplay
impl RefUnwindSafe for GlyphDisplay
impl Send for GlyphDisplay
impl Sync for GlyphDisplay
impl Unpin for GlyphDisplay
impl UnsafeUnpin for GlyphDisplay
impl UnwindSafe for GlyphDisplay
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