Large refactor, move object and tile types out into the proto
This commit is contained in:
parent
24d4fe9273
commit
305f64ec38
9 changed files with 338 additions and 210 deletions
|
@ -134,6 +134,35 @@ message CommandResponse {}
|
|||
// Radar
|
||||
//
|
||||
|
||||
// Types of objects
|
||||
enum Object {
|
||||
// ObjectNone represents no object at all
|
||||
ObjectNone = 0;
|
||||
|
||||
// RoverLive represents a live rover
|
||||
RoverLive = 1;
|
||||
|
||||
// RockSmall is a small stashable rock
|
||||
RockSmall = 2;
|
||||
|
||||
// RockLarge is a large blocking rock
|
||||
RockLarge = 3;
|
||||
}
|
||||
|
||||
enum Tile {
|
||||
// TileNone is a keyword for nothing
|
||||
TileNone = 0;
|
||||
|
||||
// Rock is solid rock ground
|
||||
Rock = 1;
|
||||
|
||||
// Gravel is loose rocks
|
||||
Gravel = 2;
|
||||
|
||||
// Sand is sand
|
||||
Sand = 3;
|
||||
}
|
||||
|
||||
// RadarRequest is the data needed to request the radar for a rover
|
||||
message RadarRequest {
|
||||
// The account for this request
|
||||
|
@ -147,10 +176,10 @@ message RadarResponse {
|
|||
|
||||
// A 1D array representing range*2 + 1 squared set of tiles, origin bottom
|
||||
// left and in row->column order
|
||||
bytes tiles = 2;
|
||||
repeated Tile tiles = 2;
|
||||
|
||||
// A similar array to the tile array, but containing objects
|
||||
bytes objects = 3;
|
||||
repeated Object objects = 3;
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue