Struct screeps::objects::visual::RoomVisual
source · pub struct RoomVisual { /* private fields */ }
Implementations§
source§impl RoomVisual
impl RoomVisual
pub fn new(room_name: Option<RoomName>) -> RoomVisual
pub fn draw(&self, visual: &Visual)
pub fn draw_multi(&self, visuals: &[Visual])
pub fn circle(&self, x: f32, y: f32, style: Option<CircleStyle>)
pub fn line(&self, from: (f32, f32), to: (f32, f32), style: Option<LineStyle>)
pub fn rect( &self, x: f32, y: f32, width: f32, height: f32, style: Option<RectStyle> )
pub fn poly(&self, points: Vec<(f32, f32)>, style: Option<PolyStyle>)
pub fn text(&self, x: f32, y: f32, text: String, style: Option<TextStyle>)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for RoomVisual
impl Send for RoomVisual
impl Sync for RoomVisual
impl Unpin for RoomVisual
impl UnwindSafe for RoomVisual
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