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

shows debug text in the game instance

Fields of DebugText

text to display

target in screen or world space

if the target is None, then text appears at top-left of screen.

color of the text

shows a debug line in the game from p1 to p2

Fields of DebugLine

starting point of the line

ending point of the line

color of the line

shows a debug box in the game defined by corners min and max

Fields of DebugBox

minimum corner of the box

maximum corner of the box

color of the box

shows a debug sphere in the game

Fields of DebugSphere

center of the sphere

radius of the sphere

color of the sphere

Trait Implementations

impl Debug for DebugCommand
[src]

[src]

Formats the value using the given formatter.

impl Clone for DebugCommand
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more