fork/rust_serialization_benchmark
git clone https://git.julia.blue/fork/rust_serialization_benchmark
783c4dc
master
1@0xc3182888fa8baeb0 ; 2 3enum EntityType { 4arleighBurke @0 ; 5bismarck @1 ; 6clemenceau @2 ; 7fletcher @3 ; 8g5 @4 ; 9iowa @5 ; 10kolkata @6 ; 11osa @7 ; 12yasen @8 ; 13zubr @9 ; 14} 15 16struct Transform { 17altitude @0 : Int8 ; 18angle @1 : UInt16 ; 19position : group { 20x @2 : Float32 ; 21y @3 : Float32 ; 22} 23velocity @4 : Int16 ; 24} 25 26struct Guidance { 27angle @0 : UInt16 ; 28submerge @1 : Bool ; 29velocity @2 : Int16 ; 30} 31 32struct Contact { 33damage @0 : UInt8 ; 34entityId @1 : UInt32 ; 35entityType : union { 36none @2 : Void ; 37some @3 : EntityType ; 38} 39guidance @4 : Guidance ; 40playerId : union { 41none @5 : Void ; 42some @6 : UInt16 ; 43} 44reloads @7 : List ( Bool ); 45transform @8 : Transform ; 46turretAngles @9 : List ( UInt16 ); 47} 48 49struct TerrainUpdate { 50chunkId : group { 51x @0 : Int8 ; 52y @1 : Int8 ; 53} 54data @2 : List ( UInt8 ); 55} 56 57struct Update { 58contacts @0 : List ( Contact ); 59score @1 : UInt32 ; 60worldRadius @2 : Float32 ; 61terrainUpdates @3 : List ( TerrainUpdate ); 62} 63 64struct Updates { 65updates @0 : List ( Update ); 66}