pub struct Terrain {Show 15 fields
pub enabled: bool,
pub slp_id: Option<GraphicID>,
pub sound_id: Option<SoundID>,
pub minimap_color_high: u8,
pub minimap_color_medium: u8,
pub minimap_color_low: u8,
pub minimap_color_cliff_lt: u8,
pub minimap_color_cliff_rt: u8,
pub passable_terrain_id: Option<u8>,
pub impassable_terrain_id: Option<u8>,
pub animation: TerrainAnimation,
pub elevation_sprites: Vec<TerrainSpriteFrame>,
pub terrain_id_to_draw: Option<TerrainID>,
pub borders: Vec<i16>,
pub terrain_objects: Vec<TerrainObject>,
/* private fields */
}Fields§
§enabled: boolIs this terrain enabled?
slp_id: Option<GraphicID>SLP graphic ID for this terrain.
sound_id: Option<SoundID>The Sound ID for this terrain.
minimap_color_high: u8The colour tiles with this terrain will have on the minimap when on a downhill slope.
minimap_color_medium: u8The colour tiles with this terrain will have on the minimap when on a flat tile.
minimap_color_low: u8The colour tiles with this terrain will have on the minimap when on an uphill slope.
minimap_color_cliff_lt: u8The colour tiles with this terrain will have on the minimap when next to a cliff.
minimap_color_cliff_rt: u8The colour tiles with this terrain will have on the minimap when next to a cliff.
passable_terrain_id: Option<u8>§impassable_terrain_id: Option<u8>§animation: TerrainAnimation§elevation_sprites: Vec<TerrainSpriteFrame>§terrain_id_to_draw: Option<TerrainID>§borders: Vec<i16>§terrain_objects: Vec<TerrainObject>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Terrain
impl RefUnwindSafe for Terrain
impl Send for Terrain
impl Sync for Terrain
impl Unpin for Terrain
impl UnwindSafe for Terrain
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