mirror of
https://github.com/genxium/DelayNoMore
synced 2024-12-29 04:58:08 +00:00
28 lines
433 B
Protocol Buffer
28 lines
433 B
Protocol Buffer
syntax = "proto3";
|
|
option go_package = "dnmshared/protos"; // here "./" corresponds to the "--go_out" value in "protoc" command
|
|
|
|
package protos;
|
|
|
|
message Direction {
|
|
int32 dx = 1;
|
|
int32 dy = 2;
|
|
}
|
|
|
|
message Vec2D {
|
|
double x = 1;
|
|
double y = 2;
|
|
}
|
|
|
|
message Polygon2D {
|
|
Vec2D anchor = 1;
|
|
repeated Vec2D points = 2;
|
|
}
|
|
|
|
message Vec2DList {
|
|
repeated Vec2D eles = 1;
|
|
}
|
|
|
|
message Polygon2DList {
|
|
repeated Polygon2D eles = 1;
|
|
}
|