RGBA Color
Fields:
r:float64— Red componentg:float64— Green componentb:float64— Blue componenta:float64— Alpha (opacity) component
Point + color
Fields:
position:Model::Vec2— Positioncolor:Color— Color
Data for debug rendering
One of:
-
PlacedText— TextFields:
position:Model::Vec2— Positiontext:string— Textalignment:Model::Vec2— Alignment, separate for x and y. From 0 to 1. 0.5 - center alignmentsize:float64— Sizecolor:Color— Color
-
Circle— CircleFields:
position:Model::Vec2— Position of the centerradius:float64— Radiuscolor:Color— Color
-
GradientCircle— Circle with gradient fillFields:
position:Model::Vec2— Position of the centerradius:float64— Radiusinner_color:Color— Color of the centerouter_color:Color— Color of the edge
-
Ring— RingFields:
position:Model::Vec2— Position of the centerradius:float64— Radiuswidth:float64— Widthcolor:Color— Color
-
Pie— Sector of a circleFields:
position:Model::Vec2— Position of the centerradius:float64— Radiusstart_angle:float64— Start angleend_angle:float64— End anglecolor:Color— Color
-
Arc— ArcFields:
position:Model::Vec2— Position of the centerradius:float64— Radiuswidth:float64— Widthstart_angle:float64— Start angleend_angle:float64— End anglecolor:Color— Color
-
Rect— RectancleFields:
bottom_left:Model::Vec2— Bottom left positionsize:Model::Vec2— Sizecolor:Color— Color
-
Polygon— Polygon (convex)Fields:
vertices:[Model::Vec2]— Positions of vertices in ordercolor:Color— Color
-
GradientPolygon— Polygon with gradient fillFields:
vertices:[ColoredVertex]— List of vertices in order
-
Segment— SegmentFields:
first_end:Model::Vec2— Position of the first endsecond_end:Model::Vec2— Position of the second endwidth:float64— Widthcolor:Color— Color
-
GradientSegment— Segment with gradient fillFields:
first_end:Model::Vec2— Position of the first endfirst_color:Color— Color of the first endsecond_end:Model::Vec2— Position of the second endsecond_color:Color— Color of the second endwidth:float64— Width
-
PolyLine— Poly lineFields:
vertices:[Model::Vec2]— List of points in orderwidth:float64— Widthcolor:Color— Color
-
GradientPolyLine— Poly line with gradient fillFields:
vertices:[ColoredVertex]— List of points and colors in orderwidth:float64— Width
Debug commands that can be sent while debugging with the app
One of:
-
Add— Add debug data to current tickFields:
debug_data:DebugData— Data to add
-
Clear— Clear current tick's debug dataNo fields
-
SetAutoFlush— Enable/disable auto performing of commandsFields:
enable:boolean— Enable/disable autoflush
-
Flush— Perform all previously sent commandsNo fields
Camera state
Fields:
center:Model::Vec2— Centerrotation:float64— Rotationattack:float64— Attack anglefov:float64— Vertical field of view
Renderer's state
Fields:
pressed_keys:[string]— Pressed keyscursor_world_position:Model::Vec2— Cursor's position in game coordinateslocked_unit:Option<int32>— Id of unit which is followed by the camera, or Nonecamera:Camera— Current camera state