Enum sc2::DebugCommand
[−]
[src]
pub enum DebugCommand { DebugText { text: String, target: Option<DebugTextTarget>, color: Color, }, DebugLine { p1: Point3, p2: Point3, color: Color, }, DebugBox { min: Point3, max: Point3, color: Color, }, DebugSphere { center: Point3, radius: f32, color: Color, }, }
a debug command for the game
Variants
DebugText
shows debug text in the game instance
Fields of DebugText
text: String | text to display |
target: Option<DebugTextTarget> | target in screen or world space if the target is None, then text appears at top-left of screen. |
color: Color | color of the text |
DebugLine
shows a debug line in the game from p1 to p2
Fields of DebugLine
p1: Point3 | starting point of the line |
p2: Point3 | ending point of the line |
color: Color | color of the line |
DebugBox
shows a debug box in the game defined by corners min and max
Fields of DebugBox
min: Point3 | minimum corner of the box |
max: Point3 | maximum corner of the box |
color: Color | color of the box |
DebugSphere
shows a debug sphere in the game
Fields of DebugSphere
center: Point3 | center of the sphere |
radius: f32 | radius of the sphere |
color: Color | color of the sphere |
Trait Implementations
impl Debug for DebugCommand
[src]
impl Clone for DebugCommand
[src]
fn clone(&self) -> DebugCommand
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more