You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
646 B
34 lines
646 B
3 years ago
|
syntax = "proto3";
|
||
|
|
||
|
option go_package = "git.reya.zone/reya/hexmap/server/state";
|
||
|
|
||
|
message HexCell {
|
||
|
fixed32 color = 1;
|
||
|
}
|
||
|
|
||
|
message HexLine {
|
||
|
repeated HexCell cells = 1;
|
||
|
}
|
||
|
|
||
|
message HexMap {
|
||
|
message Layout {
|
||
|
enum Orientation {
|
||
|
UNKNOWN_ORIENTATION = 0;
|
||
|
FLAT_TOP_ORIENTATION = 1;
|
||
|
POINTY_TOP_ORIENTATION = 2;
|
||
|
}
|
||
|
enum LineParity {
|
||
|
UNKNOWN_LINE_PARITY = 0;
|
||
|
EVEN_LINE_PARITY = 1;
|
||
|
ODD_LINE_PARITY = 2;
|
||
|
}
|
||
|
Orientation orientation = 1;
|
||
|
LineParity line_parity = 2;
|
||
|
}
|
||
|
string xid = 1;
|
||
|
uint32 lines = 2;
|
||
|
uint32 cells_per_line = 3;
|
||
|
Layout layout = 4;
|
||
|
repeated HexLine line_cells = 5;
|
||
|
}
|