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.
hexmap/proto/map.proto

38 lines
646 B

syntax = "proto3";
option go_package = "git.reya.zone/reya/hexmap/server/state";
message HexCellPB {
fixed32 color = 1;
}
message HexLinePB {
repeated HexCellPB cells = 1;
}
message HexLayerPB {
repeated HexLinePB lines = 1;
}
message HexMapPB {
message Layout {
enum Orientation {
UNKNOWN_ORIENTATION = 0;
POINTY_TOP = 1;
FLAT_TOP = 2;
}
enum LineParity {
UNKNOWN_LINE = 0;
ODD = 1;
EVEN = 2;
}
Orientation orientation = 1;
LineParity indented_lines = 2;
}
bytes xid = 1;
uint32 lines = 2;
uint32 cells_per_line = 3;
Layout layout = 4;
HexLayerPB layer = 5;
}