Enum screeps::objects::MapVisualShape
source · pub enum MapVisualShape {
Circle(MapCircleData),
Line(MapLineData),
Rect(MapRectData),
Poly(MapPolyData),
Text(MapTextData),
}
Variants§
Implementations§
source§impl MapVisualShape
impl MapVisualShape
pub fn circle(center: Position, style: Option<CircleStyle>) -> MapVisualShape
pub fn line( from: Position, to: Position, style: Option<LineStyle> ) -> MapVisualShape
pub fn rect( top_left: Position, width: u32, height: u32, style: Option<RectStyle> ) -> MapVisualShape
pub fn poly( points: Vec<MapPolyPoint>, style: Option<PolyStyle> ) -> MapVisualShape
pub fn text( pos: Position, text: String, style: Option<TextStyle> ) -> MapVisualShape
Trait Implementations§
source§impl Clone for MapVisualShape
impl Clone for MapVisualShape
source§fn clone(&self) -> MapVisualShape
fn clone(&self) -> MapVisualShape
Returns a copy 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 more