fork/rust_serialization_benchmark
git clone https://git.julia.blue/fork/rust_serialization_benchmark
b375165
bebop
1@0xa093b6e172459c50 ; 2 3enum GameType { 4survival @0 ; 5creative @1 ; 6adventure @2 ; 7spectator @3 ; 8} 9 10struct Item { 11count @0 : Int8 ; 12slot @1 : UInt8 ; 13id @2 : Text ; 14} 15 16struct Abilities { 17walkSpeed @0 : Float32 ; 18flySpeed @1 : Float32 ; 19mayFly @2 : Bool ; 20flying @3 : Bool ; 21invulnerable @4 : Bool ; 22mayBuild @5 : Bool ; 23instabuild @6 : Bool ; 24} 25 26struct Entity { 27id @0 : Text ; 28pos : group { 29x @1 : Float64 ; 30y @2 : Float64 ; 31z @3 : Float64 ; 32} 33motion : group { 34x @4 : Float64 ; 35y @5 : Float64 ; 36z @6 : Float64 ; 37} 38rotation : group { 39x @7 : Float32 ; 40y @8 : Float32 ; 41} 42fallDistance @9 : Float32 ; 43fire @10 : UInt16 ; 44air @11 : UInt16 ; 45onGround @12 : Bool ; 46noGravity @13 : Bool ; 47invulnerable @14 : Bool ; 48portalCooldown @15 : Int32 ; 49uuid : group { 50x0 @16 : UInt32 ; 51x1 @17 : UInt32 ; 52x2 @18 : UInt32 ; 53x3 @19 : UInt32 ; 54} 55customName @20 : Text ; 56customNameVisible @21 : Bool ; 57silent @22 : Bool ; 58glowing @23 : Bool ; 59} 60 61struct RecipeBook { 62recipes @0 : List ( Text ); 63toBeDisplayed @1 : List ( Text ); 64isFilteringCraftable @2 : Bool ; 65isGuiOpen @3 : Bool ; 66isFurnaceFilteringCraftable @4 : Bool ; 67isFurnaceGuiOpen @5 : Bool ; 68isBlastingFurnaceFilteringCraftable @6 : Bool ; 69isBlastingFurnaceGuiOpen @7 : Bool ; 70isSmokerFilteringCraftable @8 : Bool ; 71isSmokerGuiOpen @9 : Bool ; 72} 73 74struct Player { 75gameType @0 : GameType ; 76previousGameType @1 : GameType ; 77score @2 : UInt64 ; 78dimension @3 : Text ; 79selectedItemSlot @4 : UInt32 ; 80selectedItem @5 : Item ; 81spawnDimension : union { 82none @6 : Void ; 83some @7 : Text ; 84} 85spawn : group { 86x @8 : Int64 ; 87y @9 : Int64 ; 88z @10 : Int64 ; 89} 90spawnForced : union { 91none @11 : Void ; 92some @12 : Bool ; 93} 94sleepTimer @13 : UInt16 ; 95foodExhaustionLevel @14 : Float32 ; 96foodSaturationLevel @15 : Float32 ; 97foodTickTimer @16 : UInt32 ; 98xpLevel @17 : UInt32 ; 99xpP @18 : Float32 ; 100xpTotal @19 : Int32 ; 101xpSeed @20 : Int32 ; 102inventory @21 : List ( Item ); 103enderItems @22 : List ( Item ); 104abilities @23 : Abilities ; 105enteredNetherPosition : union { 106none @24 : Void ; 107some : group { 108x @25 : Float64 ; 109y @26 : Float64 ; 110z @27 : Float64 ; 111} 112} 113rootVehicle : union { 114none @28 : Void ; 115some : group { 116uuid : group { 117x0 @29 : UInt32 ; 118x1 @30 : UInt32 ; 119x2 @31 : UInt32 ; 120x3 @32 : UInt32 ; 121} 122entity @33 : Entity ; 123} 124} 125shoulderEntityLeft : union { 126none @34 : Void ; 127some @35 : Entity ; 128} 129shoulderEntityRight : union { 130none @36 : Void ; 131some @37 : Entity ; 132} 133seenCredits @38 : Bool ; 134recipeBook @39 : RecipeBook ; 135} 136 137struct Players { 138players @0 : List ( Player ); 139}