Add Protobuf with Testing + Codegen (#7)
Reviewed-on: #7 Reviewed-by: Ivan Malison <ivanmalison@gmail.com> Co-authored-by: Mike Kalange <countablecloud@gmail.com> Co-committed-by: Mike Kalange <countablecloud@gmail.com>
This commit is contained in:
27
rbproto/shot.proto
Normal file
27
rbproto/shot.proto
Normal file
@@ -0,0 +1,27 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package serialized_shot;
|
||||
|
||||
message Point {
|
||||
float x = 1;
|
||||
float y = 2;
|
||||
int32 count = 3;
|
||||
}
|
||||
|
||||
message Path {
|
||||
int32 start_frame = 1;
|
||||
int32 end_frame = 2;
|
||||
bool is_static = 3;
|
||||
repeated Point points = 4;
|
||||
}
|
||||
|
||||
message BallPaths {
|
||||
int32 ball_identifier = 1;
|
||||
repeated Path paths = 2;
|
||||
}
|
||||
|
||||
message Shot {
|
||||
int32 start_frame = 1;
|
||||
int32 end_frame = 2;
|
||||
repeated BallPaths ball_paths = 3;
|
||||
}
|
Reference in New Issue
Block a user