Struct Minimap
pub struct Minimap {
pub corner: Corner,
pub size: f32,
pub blocks_per_pixel: f32,
pub rotate: bool,
pub round: bool,
}Expand description
The minimap a native mod shows (native_minimap), drawn by Horizon’s
minimap: its corner, its side in GUI pixels, blocks per map pixel,
turning with the player or north up, round or square.
Fields§
§corner: CornerThe screen corner the map sits in.
size: f32The map’s side length in GUI pixels.
blocks_per_pixel: f32How many blocks one pixel covers; larger zooms out.
rotate: boolTurn the map with the player’s facing instead of keeping north up.
round: boolDraw the map as a circle instead of a square.
Trait Implementations§
impl Copy for Minimap
impl StructuralPartialEq for Minimap
Auto Trait Implementations§
impl Freeze for Minimap
impl RefUnwindSafe for Minimap
impl Send for Minimap
impl Sync for Minimap
impl Unpin for Minimap
impl UnsafeUnpin for Minimap
impl UnwindSafe for Minimap
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