fork/rust_serialization_benchmark
git clone https://git.julia.blue/fork/rust_serialization_benchmark
783c4dc
master
1syntax = "proto3" ; 2 3package prost . mk48 ; 4 5enum EntityType { 6ARLEIGH_BURKE = 0 ; 7BISMARCK = 1 ; 8CLEMENCEAU = 2 ; 9FLETCHER = 3 ; 10G5 = 4 ; 11IOWA = 5 ; 12KOLKATA = 6 ; 13OSA = 7 ; 14YASEN = 8 ; 15ZUBR = 9 ; 16} 17 18message Vector2f { 19float x = 1 ; 20float y = 2 ; 21} 22 23message Transform { 24int32 altitude = 1 ; 25uint32 angle = 2 ; 26Vector2f position = 3 ; 27int32 velocity = 4 ; 28} 29 30message Guidance { 31uint32 angle = 1 ; 32bool submerge = 2 ; 33int32 velocity = 3 ; 34} 35 36message Contact { 37uint32 damage = 1 ; 38uint32 entity_id = 2 ; 39optional EntityType entity_type = 3 ; 40Guidance guidance = 4 ; 41optional uint32 player_id = 5 ; 42repeated bool reloads = 6 ; 43Transform transform = 7 ; 44repeated uint32 turret_angles = 8 ; 45} 46 47message ChunkId { 48int32 x = 1 ; 49int32 y = 2 ; 50} 51 52message TerrainUpdate { 53ChunkId chunk_id = 1 ; 54bytes data = 2 ; 55} 56 57message Update { 58repeated Contact contacts = 1 ; 59uint32 score = 2 ; 60float world_radius = 3 ; 61repeated TerrainUpdate terrain_updates = 4 ; 62} 63 64message Updates { 65repeated Update updates = 1 ; 66}