probes!!!! (not anal)
This commit is contained in:
@@ -20,6 +20,7 @@ type Robot struct {
|
||||
LastFired int `json:"-"`
|
||||
Collision bool `json:"collision"`
|
||||
Hit bool `json:"hit"`
|
||||
Probe *v.Point2d `json:"probe"`
|
||||
}
|
||||
|
||||
// This is the subset of data we send to players about robots
|
||||
@@ -158,6 +159,7 @@ func (s StatsRequest) Valid() bool {
|
||||
type Instruction struct {
|
||||
MoveTo *v.Point2d `json:"move_to,omitempty"`
|
||||
FireAt *v.Point2d `json:"fire_at,omitempty"`
|
||||
Probe *v.Point2d `json:"probe,omitempty"`
|
||||
TargetSpeed *float32 `json:"target_speed,omitempty"`
|
||||
Repair *bool `json:"repair,omitempty"`
|
||||
Stats Stats `json:"stats"`
|
||||
|
||||
Reference in New Issue
Block a user