fork/rust_serialization_benchmark
git clone https://git.julia.blue/fork/rust_serialization_benchmark
1d83e92
master
1syntax = "proto3" ; 2 3package prost . minecraft_savedata ; 4 5enum GameType { 6SURVIVAL = 0 ; 7CREATIVE = 1 ; 8ADVENTURE = 2 ; 9SPECTATOR = 3 ; 10} 11 12message Item { 13int32 count = 1 ; 14uint32 slot = 2 ; 15string id = 3 ; 16} 17 18message Abilities { 19float walk_speed = 1 ; 20float fly_speed = 2 ; 21bool may_fly = 3 ; 22bool flying = 4 ; 23bool invulnerable = 5 ; 24bool may_build = 6 ; 25bool instabuild = 7 ; 26} 27 28message Vector3d { 29double x = 1 ; 30double y = 2 ; 31double z = 3 ; 32} 33 34message Vector2f { 35float x = 1 ; 36float y = 2 ; 37} 38 39message Uuid { 40uint32 x0 = 1 ; 41uint32 x1 = 2 ; 42uint32 x2 = 3 ; 43uint32 x3 = 4 ; 44} 45 46message Entity { 47string id = 1 ; 48Vector3d pos = 2 ; 49Vector3d motion = 3 ; 50Vector2f rotation = 4 ; 51float fall_distance = 5 ; 52uint32 fire = 6 ; 53uint32 air = 7 ; 54bool on_ground = 8 ; 55bool no_gravity = 9 ; 56bool invulnerable = 10 ; 57int32 portal_cooldown = 11 ; 58Uuid uuid = 12 ; 59optional string custom_name = 13 ; 60bool custom_name_visible = 14 ; 61bool silent = 15 ; 62bool glowing = 16 ; 63} 64 65message RecipeBook { 66repeated string recipes = 1 ; 67repeated string to_be_displayed = 2 ; 68bool is_filtering_craftable = 3 ; 69bool is_gui_open = 4 ; 70bool is_furnace_filtering_craftable = 5 ; 71bool is_furnace_gui_open = 6 ; 72bool is_blasting_furnace_filtering_craftable = 7 ; 73bool is_blasting_furnace_gui_open = 8 ; 74bool is_smoker_filtering_craftable = 9 ; 75bool is_smoker_gui_open = 10 ; 76} 77 78message Vehicle { 79Uuid uuid = 1 ; 80Entity entity = 2 ; 81} 82 83message Player { 84GameType game_type = 1 ; 85GameType previous_game_type = 2 ; 86int64 score = 3 ; 87string dimension = 4 ; 88uint32 selected_item_slot = 5 ; 89Item selected_item = 6 ; 90optional string spawn_dimension = 7 ; 91int64 spawn_x = 8 ; 92int64 spawn_y = 9 ; 93int64 spawn_z = 10 ; 94optional bool spawn_forced = 11 ; 95uint32 sleep_timer = 12 ; 96float food_exhaustion_level = 13 ; 97float food_saturation_level = 14 ; 98uint32 food_tick_timer = 15 ; 99uint32 xp_level = 16 ; 100float xp_p = 17 ; 101int32 xp_total = 18 ; 102int32 xp_seed = 19 ; 103repeated Item inventory = 20 ; 104repeated Item ender_items = 21 ; 105Abilities abilities = 22 ; 106optional Vector3d entered_nether_position = 23 ; 107optional Vehicle root_vehicle = 24 ; 108optional Entity shoulder_entity_left = 25 ; 109optional Entity shoulder_entity_right = 26 ; 110bool seen_credits = 27 ; 111RecipeBook recipe_book = 28 ; 112} 113 114message Players { 115repeated Player players = 1 ; 116}