Remove move and recharge commands in favor of toggle command for the sails
This commit is contained in:
parent
89123394cd
commit
6c75f07aff
8 changed files with 169 additions and 280 deletions
|
@ -83,10 +83,6 @@ func (s *Server) Status(ctx context.Context, req *roveapi.StatusRequest) (respon
|
||||||
Command: i.Command,
|
Command: i.Command,
|
||||||
}
|
}
|
||||||
switch i.Command {
|
switch i.Command {
|
||||||
case roveapi.CommandType_move:
|
|
||||||
c.Data = &roveapi.Command_Bearing{
|
|
||||||
Bearing: i.Bearing,
|
|
||||||
}
|
|
||||||
case roveapi.CommandType_broadcast:
|
case roveapi.CommandType_broadcast:
|
||||||
c.Data = &roveapi.Command_Message{
|
c.Data = &roveapi.Command_Message{
|
||||||
Message: i.Message,
|
Message: i.Message,
|
||||||
|
@ -99,10 +95,6 @@ func (s *Server) Status(ctx context.Context, req *roveapi.StatusRequest) (respon
|
||||||
Command: q.Command,
|
Command: q.Command,
|
||||||
}
|
}
|
||||||
switch q.Command {
|
switch q.Command {
|
||||||
case roveapi.CommandType_move:
|
|
||||||
c.Data = &roveapi.Command_Bearing{
|
|
||||||
Bearing: q.Bearing,
|
|
||||||
}
|
|
||||||
case roveapi.CommandType_broadcast:
|
case roveapi.CommandType_broadcast:
|
||||||
c.Data = &roveapi.Command_Message{
|
c.Data = &roveapi.Command_Message{
|
||||||
Message: q.Message,
|
Message: q.Message,
|
||||||
|
@ -193,8 +185,6 @@ func (s *Server) Command(ctx context.Context, req *roveapi.CommandRequest) (*rov
|
||||||
Command: c.Command,
|
Command: c.Command,
|
||||||
}
|
}
|
||||||
switch c.Command {
|
switch c.Command {
|
||||||
case roveapi.CommandType_move:
|
|
||||||
n.Bearing = c.GetBearing()
|
|
||||||
case roveapi.CommandType_broadcast:
|
case roveapi.CommandType_broadcast:
|
||||||
n.Message = c.GetMessage()
|
n.Message = c.GetMessage()
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,10 +33,9 @@ func printUsage() {
|
||||||
fmt.Fprintln(os.Stderr, "\thelp outputs this usage information")
|
fmt.Fprintln(os.Stderr, "\thelp outputs this usage information")
|
||||||
fmt.Fprintln(os.Stderr, "\tversion outputs version info")
|
fmt.Fprintln(os.Stderr, "\tversion outputs version info")
|
||||||
fmt.Fprintln(os.Stderr, "\nRover commands:")
|
fmt.Fprintln(os.Stderr, "\nRover commands:")
|
||||||
fmt.Fprintln(os.Stderr, "\tmove BEARING moves the rover in the chosen direction")
|
fmt.Fprintln(os.Stderr, "\ttoggle toggles the sails, either catching the wind, or charging from the sun")
|
||||||
fmt.Fprintln(os.Stderr, "\tstash stores the object at the rover location in the inventory")
|
fmt.Fprintln(os.Stderr, "\tstash stores the object at the rover location in the inventory")
|
||||||
fmt.Fprintln(os.Stderr, "\trepair uses an inventory object to repair the rover")
|
fmt.Fprintln(os.Stderr, "\trepair uses an inventory object to repair the rover")
|
||||||
fmt.Fprintln(os.Stderr, "\trecharge wait a tick to recharge the rover")
|
|
||||||
fmt.Fprintln(os.Stderr, "\tbroadcast MSG broadcast a simple ASCII triplet to nearby rovers")
|
fmt.Fprintln(os.Stderr, "\tbroadcast MSG broadcast a simple ASCII triplet to nearby rovers")
|
||||||
fmt.Fprintln(os.Stderr, "\nEnvironment")
|
fmt.Fprintln(os.Stderr, "\nEnvironment")
|
||||||
fmt.Fprintln(os.Stderr, "\tROVE_USER_DATA path to user data, defaults to "+defaultDataPath)
|
fmt.Fprintln(os.Stderr, "\tROVE_USER_DATA path to user data, defaults to "+defaultDataPath)
|
||||||
|
@ -225,21 +224,6 @@ func InnerMain(command string, args ...string) error {
|
||||||
var commands []*roveapi.Command
|
var commands []*roveapi.Command
|
||||||
for i := 0; i < len(args); i++ {
|
for i := 0; i < len(args); i++ {
|
||||||
switch args[i] {
|
switch args[i] {
|
||||||
case "move":
|
|
||||||
i++
|
|
||||||
if len(args) == i {
|
|
||||||
return fmt.Errorf("move command must be passed bearing")
|
|
||||||
}
|
|
||||||
var b roveapi.Bearing
|
|
||||||
if b = BearingFromString(args[i]); b == roveapi.Bearing_BearingUnknown {
|
|
||||||
return fmt.Errorf("unrecognised bearing: %s", args[i])
|
|
||||||
}
|
|
||||||
commands = append(commands,
|
|
||||||
&roveapi.Command{
|
|
||||||
Command: roveapi.CommandType_move,
|
|
||||||
Data: &roveapi.Command_Bearing{Bearing: b},
|
|
||||||
},
|
|
||||||
)
|
|
||||||
case "broadcast":
|
case "broadcast":
|
||||||
i++
|
i++
|
||||||
if len(args) == i {
|
if len(args) == i {
|
||||||
|
|
|
@ -50,12 +50,12 @@ func Test_InnerMain(t *testing.T) {
|
||||||
assert.Error(t, InnerMain("command"))
|
assert.Error(t, InnerMain("command"))
|
||||||
|
|
||||||
// Give it commands
|
// Give it commands
|
||||||
assert.NoError(t, InnerMain("command", "move", "N"))
|
assert.NoError(t, InnerMain("command", "toggle"))
|
||||||
assert.NoError(t, InnerMain("command", "stash"))
|
assert.NoError(t, InnerMain("command", "stash"))
|
||||||
assert.NoError(t, InnerMain("command", "repair"))
|
assert.NoError(t, InnerMain("command", "repair"))
|
||||||
assert.NoError(t, InnerMain("command", "broadcast", "abc"))
|
assert.NoError(t, InnerMain("command", "broadcast", "abc"))
|
||||||
|
|
||||||
// Give it malformed commands
|
// Give it malformed commands
|
||||||
assert.Error(t, InnerMain("command", "move", "stash"))
|
assert.Error(t, InnerMain("command", "unknown"))
|
||||||
assert.Error(t, InnerMain("command", "broadcast"))
|
assert.Error(t, InnerMain("command", "broadcast"))
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,9 +6,6 @@ import "github.com/mdiluz/rove/proto/roveapi"
|
||||||
type Command struct {
|
type Command struct {
|
||||||
Command roveapi.CommandType `json:"command"`
|
Command roveapi.CommandType `json:"command"`
|
||||||
|
|
||||||
// Used in the move command
|
|
||||||
Bearing roveapi.Bearing `json:"bearing,omitempty"`
|
|
||||||
|
|
||||||
// Used in the broadcast command
|
// Used in the broadcast command
|
||||||
Message []byte `json:"message,omitempty"`
|
Message []byte `json:"message,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,69 +2,28 @@ package rove
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mdiluz/rove/pkg/maths"
|
|
||||||
"github.com/mdiluz/rove/proto/roveapi"
|
|
||||||
"github.com/stretchr/testify/assert"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCommand_Move(t *testing.T) {
|
func TestCommand_Raise(t *testing.T) {
|
||||||
world := NewWorld(8)
|
// TODO: Test the raise command
|
||||||
a, err := world.SpawnRover()
|
|
||||||
assert.NoError(t, err)
|
|
||||||
pos := maths.Vector{
|
|
||||||
X: 1.0,
|
|
||||||
Y: 2.0,
|
|
||||||
}
|
|
||||||
|
|
||||||
err = world.WarpRover(a, pos)
|
|
||||||
assert.NoError(t, err, "Failed to set position for rover")
|
|
||||||
|
|
||||||
// Try the move command
|
|
||||||
moveCommand := Command{Command: roveapi.CommandType_move, Bearing: roveapi.Bearing_North}
|
|
||||||
assert.NoError(t, world.Enqueue(a, moveCommand), "Failed to execute move command")
|
|
||||||
|
|
||||||
// Tick the world
|
|
||||||
world.EnqueueAllIncoming()
|
|
||||||
world.ExecuteCommandQueues()
|
|
||||||
|
|
||||||
newPos, err := world.RoverPosition(a)
|
|
||||||
assert.NoError(t, err, "Failed to set position for rover")
|
|
||||||
pos.Add(maths.Vector{X: 0.0, Y: 1})
|
|
||||||
assert.Equal(t, pos, newPos, "Failed to correctly set position for rover")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestCommand_Recharge(t *testing.T) {
|
func TestCommand_Lower(t *testing.T) {
|
||||||
world := NewWorld(8)
|
// TODO: Test the lower command
|
||||||
a, err := world.SpawnRover()
|
}
|
||||||
assert.NoError(t, err)
|
|
||||||
pos := maths.Vector{
|
func TestCommand_Stash(t *testing.T) {
|
||||||
X: 1.0,
|
// TODO: Test the stash command
|
||||||
Y: 2.0,
|
}
|
||||||
}
|
|
||||||
|
func TestCommand_Repair(t *testing.T) {
|
||||||
err = world.WarpRover(a, pos)
|
// TODO: Test the repair command
|
||||||
assert.NoError(t, err, "Failed to set position for rover")
|
}
|
||||||
|
|
||||||
// Move to use up some charge
|
func TestCommand_Broadcast(t *testing.T) {
|
||||||
moveCommand := Command{Command: roveapi.CommandType_move, Bearing: roveapi.Bearing_North}
|
// TODO: Test the stash command
|
||||||
assert.NoError(t, world.Enqueue(a, moveCommand), "Failed to queue move command")
|
}
|
||||||
|
|
||||||
// Tick the world
|
func TestCommand_Invalid(t *testing.T) {
|
||||||
world.EnqueueAllIncoming()
|
// TODO: Test the invalid command
|
||||||
world.ExecuteCommandQueues()
|
|
||||||
|
|
||||||
rover, _ := world.GetRover(a)
|
|
||||||
assert.Equal(t, rover.MaximumCharge-1, rover.Charge)
|
|
||||||
|
|
||||||
chargeCommand := Command{Command: roveapi.CommandType_recharge}
|
|
||||||
assert.NoError(t, world.Enqueue(a, chargeCommand), "Failed to queue recharge command")
|
|
||||||
|
|
||||||
// Tick the world
|
|
||||||
world.EnqueueAllIncoming()
|
|
||||||
world.ExecuteCommandQueues()
|
|
||||||
|
|
||||||
rover, _ = world.GetRover(a)
|
|
||||||
assert.Equal(t, rover.MaximumCharge, rover.Charge)
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -380,10 +380,6 @@ func (w *World) Enqueue(rover string, commands ...Command) error {
|
||||||
// First validate the commands
|
// First validate the commands
|
||||||
for _, c := range commands {
|
for _, c := range commands {
|
||||||
switch c.Command {
|
switch c.Command {
|
||||||
case roveapi.CommandType_move:
|
|
||||||
if c.Bearing == roveapi.Bearing_BearingUnknown {
|
|
||||||
return fmt.Errorf("bearing must be valid")
|
|
||||||
}
|
|
||||||
case roveapi.CommandType_broadcast:
|
case roveapi.CommandType_broadcast:
|
||||||
if len(c.Message) > 3 {
|
if len(c.Message) > 3 {
|
||||||
return fmt.Errorf("too many characters in message (limit 3): %d", len(c.Message))
|
return fmt.Errorf("too many characters in message (limit 3): %d", len(c.Message))
|
||||||
|
@ -393,9 +389,9 @@ func (w *World) Enqueue(rover string, commands ...Command) error {
|
||||||
return fmt.Errorf("invalid message character: %c", b)
|
return fmt.Errorf("invalid message character: %c", b)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
case roveapi.CommandType_toggle:
|
||||||
case roveapi.CommandType_stash:
|
case roveapi.CommandType_stash:
|
||||||
case roveapi.CommandType_repair:
|
case roveapi.CommandType_repair:
|
||||||
case roveapi.CommandType_recharge:
|
|
||||||
// Nothing to verify
|
// Nothing to verify
|
||||||
default:
|
default:
|
||||||
return fmt.Errorf("unknown command: %s", c.Command)
|
return fmt.Errorf("unknown command: %s", c.Command)
|
||||||
|
@ -459,10 +455,8 @@ func (w *World) ExecuteCommand(c *Command, rover string) (err error) {
|
||||||
log.Printf("Executing command: %+v for %s\n", *c, rover)
|
log.Printf("Executing command: %+v for %s\n", *c, rover)
|
||||||
|
|
||||||
switch c.Command {
|
switch c.Command {
|
||||||
case roveapi.CommandType_move:
|
case roveapi.CommandType_toggle:
|
||||||
if _, err := w.MoveRover(rover, c.Bearing); err != nil {
|
// TODO: Toggle the sails
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
case roveapi.CommandType_stash:
|
case roveapi.CommandType_stash:
|
||||||
if _, err := w.RoverStash(rover); err != nil {
|
if _, err := w.RoverStash(rover); err != nil {
|
||||||
|
@ -481,15 +475,12 @@ func (w *World) ExecuteCommand(c *Command, rover string) (err error) {
|
||||||
r.AddLogEntryf("repaired self to %d", r.Integrity)
|
r.AddLogEntryf("repaired self to %d", r.Integrity)
|
||||||
w.Rovers[rover] = r
|
w.Rovers[rover] = r
|
||||||
}
|
}
|
||||||
case roveapi.CommandType_recharge:
|
|
||||||
_, err := w.RoverRecharge(rover)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
case roveapi.CommandType_broadcast:
|
case roveapi.CommandType_broadcast:
|
||||||
if err := w.RoverBroadcast(rover, c.Message); err != nil {
|
if err := w.RoverBroadcast(rover, c.Message); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return fmt.Errorf("unknown command: %s", c.Command)
|
return fmt.Errorf("unknown command: %s", c.Command)
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,35 +39,31 @@ type CommandType int32
|
||||||
|
|
||||||
const (
|
const (
|
||||||
CommandType_none CommandType = 0
|
CommandType_none CommandType = 0
|
||||||
// Move the rover in a direction, requires bearing
|
// Toggles the sails, either catching the wind, or charging from the sun
|
||||||
CommandType_move CommandType = 1
|
CommandType_toggle CommandType = 1
|
||||||
// Stashes item at current location in rover inventory
|
// Stashes item at current location in rover inventory
|
||||||
CommandType_stash CommandType = 2
|
CommandType_stash CommandType = 2
|
||||||
// Repairs the rover using an inventory object
|
// Repairs the rover using an inventory object
|
||||||
CommandType_repair CommandType = 3
|
CommandType_repair CommandType = 3
|
||||||
// Waits a tick to add more charge to the rover
|
|
||||||
CommandType_recharge CommandType = 4
|
|
||||||
// Broadcasts a message to nearby rovers
|
// Broadcasts a message to nearby rovers
|
||||||
CommandType_broadcast CommandType = 5
|
CommandType_broadcast CommandType = 4
|
||||||
)
|
)
|
||||||
|
|
||||||
// Enum value maps for CommandType.
|
// Enum value maps for CommandType.
|
||||||
var (
|
var (
|
||||||
CommandType_name = map[int32]string{
|
CommandType_name = map[int32]string{
|
||||||
0: "none",
|
0: "none",
|
||||||
1: "move",
|
1: "toggle",
|
||||||
2: "stash",
|
2: "stash",
|
||||||
3: "repair",
|
3: "repair",
|
||||||
4: "recharge",
|
4: "broadcast",
|
||||||
5: "broadcast",
|
|
||||||
}
|
}
|
||||||
CommandType_value = map[string]int32{
|
CommandType_value = map[string]int32{
|
||||||
"none": 0,
|
"none": 0,
|
||||||
"move": 1,
|
"toggle": 1,
|
||||||
"stash": 2,
|
"stash": 2,
|
||||||
"repair": 3,
|
"repair": 3,
|
||||||
"recharge": 4,
|
"broadcast": 4,
|
||||||
"broadcast": 5,
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -560,7 +556,6 @@ type Command struct {
|
||||||
// The command type
|
// The command type
|
||||||
Command CommandType `protobuf:"varint,1,opt,name=command,proto3,enum=roveapi.CommandType" json:"command,omitempty"`
|
Command CommandType `protobuf:"varint,1,opt,name=command,proto3,enum=roveapi.CommandType" json:"command,omitempty"`
|
||||||
// Types that are assignable to Data:
|
// Types that are assignable to Data:
|
||||||
// *Command_Bearing
|
|
||||||
// *Command_Message
|
// *Command_Message
|
||||||
Data isCommand_Data `protobuf_oneof:"data"`
|
Data isCommand_Data `protobuf_oneof:"data"`
|
||||||
}
|
}
|
||||||
|
@ -611,13 +606,6 @@ func (m *Command) GetData() isCommand_Data {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Command) GetBearing() Bearing {
|
|
||||||
if x, ok := x.GetData().(*Command_Bearing); ok {
|
|
||||||
return x.Bearing
|
|
||||||
}
|
|
||||||
return Bearing_BearingUnknown
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *Command) GetMessage() []byte {
|
func (x *Command) GetMessage() []byte {
|
||||||
if x, ok := x.GetData().(*Command_Message); ok {
|
if x, ok := x.GetData().(*Command_Message); ok {
|
||||||
return x.Message
|
return x.Message
|
||||||
|
@ -629,21 +617,13 @@ type isCommand_Data interface {
|
||||||
isCommand_Data()
|
isCommand_Data()
|
||||||
}
|
}
|
||||||
|
|
||||||
type Command_Bearing struct {
|
|
||||||
// A bearing
|
|
||||||
// Used with MOVE
|
|
||||||
Bearing Bearing `protobuf:"varint,2,opt,name=bearing,proto3,enum=roveapi.Bearing,oneof"`
|
|
||||||
}
|
|
||||||
|
|
||||||
type Command_Message struct {
|
type Command_Message struct {
|
||||||
// A simple message, must be composed of printable ASCII glyphs (32-126)
|
// A simple message, must be composed of printable ASCII glyphs (32-126)
|
||||||
// maximum of three characters
|
// maximum of three characters
|
||||||
// Used with BROADCAST
|
// Used with BROADCAST
|
||||||
Message []byte `protobuf:"bytes,3,opt,name=message,proto3,oneof"`
|
Message []byte `protobuf:"bytes,2,opt,name=message,proto3,oneof"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*Command_Bearing) isCommand_Data() {}
|
|
||||||
|
|
||||||
func (*Command_Message) isCommand_Data() {}
|
func (*Command_Message) isCommand_Data() {}
|
||||||
|
|
||||||
// CommandRequest describes a set of commands to be requested for the rover
|
// CommandRequest describes a set of commands to be requested for the rover
|
||||||
|
@ -1197,116 +1177,112 @@ var file_roveapi_roveapi_proto_rawDesc = []byte{
|
||||||
0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a,
|
0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a,
|
||||||
0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10,
|
0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10,
|
||||||
0x2e, 0x72, 0x6f, 0x76, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
|
0x2e, 0x72, 0x6f, 0x76, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
|
||||||
0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x8b, 0x01, 0x0a, 0x07, 0x43, 0x6f,
|
0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x5d, 0x0a, 0x07, 0x43, 0x6f, 0x6d,
|
||||||
0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x2e, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64,
|
0x6d, 0x61, 0x6e, 0x64, 0x12, 0x2e, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18,
|
||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x61, 0x70, 0x69,
|
0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x61, 0x70, 0x69, 0x2e,
|
||||||
0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x63, 0x6f,
|
0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x63, 0x6f, 0x6d,
|
||||||
0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x2c, 0x0a, 0x07, 0x62, 0x65, 0x61, 0x72, 0x69, 0x6e, 0x67,
|
0x6d, 0x61, 0x6e, 0x64, 0x12, 0x1a, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18,
|
||||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x10, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x61, 0x70, 0x69,
|
0x02, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
||||||
0x2e, 0x42, 0x65, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x07, 0x62, 0x65, 0x61, 0x72,
|
0x42, 0x06, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x6a, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x6d,
|
||||||
0x69, 0x6e, 0x67, 0x12, 0x1a, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03,
|
0x61, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x07, 0x61, 0x63,
|
||||||
0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42,
|
|
||||||
0x06, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x6a, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x6d, 0x61,
|
|
||||||
0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x07, 0x61, 0x63, 0x63,
|
|
||||||
0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x72, 0x6f, 0x76,
|
|
||||||
0x65, 0x61, 0x70, 0x69, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07, 0x61, 0x63,
|
|
||||||
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2c, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64,
|
|
||||||
0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x61, 0x70,
|
|
||||||
0x69, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x61,
|
|
||||||
0x6e, 0x64, 0x73, 0x22, 0x11, 0x0a, 0x0f, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65,
|
|
||||||
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3a, 0x0a, 0x0c, 0x52, 0x61, 0x64, 0x61, 0x72, 0x52,
|
|
||||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
|
|
||||||
0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x61, 0x70,
|
|
||||||
0x69, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75,
|
|
||||||
0x6e, 0x74, 0x22, 0x75, 0x0a, 0x0d, 0x52, 0x61, 0x64, 0x61, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
|
||||||
0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01,
|
|
||||||
0x28, 0x05, 0x52, 0x05, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x23, 0x0a, 0x05, 0x74, 0x69, 0x6c,
|
|
||||||
0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x0d, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x61,
|
|
||||||
0x70, 0x69, 0x2e, 0x54, 0x69, 0x6c, 0x65, 0x52, 0x05, 0x74, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x29,
|
|
||||||
0x0a, 0x07, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0e, 0x32,
|
|
||||||
0x0f, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74,
|
|
||||||
0x52, 0x07, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x22, 0x3b, 0x0a, 0x0d, 0x53, 0x74, 0x61,
|
|
||||||
0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x07, 0x61, 0x63,
|
|
||||||
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x72, 0x6f,
|
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x72, 0x6f,
|
||||||
0x76, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07, 0x61,
|
0x76, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07, 0x61,
|
||||||
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x2d, 0x0a, 0x03, 0x4c, 0x6f, 0x67, 0x12, 0x12, 0x0a,
|
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2c, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,
|
||||||
0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x69, 0x6d,
|
0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x61,
|
||||||
0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
0x70, 0x69, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d,
|
||||||
0x04, 0x74, 0x65, 0x78, 0x74, 0x22, 0x24, 0x0a, 0x06, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12,
|
0x61, 0x6e, 0x64, 0x73, 0x22, 0x11, 0x0a, 0x0f, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52,
|
||||||
0x0c, 0x0a, 0x01, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x01, 0x78, 0x12, 0x0c, 0x0a,
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3a, 0x0a, 0x0c, 0x52, 0x61, 0x64, 0x61, 0x72,
|
||||||
0x01, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x01, 0x79, 0x22, 0xc3, 0x03, 0x0a, 0x0e,
|
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75,
|
||||||
0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12,
|
0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x61,
|
||||||
0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
|
0x70, 0x69, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f,
|
||||||
0x6d, 0x65, 0x12, 0x2b, 0x0a, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02,
|
0x75, 0x6e, 0x74, 0x22, 0x75, 0x0a, 0x0d, 0x52, 0x61, 0x64, 0x61, 0x72, 0x52, 0x65, 0x73, 0x70,
|
||||||
0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x56,
|
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20,
|
||||||
0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12,
|
0x01, 0x28, 0x05, 0x52, 0x05, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x23, 0x0a, 0x05, 0x74, 0x69,
|
||||||
0x14, 0x0a, 0x05, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05,
|
0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x0d, 0x2e, 0x72, 0x6f, 0x76, 0x65,
|
||||||
0x72, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f,
|
0x61, 0x70, 0x69, 0x2e, 0x54, 0x69, 0x6c, 0x65, 0x52, 0x05, 0x74, 0x69, 0x6c, 0x65, 0x73, 0x12,
|
||||||
0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74,
|
0x29, 0x0a, 0x07, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0e,
|
||||||
0x6f, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x18,
|
0x32, 0x0f, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63,
|
||||||
0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x63, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x12,
|
0x74, 0x52, 0x07, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x22, 0x3b, 0x0a, 0x0d, 0x53, 0x74,
|
||||||
0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x69, 0x74, 0x79, 0x18, 0x06, 0x20, 0x01,
|
0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x07, 0x61,
|
||||||
0x28, 0x05, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x69, 0x74, 0x79, 0x12, 0x2a, 0x0a,
|
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x72,
|
||||||
0x10, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x69, 0x74,
|
0x6f, 0x76, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07,
|
||||||
0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d,
|
0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x2d, 0x0a, 0x03, 0x4c, 0x6f, 0x67, 0x12, 0x12,
|
||||||
0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x68, 0x61,
|
0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x69,
|
||||||
0x72, 0x67, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x63, 0x68, 0x61, 0x72, 0x67,
|
0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
||||||
0x65, 0x12, 0x24, 0x0a, 0x0d, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x43, 0x68, 0x61, 0x72,
|
0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x22, 0x24, 0x0a, 0x06, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72,
|
||||||
0x67, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75,
|
0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x01, 0x78, 0x12, 0x0c,
|
||||||
0x6d, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x12, 0x3c, 0x0a, 0x10, 0x69, 0x6e, 0x63, 0x6f, 0x6d,
|
0x0a, 0x01, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x01, 0x79, 0x22, 0xc3, 0x03, 0x0a,
|
||||||
0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28,
|
0x0e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
||||||
0x0b, 0x32, 0x10, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x43, 0x6f, 0x6d, 0x6d,
|
0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
|
||||||
0x61, 0x6e, 0x64, 0x52, 0x10, 0x69, 0x6e, 0x63, 0x6f, 0x6d, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6d,
|
0x61, 0x6d, 0x65, 0x12, 0x2b, 0x0a, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18,
|
||||||
0x6d, 0x61, 0x6e, 0x64, 0x73, 0x12, 0x38, 0x0a, 0x0e, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x43,
|
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x61, 0x70, 0x69, 0x2e,
|
||||||
0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e,
|
0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e,
|
||||||
0x72, 0x6f, 0x76, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52,
|
0x12, 0x14, 0x0a, 0x05, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52,
|
||||||
0x0e, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x12,
|
0x05, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74,
|
||||||
0x20, 0x0a, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e,
|
0x6f, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x69, 0x6e, 0x76, 0x65, 0x6e,
|
||||||
0x72, 0x6f, 0x76, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x4c, 0x6f, 0x67, 0x52, 0x04, 0x6c, 0x6f, 0x67,
|
0x74, 0x6f, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79,
|
||||||
0x73, 0x2a, 0x55, 0x0a, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65,
|
0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x63, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79,
|
||||||
0x12, 0x08, 0x0a, 0x04, 0x6e, 0x6f, 0x6e, 0x65, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x6d, 0x6f,
|
0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x69, 0x74, 0x79, 0x18, 0x06, 0x20,
|
||||||
0x76, 0x65, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x73, 0x68, 0x10, 0x02, 0x12,
|
0x01, 0x28, 0x05, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x69, 0x74, 0x79, 0x12, 0x2a,
|
||||||
0x0a, 0x0a, 0x06, 0x72, 0x65, 0x70, 0x61, 0x69, 0x72, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x72,
|
0x0a, 0x10, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x69,
|
||||||
0x65, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x10, 0x04, 0x12, 0x0d, 0x0a, 0x09, 0x62, 0x72, 0x6f,
|
0x74, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75,
|
||||||
0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x10, 0x05, 0x2a, 0x47, 0x0a, 0x07, 0x42, 0x65, 0x61, 0x72,
|
0x6d, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x68,
|
||||||
0x69, 0x6e, 0x67, 0x12, 0x12, 0x0a, 0x0e, 0x42, 0x65, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x55, 0x6e,
|
0x61, 0x72, 0x67, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x63, 0x68, 0x61, 0x72,
|
||||||
0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x4e, 0x6f, 0x72, 0x74, 0x68,
|
0x67, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x43, 0x68, 0x61,
|
||||||
0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x45, 0x61, 0x73, 0x74, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05,
|
0x72, 0x67, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x69, 0x6d,
|
||||||
0x53, 0x6f, 0x75, 0x74, 0x68, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x57, 0x65, 0x73, 0x74, 0x10,
|
0x75, 0x6d, 0x43, 0x68, 0x61, 0x72, 0x67, 0x65, 0x12, 0x3c, 0x0a, 0x10, 0x69, 0x6e, 0x63, 0x6f,
|
||||||
0x04, 0x2a, 0x5a, 0x0a, 0x06, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x11, 0x0a, 0x0d, 0x4f,
|
0x6d, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x18, 0x0a, 0x20, 0x03,
|
||||||
0x62, 0x6a, 0x65, 0x63, 0x74, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x0d,
|
0x28, 0x0b, 0x32, 0x10, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x43, 0x6f, 0x6d,
|
||||||
0x0a, 0x09, 0x52, 0x6f, 0x76, 0x65, 0x72, 0x4c, 0x69, 0x76, 0x65, 0x10, 0x01, 0x12, 0x10, 0x0a,
|
0x6d, 0x61, 0x6e, 0x64, 0x52, 0x10, 0x69, 0x6e, 0x63, 0x6f, 0x6d, 0x69, 0x6e, 0x67, 0x43, 0x6f,
|
||||||
0x0c, 0x52, 0x6f, 0x76, 0x65, 0x72, 0x44, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x74, 0x10, 0x02, 0x12,
|
0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x12, 0x38, 0x0a, 0x0e, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64,
|
||||||
0x0d, 0x0a, 0x09, 0x52, 0x6f, 0x63, 0x6b, 0x53, 0x6d, 0x61, 0x6c, 0x6c, 0x10, 0x03, 0x12, 0x0d,
|
0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10,
|
||||||
0x0a, 0x09, 0x52, 0x6f, 0x63, 0x6b, 0x4c, 0x61, 0x72, 0x67, 0x65, 0x10, 0x04, 0x2a, 0x37, 0x0a,
|
0x2e, 0x72, 0x6f, 0x76, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64,
|
||||||
0x04, 0x54, 0x69, 0x6c, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x69, 0x6c, 0x65, 0x55, 0x6e, 0x6b,
|
0x52, 0x0e, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73,
|
||||||
0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x52, 0x6f, 0x63, 0x6b, 0x10, 0x01,
|
0x12, 0x20, 0x0a, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c,
|
||||||
0x12, 0x0a, 0x0a, 0x06, 0x47, 0x72, 0x61, 0x76, 0x65, 0x6c, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04,
|
0x2e, 0x72, 0x6f, 0x76, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x4c, 0x6f, 0x67, 0x52, 0x04, 0x6c, 0x6f,
|
||||||
0x53, 0x61, 0x6e, 0x64, 0x10, 0x03, 0x32, 0xcf, 0x02, 0x0a, 0x04, 0x52, 0x6f, 0x76, 0x65, 0x12,
|
0x67, 0x73, 0x2a, 0x49, 0x0a, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x54, 0x79, 0x70,
|
||||||
0x4d, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12,
|
0x65, 0x12, 0x08, 0x0a, 0x04, 0x6e, 0x6f, 0x6e, 0x65, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x74,
|
||||||
0x1c, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
|
0x6f, 0x67, 0x67, 0x6c, 0x65, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x73, 0x68,
|
||||||
0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e,
|
0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x72, 0x65, 0x70, 0x61, 0x69, 0x72, 0x10, 0x03, 0x12, 0x0d,
|
||||||
0x72, 0x6f, 0x76, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x74,
|
0x0a, 0x09, 0x62, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x10, 0x04, 0x2a, 0x47, 0x0a,
|
||||||
0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x41,
|
0x07, 0x42, 0x65, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x12, 0x0a, 0x0e, 0x42, 0x65, 0x61, 0x72,
|
||||||
0x0a, 0x08, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x18, 0x2e, 0x72, 0x6f, 0x76,
|
0x69, 0x6e, 0x67, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05,
|
||||||
0x65, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71,
|
0x4e, 0x6f, 0x72, 0x74, 0x68, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x45, 0x61, 0x73, 0x74, 0x10,
|
||||||
0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x52,
|
0x02, 0x12, 0x09, 0x0a, 0x05, 0x53, 0x6f, 0x75, 0x74, 0x68, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04,
|
||||||
0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
|
0x57, 0x65, 0x73, 0x74, 0x10, 0x04, 0x2a, 0x5a, 0x0a, 0x06, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74,
|
||||||
0x00, 0x12, 0x3e, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x17, 0x2e, 0x72,
|
0x12, 0x11, 0x0a, 0x0d, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77,
|
||||||
0x6f, 0x76, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65,
|
0x6e, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x52, 0x6f, 0x76, 0x65, 0x72, 0x4c, 0x69, 0x76, 0x65,
|
||||||
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x61, 0x70, 0x69, 0x2e,
|
0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x52, 0x6f, 0x76, 0x65, 0x72, 0x44, 0x6f, 0x72, 0x6d, 0x61,
|
||||||
0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
|
0x6e, 0x74, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x52, 0x6f, 0x63, 0x6b, 0x53, 0x6d, 0x61, 0x6c,
|
||||||
0x00, 0x12, 0x38, 0x0a, 0x05, 0x52, 0x61, 0x64, 0x61, 0x72, 0x12, 0x15, 0x2e, 0x72, 0x6f, 0x76,
|
0x6c, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x52, 0x6f, 0x63, 0x6b, 0x4c, 0x61, 0x72, 0x67, 0x65,
|
||||||
0x65, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x61, 0x64, 0x61, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
0x10, 0x04, 0x2a, 0x37, 0x0a, 0x04, 0x54, 0x69, 0x6c, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x69,
|
||||||
0x74, 0x1a, 0x16, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x61, 0x64, 0x61,
|
0x6c, 0x65, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x52,
|
||||||
0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3b, 0x0a, 0x06, 0x53,
|
0x6f, 0x63, 0x6b, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x47, 0x72, 0x61, 0x76, 0x65, 0x6c, 0x10,
|
||||||
0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x61, 0x70, 0x69, 0x2e,
|
0x02, 0x12, 0x08, 0x0a, 0x04, 0x53, 0x61, 0x6e, 0x64, 0x10, 0x03, 0x32, 0xcf, 0x02, 0x0a, 0x04,
|
||||||
0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e,
|
0x52, 0x6f, 0x76, 0x65, 0x12, 0x4d, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x74,
|
||||||
0x72, 0x6f, 0x76, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65,
|
0x61, 0x74, 0x75, 0x73, 0x12, 0x1c, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x53,
|
||||||
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x26, 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68,
|
0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||||
0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x64, 0x69, 0x6c, 0x75, 0x7a, 0x2f, 0x72, 0x6f,
|
0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x65, 0x72,
|
||||||
0x76, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x6f, 0x76, 0x65, 0x61, 0x70, 0x69,
|
0x76, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||||
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x65, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x08, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12,
|
||||||
|
0x18, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74,
|
||||||
|
0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x72, 0x6f, 0x76, 0x65,
|
||||||
|
0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70,
|
||||||
|
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3e, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,
|
||||||
|
0x64, 0x12, 0x17, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x43, 0x6f, 0x6d, 0x6d,
|
||||||
|
0x61, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x72, 0x6f, 0x76,
|
||||||
|
0x65, 0x61, 0x70, 0x69, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70,
|
||||||
|
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x38, 0x0a, 0x05, 0x52, 0x61, 0x64, 0x61, 0x72, 0x12,
|
||||||
|
0x15, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x61, 0x64, 0x61, 0x72, 0x52,
|
||||||
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x61, 0x70, 0x69,
|
||||||
|
0x2e, 0x52, 0x61, 0x64, 0x61, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00,
|
||||||
|
0x12, 0x3b, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x2e, 0x72, 0x6f, 0x76,
|
||||||
|
0x65, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||||
|
0x73, 0x74, 0x1a, 0x17, 0x2e, 0x72, 0x6f, 0x76, 0x65, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x74, 0x61,
|
||||||
|
0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x26, 0x5a,
|
||||||
|
0x24, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x64, 0x69, 0x6c,
|
||||||
|
0x75, 0x7a, 0x2f, 0x72, 0x6f, 0x76, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x6f,
|
||||||
|
0x76, 0x65, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -1346,32 +1322,31 @@ var file_roveapi_roveapi_proto_goTypes = []interface{}{
|
||||||
var file_roveapi_roveapi_proto_depIdxs = []int32{
|
var file_roveapi_roveapi_proto_depIdxs = []int32{
|
||||||
7, // 0: roveapi.RegisterResponse.account:type_name -> roveapi.Account
|
7, // 0: roveapi.RegisterResponse.account:type_name -> roveapi.Account
|
||||||
0, // 1: roveapi.Command.command:type_name -> roveapi.CommandType
|
0, // 1: roveapi.Command.command:type_name -> roveapi.CommandType
|
||||||
1, // 2: roveapi.Command.bearing:type_name -> roveapi.Bearing
|
7, // 2: roveapi.CommandRequest.account:type_name -> roveapi.Account
|
||||||
7, // 3: roveapi.CommandRequest.account:type_name -> roveapi.Account
|
9, // 3: roveapi.CommandRequest.commands:type_name -> roveapi.Command
|
||||||
9, // 4: roveapi.CommandRequest.commands:type_name -> roveapi.Command
|
7, // 4: roveapi.RadarRequest.account:type_name -> roveapi.Account
|
||||||
7, // 5: roveapi.RadarRequest.account:type_name -> roveapi.Account
|
3, // 5: roveapi.RadarResponse.tiles:type_name -> roveapi.Tile
|
||||||
3, // 6: roveapi.RadarResponse.tiles:type_name -> roveapi.Tile
|
2, // 6: roveapi.RadarResponse.objects:type_name -> roveapi.Object
|
||||||
2, // 7: roveapi.RadarResponse.objects:type_name -> roveapi.Object
|
7, // 7: roveapi.StatusRequest.account:type_name -> roveapi.Account
|
||||||
7, // 8: roveapi.StatusRequest.account:type_name -> roveapi.Account
|
16, // 8: roveapi.StatusResponse.position:type_name -> roveapi.Vector
|
||||||
16, // 9: roveapi.StatusResponse.position:type_name -> roveapi.Vector
|
9, // 9: roveapi.StatusResponse.incomingCommands:type_name -> roveapi.Command
|
||||||
9, // 10: roveapi.StatusResponse.incomingCommands:type_name -> roveapi.Command
|
9, // 10: roveapi.StatusResponse.queuedCommands:type_name -> roveapi.Command
|
||||||
9, // 11: roveapi.StatusResponse.queuedCommands:type_name -> roveapi.Command
|
15, // 11: roveapi.StatusResponse.logs:type_name -> roveapi.Log
|
||||||
15, // 12: roveapi.StatusResponse.logs:type_name -> roveapi.Log
|
4, // 12: roveapi.Rove.ServerStatus:input_type -> roveapi.ServerStatusRequest
|
||||||
4, // 13: roveapi.Rove.ServerStatus:input_type -> roveapi.ServerStatusRequest
|
6, // 13: roveapi.Rove.Register:input_type -> roveapi.RegisterRequest
|
||||||
6, // 14: roveapi.Rove.Register:input_type -> roveapi.RegisterRequest
|
10, // 14: roveapi.Rove.Command:input_type -> roveapi.CommandRequest
|
||||||
10, // 15: roveapi.Rove.Command:input_type -> roveapi.CommandRequest
|
12, // 15: roveapi.Rove.Radar:input_type -> roveapi.RadarRequest
|
||||||
12, // 16: roveapi.Rove.Radar:input_type -> roveapi.RadarRequest
|
14, // 16: roveapi.Rove.Status:input_type -> roveapi.StatusRequest
|
||||||
14, // 17: roveapi.Rove.Status:input_type -> roveapi.StatusRequest
|
5, // 17: roveapi.Rove.ServerStatus:output_type -> roveapi.ServerStatusResponse
|
||||||
5, // 18: roveapi.Rove.ServerStatus:output_type -> roveapi.ServerStatusResponse
|
8, // 18: roveapi.Rove.Register:output_type -> roveapi.RegisterResponse
|
||||||
8, // 19: roveapi.Rove.Register:output_type -> roveapi.RegisterResponse
|
11, // 19: roveapi.Rove.Command:output_type -> roveapi.CommandResponse
|
||||||
11, // 20: roveapi.Rove.Command:output_type -> roveapi.CommandResponse
|
13, // 20: roveapi.Rove.Radar:output_type -> roveapi.RadarResponse
|
||||||
13, // 21: roveapi.Rove.Radar:output_type -> roveapi.RadarResponse
|
17, // 21: roveapi.Rove.Status:output_type -> roveapi.StatusResponse
|
||||||
17, // 22: roveapi.Rove.Status:output_type -> roveapi.StatusResponse
|
17, // [17:22] is the sub-list for method output_type
|
||||||
18, // [18:23] is the sub-list for method output_type
|
12, // [12:17] is the sub-list for method input_type
|
||||||
13, // [13:18] is the sub-list for method input_type
|
12, // [12:12] is the sub-list for extension type_name
|
||||||
13, // [13:13] is the sub-list for extension type_name
|
12, // [12:12] is the sub-list for extension extendee
|
||||||
13, // [13:13] is the sub-list for extension extendee
|
0, // [0:12] is the sub-list for field type_name
|
||||||
0, // [0:13] is the sub-list for field type_name
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_roveapi_roveapi_proto_init() }
|
func init() { file_roveapi_roveapi_proto_init() }
|
||||||
|
@ -1550,7 +1525,6 @@ func file_roveapi_roveapi_proto_init() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_roveapi_roveapi_proto_msgTypes[5].OneofWrappers = []interface{}{
|
file_roveapi_roveapi_proto_msgTypes[5].OneofWrappers = []interface{}{
|
||||||
(*Command_Bearing)(nil),
|
|
||||||
(*Command_Message)(nil),
|
(*Command_Message)(nil),
|
||||||
}
|
}
|
||||||
type x struct{}
|
type x struct{}
|
||||||
|
|
|
@ -89,16 +89,14 @@ message RegisterResponse {
|
||||||
// CommandType defines the type of a command to give to the rover
|
// CommandType defines the type of a command to give to the rover
|
||||||
enum CommandType {
|
enum CommandType {
|
||||||
none = 0;
|
none = 0;
|
||||||
// Move the rover in a direction, requires bearing
|
// Toggles the sails, either catching the wind, or charging from the sun
|
||||||
move = 1;
|
toggle = 1;
|
||||||
// Stashes item at current location in rover inventory
|
// Stashes item at current location in rover inventory
|
||||||
stash = 2;
|
stash = 2;
|
||||||
// Repairs the rover using an inventory object
|
// Repairs the rover using an inventory object
|
||||||
repair = 3;
|
repair = 3;
|
||||||
// Waits a tick to add more charge to the rover
|
|
||||||
recharge = 4;
|
|
||||||
// Broadcasts a message to nearby rovers
|
// Broadcasts a message to nearby rovers
|
||||||
broadcast = 5;
|
broadcast = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum Bearing {
|
enum Bearing {
|
||||||
|
@ -116,14 +114,10 @@ message Command {
|
||||||
CommandType command = 1;
|
CommandType command = 1;
|
||||||
|
|
||||||
oneof data {
|
oneof data {
|
||||||
// A bearing
|
|
||||||
// Used with MOVE
|
|
||||||
Bearing bearing = 2;
|
|
||||||
|
|
||||||
// A simple message, must be composed of printable ASCII glyphs (32-126)
|
// A simple message, must be composed of printable ASCII glyphs (32-126)
|
||||||
// maximum of three characters
|
// maximum of three characters
|
||||||
// Used with BROADCAST
|
// Used with BROADCAST
|
||||||
bytes message = 3;
|
bytes message = 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue