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