From 5a8ead004633175216eafea33bd90d1bd4983035 Mon Sep 17 00:00:00 2001 From: artem Date: Tue, 19 Mar 2024 22:21:28 +0300 Subject: [PATCH] new version of editor --- Cargo.lock | 164 ++++-- Cargo.toml | 2 + editor/src/main.rs | 4 +- executor/src/main.rs | 4 +- game/src/lib.rs | 80 ++- settings.ron | 1190 +++++++++++++++++++++--------------------- 6 files changed, 764 insertions(+), 680 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d4cac78..a2c3d07 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -984,7 +984,82 @@ dependencies = [ [[package]] name = "fyrox" version = "0.33.1" -source = "git+https://github.com/FyroxEngine/Fyrox#5398c6e8dd9385af9bbdd6c642f161dda9d13bfe" +source = "git+https://github.com/FyroxEngine/Fyrox?rev=5762ef5e75fd77639792d18cfbd3e34ff8c0ce46#5762ef5e75fd77639792d18cfbd3e34ff8c0ce46" +dependencies = [ + "fyrox-impl", +] + +[[package]] +name = "fyrox-animation" +version = "0.1.0" +source = "git+https://github.com/FyroxEngine/Fyrox?rev=5762ef5e75fd77639792d18cfbd3e34ff8c0ce46#5762ef5e75fd77639792d18cfbd3e34ff8c0ce46" +dependencies = [ + "fxhash", + "fyrox-core", + "spade", + "strum", + "strum_macros", +] + +[[package]] +name = "fyrox-core" +version = "0.27.0" +source = "git+https://github.com/FyroxEngine/Fyrox?rev=5762ef5e75fd77639792d18cfbd3e34ff8c0ce46#5762ef5e75fd77639792d18cfbd3e34ff8c0ce46" +dependencies = [ + "android-activity", + "arrayvec", + "base64", + "bincode", + "bitflags 2.4.2", + "byteorder", + "futures", + "fxhash", + "fyrox-core-derive", + "fyrox-math 0.1.0 (git+https://github.com/FyroxEngine/Fyrox?rev=5762ef5e75fd77639792d18cfbd3e34ff8c0ce46)", + "instant", + "js-sys", + "lazy_static", + "memoffset", + "nalgebra", + "notify", + "num-traits", + "once_cell", + "parking_lot", + "rand", + "serde", + "uuid", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "fyrox-core-derive" +version = "0.22.0" +source = "git+https://github.com/FyroxEngine/Fyrox?rev=5762ef5e75fd77639792d18cfbd3e34ff8c0ce46#5762ef5e75fd77639792d18cfbd3e34ff8c0ce46" +dependencies = [ + "convert_case", + "darling", + "fxhash", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "fyrox-graph" +version = "0.1.0" +source = "git+https://github.com/FyroxEngine/Fyrox?rev=5762ef5e75fd77639792d18cfbd3e34ff8c0ce46#5762ef5e75fd77639792d18cfbd3e34ff8c0ce46" +dependencies = [ + "fxhash", + "fyrox-core", + "fyrox-resource", +] + +[[package]] +name = "fyrox-impl" +version = "0.33.1" +source = "git+https://github.com/FyroxEngine/Fyrox?rev=5762ef5e75fd77639792d18cfbd3e34ff8c0ce46#5762ef5e75fd77639792d18cfbd3e34ff8c0ce46" dependencies = [ "base64", "bitflags 2.4.2", @@ -1003,9 +1078,12 @@ dependencies = [ "glutin", "glutin-winit", "half", + "hashbrown", "image", "inflate", "lazy_static", + "libloading", + "lightmap", "rapier2d", "rapier3d", "raw-window-handle 0.5.2", @@ -1021,76 +1099,34 @@ dependencies = [ ] [[package]] -name = "fyrox-animation" +name = "fyrox-math" version = "0.1.0" -source = "git+https://github.com/FyroxEngine/Fyrox#5398c6e8dd9385af9bbdd6c642f161dda9d13bfe" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4811e6142fd4c525f171e0851503afc57de4d81a02201e33b630de536bc1bf26" dependencies = [ - "fxhash", - "fyrox-core", - "spade", - "strum", - "strum_macros", -] - -[[package]] -name = "fyrox-core" -version = "0.27.0" -source = "git+https://github.com/FyroxEngine/Fyrox#5398c6e8dd9385af9bbdd6c642f161dda9d13bfe" -dependencies = [ - "android-activity", "arrayvec", - "base64", - "bincode", - "bitflags 2.4.2", - "byteorder", - "futures", - "fxhash", - "fyrox-core-derive", - "instant", - "js-sys", - "lazy_static", - "memoffset", "nalgebra", - "notify", "num-traits", - "once_cell", - "parking_lot", - "rand", "rectutils", - "serde", "uuid", - "wasm-bindgen", - "wasm-bindgen-futures", - "web-sys", ] [[package]] -name = "fyrox-core-derive" -version = "0.22.0" -source = "git+https://github.com/FyroxEngine/Fyrox#5398c6e8dd9385af9bbdd6c642f161dda9d13bfe" -dependencies = [ - "convert_case", - "darling", - "fxhash", - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "fyrox-graph" +name = "fyrox-math" version = "0.1.0" -source = "git+https://github.com/FyroxEngine/Fyrox#5398c6e8dd9385af9bbdd6c642f161dda9d13bfe" +source = "git+https://github.com/FyroxEngine/Fyrox?rev=5762ef5e75fd77639792d18cfbd3e34ff8c0ce46#5762ef5e75fd77639792d18cfbd3e34ff8c0ce46" dependencies = [ - "fxhash", - "fyrox-core", - "fyrox-resource", + "arrayvec", + "nalgebra", + "num-traits", + "rectutils", + "uuid", ] [[package]] name = "fyrox-resource" version = "0.11.0" -source = "git+https://github.com/FyroxEngine/Fyrox#5398c6e8dd9385af9bbdd6c642f161dda9d13bfe" +source = "git+https://github.com/FyroxEngine/Fyrox?rev=5762ef5e75fd77639792d18cfbd3e34ff8c0ce46#5762ef5e75fd77639792d18cfbd3e34ff8c0ce46" dependencies = [ "fxhash", "fyrox-core", @@ -1103,7 +1139,7 @@ dependencies = [ [[package]] name = "fyrox-sound" version = "0.34.0" -source = "git+https://github.com/FyroxEngine/Fyrox#5398c6e8dd9385af9bbdd6c642f161dda9d13bfe" +source = "git+https://github.com/FyroxEngine/Fyrox?rev=5762ef5e75fd77639792d18cfbd3e34ff8c0ce46#5762ef5e75fd77639792d18cfbd3e34ff8c0ce46" dependencies = [ "fyrox-core", "fyrox-resource", @@ -1120,7 +1156,7 @@ dependencies = [ [[package]] name = "fyrox-ui" version = "0.24.0" -source = "git+https://github.com/FyroxEngine/Fyrox#5398c6e8dd9385af9bbdd6c642f161dda9d13bfe" +source = "git+https://github.com/FyroxEngine/Fyrox?rev=5762ef5e75fd77639792d18cfbd3e34ff8c0ce46#5762ef5e75fd77639792d18cfbd3e34ff8c0ce46" dependencies = [ "copypasta", "fontdue", @@ -1140,7 +1176,7 @@ dependencies = [ [[package]] name = "fyroxed_base" version = "0.20.1" -source = "git+https://github.com/FyroxEngine/Fyrox#5398c6e8dd9385af9bbdd6c642f161dda9d13bfe" +source = "git+https://github.com/FyroxEngine/Fyrox?rev=5762ef5e75fd77639792d18cfbd3e34ff8c0ce46#5762ef5e75fd77639792d18cfbd3e34ff8c0ce46" dependencies = [ "cargo_metadata", "fyrox", @@ -1583,6 +1619,20 @@ dependencies = [ "redox_syscall 0.4.1", ] +[[package]] +name = "lightmap" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1cbfbe5e3b568920f20dbfa053810bc6d1be08aa96d077c2509da1c9be2217ee" +dependencies = [ + "arrayvec", + "fxhash", + "fyrox-math 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", + "nalgebra", + "rayon", + "uvgen", +] + [[package]] name = "linux-raw-sys" version = "0.4.13" diff --git a/Cargo.toml b/Cargo.toml index d22952e..4b24a84 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,9 +5,11 @@ resolver = "2" [workspace.dependencies.fyrox] git = "https://github.com/FyroxEngine/Fyrox" +rev = "5762ef5e75fd77639792d18cfbd3e34ff8c0ce46" [workspace.dependencies.fyroxed_base] git = "https://github.com/FyroxEngine/Fyrox" +rev = "5762ef5e75fd77639792d18cfbd3e34ff8c0ce46" # Optimize the engine in debug builds, but leave project's code non-optimized. # By using this technique, you can still debug you code, but engine will be fully diff --git a/editor/src/main.rs b/editor/src/main.rs index 8b1e7f2..363f9e8 100644 --- a/editor/src/main.rs +++ b/editor/src/main.rs @@ -1,7 +1,7 @@ //! Editor with your game connected to it as a plugin. use fyrox::event_loop::EventLoop; use fyroxed_base::{Editor, StartupData}; -use platformer::GameConstructor; +use platformer::Game; fn main() { let event_loop = EventLoop::new().unwrap(); @@ -11,6 +11,6 @@ fn main() { scenes: vec!["data/scene.rgs".into()], }), ); - editor.add_game_plugin(GameConstructor); + editor.add_game_plugin::(Game::default()); editor.run(event_loop) } diff --git a/executor/src/main.rs b/executor/src/main.rs index ee5983f..2b9c375 100644 --- a/executor/src/main.rs +++ b/executor/src/main.rs @@ -1,9 +1,9 @@ //! Executor with your game connected to it as a plugin. use fyrox::engine::executor::Executor; -use platformer::GameConstructor; +use platformer::Game; fn main() { let mut executor = Executor::new(); - executor.add_plugin_constructor(GameConstructor); + executor.add_plugin::(Game::default()); executor.run() } diff --git a/game/src/lib.rs b/game/src/lib.rs index f560767..236fe24 100644 --- a/game/src/lib.rs +++ b/game/src/lib.rs @@ -3,7 +3,11 @@ use fyrox::core::color::Color; use fyrox::graph::SceneGraph; use fyrox::{ asset::manager::ResourceManager, - core::{log::Log, pool::Handle}, + core::{ + log::Log, + pool::Handle, + visitor::{Visit, VisitResult, Visitor}, + }, engine::GraphicsContext, event::{Event, WindowEvent}, gui::{ @@ -17,11 +21,8 @@ use fyrox::{ UiNode, UserInterface, }, keyboard::{KeyCode, PhysicalKey}, - plugin::{Plugin, PluginConstructor, PluginContext, PluginRegistrationContext}, - scene::{ - graph::Graph, - Scene, - }, + plugin::{Plugin, PluginContext}, + scene::{graph::Graph, Scene}, }; use std::path::Path; mod enemies; @@ -40,20 +41,21 @@ use sound::Sound; const START_LEVEL: u32 = 1; pub struct GameConstructor; -impl PluginConstructor for GameConstructor { - fn register(&self, context: PluginRegistrationContext) { - // Register your scripts here. - let script_constructors = &context.serialization_context.script_constructors; - script_constructors.add::("Enemy"); - script_constructors.add::("Player"); - script_constructors.add::("Sound"); - } +// impl PluginConstructor for GameConstructor { +// fn register(&self, context: PluginRegistrationContext) { +// // Register your scripts here. +// let script_constructors = &context.serialization_context.script_constructors; +// script_constructors.add::("Enemy"); +// script_constructors.add::("Player"); +// script_constructors.add::("Sound"); +// } - fn create_instance(&self, scene_path: Option<&str>, context: PluginContext) -> Box { - Box::new(Game::new(scene_path, context)) - } -} +// fn create_instance(&self, scene_path: Option<&str>, context: PluginContext) -> Box { +// Box::new(Game::new(scene_path, context)) +// } +// } +#[derive(Visit, Default)] pub struct Game { scene: Handle, @@ -66,7 +68,15 @@ pub struct Game { } impl Game { - pub fn new(_scene_path: Option<&str>, ctx: PluginContext) -> Self { + + pub fn default() -> Self { + return Game { + level: 1, + ..Default::default() + }; + } + + pub fn init_game(&self, ctx: PluginContext) -> Self { ctx.task_pool.spawn_plugin_task( UserInterface::load_from_file("data/menu.ui", ctx.resource_manager.clone()), |result, game: &mut Game, ctx| match result { @@ -105,6 +115,18 @@ impl Game { } impl Plugin for Game { + + fn register(&self, #[allow(unused_variables)] context: fyrox::plugin::PluginRegistrationContext) { + let script_constructors = &context.serialization_context.script_constructors; + script_constructors.add::("Enemy"); + script_constructors.add::("Player"); + script_constructors.add::("Sound"); + } + + fn init(&mut self, _scene_path: Option<&str>, context: PluginContext) { + self.init_game(context); + } + fn on_deinit(&mut self, _context: PluginContext) { // Do a cleanup here. } @@ -151,20 +173,24 @@ impl Plugin for Game { if let GraphicsContext::Initialized(ref graphics_context) = context.graphics_context { let window_size = graphics_context.window.inner_size(); for script_scene in &context.script_processor.scripted_scenes { - script_scene.message_sender.send_global(ScreenSizeMessage::Resize { - width: window_size.width, - height: window_size.height, - }); + script_scene + .message_sender + .send_global(ScreenSizeMessage::Resize { + width: window_size.width, + height: window_size.height, + }); } } } if let Event::WindowEvent { event, .. } = event { if let WindowEvent::Resized(size) = event { for script_scene in &context.script_processor.scripted_scenes { - script_scene.message_sender.send_global(ScreenSizeMessage::Resize { - width: size.width, - height: size.height, - }); + script_scene + .message_sender + .send_global(ScreenSizeMessage::Resize { + width: size.width, + height: size.height, + }); } } } diff --git a/settings.ron b/settings.ron index 3bc9535..f43a407 100644 --- a/settings.ron +++ b/settings.ron @@ -315,7 +315,7 @@ ), ), scene_settings: { - "./data/menu.ui": ( + "./data/start-game.ui": ( camera_settings: ( position: (0.0, 1.0, 0.0), yaw: 0.0, @@ -323,61 +323,7 @@ ), node_infos: { ( - index: 12, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 19, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 13, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 23, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 10, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 22, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 17, - generation: 1, - ): ( - is_expanded: false, - ), - ( - index: 5, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 0, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 24, + index: 11, generation: 1, ): ( is_expanded: true, @@ -385,105 +331,6 @@ ( index: 9, generation: 1, - ): ( - is_expanded: false, - ), - ( - index: 21, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 14, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 8, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 18, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 11, - generation: 1, - ): ( - is_expanded: true, - ), - }, - ), - "data/scene.rgs": ( - camera_settings: ( - position: (6.8261476, -3.0730605, -3.0), - yaw: -0.22992551, - pitch: 0.12792419, - ), - node_infos: { - ( - index: 12, - generation: 1, - ): ( - is_expanded: false, - ), - ( - index: 31, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 1, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 50, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 69, - generation: 1, - ): ( - is_expanded: false, - ), - ( - index: 65, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 56, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 35, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 53, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 51, - generation: 1, ): ( is_expanded: true, ), @@ -493,132 +340,6 @@ ): ( is_expanded: true, ), - ( - index: 83, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 63, - generation: 1, - ): ( - is_expanded: false, - ), - ( - index: 82, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 45, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 17, - generation: 1, - ): ( - is_expanded: false, - ), - ( - index: 28, - generation: 1, - ): ( - is_expanded: false, - ), - ( - index: 84, - generation: 1, - ): ( - is_expanded: false, - ), - ( - index: 90, - generation: 1, - ): ( - is_expanded: false, - ), - ( - index: 22, - generation: 1, - ): ( - is_expanded: false, - ), - ( - index: 40, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 48, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 29, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 49, - generation: 1, - ): ( - is_expanded: false, - ), - ( - index: 41, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 54, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 92, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 18, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 87, - generation: 1, - ): ( - is_expanded: false, - ), - ( - index: 55, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 59, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 89, - generation: 1, - ): ( - is_expanded: true, - ), ( index: 2, generation: 1, @@ -626,59 +347,275 @@ is_expanded: true, ), ( - index: 20, + index: 3, generation: 1, ): ( is_expanded: true, ), ( - index: 15, + index: 10, generation: 1, ): ( is_expanded: true, ), ( - index: 91, + index: 1, generation: 1, ): ( is_expanded: true, ), ( - index: 95, + index: 4, generation: 1, ): ( is_expanded: true, ), ( - index: 37, + index: 8, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 6, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 0, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 7, + generation: 1, + ): ( + is_expanded: true, + ), + }, + ), + "./data/menu.ui": ( + camera_settings: ( + position: (0.0, 1.0, 0.0), + yaw: 0.0, + pitch: 0.0, + ), + node_infos: { + ( + index: 9, generation: 1, ): ( is_expanded: false, ), ( - index: 21, + index: 19, generation: 1, ): ( - is_expanded: false, + is_expanded: true, + ), + ( + index: 22, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 23, + generation: 1, + ): ( + is_expanded: true, ), ( index: 25, generation: 1, ): ( - is_expanded: false, + is_expanded: true, ), ( - index: 27, + index: 0, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 8, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 11, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 21, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 24, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 17, generation: 1, ): ( is_expanded: false, ), + ( + index: 14, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 5, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 12, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 10, + generation: 1, + ): ( + is_expanded: false, + ), + ( + index: 18, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 13, + generation: 1, + ): ( + is_expanded: true, + ), + }, + ), + "data/scene.rgs": ( + camera_settings: ( + position: (6.5682197, -3.004286, -3.0), + yaw: 0.18099509, + pitch: 0.008367186, + ), + node_infos: { + ( + index: 55, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 69, + generation: 1, + ): ( + is_expanded: false, + ), + ( + index: 3, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 52, + generation: 1, + ): ( + is_expanded: true, + ), ( index: 26, generation: 1, ): ( is_expanded: true, ), + ( + index: 0, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 49, + generation: 1, + ): ( + is_expanded: false, + ), + ( + index: 58, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 53, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 84, + generation: 1, + ): ( + is_expanded: false, + ), + ( + index: 30, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 24, + generation: 1, + ): ( + is_expanded: false, + ), + ( + index: 75, + generation: 1, + ): ( + is_expanded: false, + ), + ( + index: 82, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 13, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 80, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 87, + generation: 1, + ): ( + is_expanded: false, + ), ( index: 38, generation: 1, @@ -692,310 +629,13 @@ is_expanded: true, ), ( - index: 6, + index: 20, generation: 1, ): ( is_expanded: true, ), ( - index: 36, - generation: 1, - ): ( - is_expanded: false, - ), - ( - index: 46, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 3, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 71, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 19, - generation: 1, - ): ( - is_expanded: false, - ), - ( - index: 42, - generation: 1, - ): ( - is_expanded: false, - ), - ( - index: 4, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 11, - generation: 1, - ): ( - is_expanded: false, - ), - ( - index: 62, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 13, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 58, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 52, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 86, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 7, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 93, - generation: 1, - ): ( - is_expanded: false, - ), - ( - index: 16, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 66, - generation: 1, - ): ( - is_expanded: false, - ), - ( - index: 14, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 57, - generation: 1, - ): ( - is_expanded: false, - ), - ( - index: 60, - generation: 1, - ): ( - is_expanded: false, - ), - ( - index: 72, - generation: 1, - ): ( - is_expanded: false, - ), - ( - index: 78, - generation: 1, - ): ( - is_expanded: false, - ), - ( - index: 81, - generation: 1, - ): ( - is_expanded: false, - ), - ( - index: 74, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 80, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 10, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 30, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 33, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 24, - generation: 1, - ): ( - is_expanded: false, - ), - ( - index: 94, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 0, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 8, - generation: 1, - ): ( - is_expanded: false, - ), - ( - index: 9, - generation: 1, - ): ( - is_expanded: false, - ), - ( - index: 43, - generation: 1, - ): ( - is_expanded: false, - ), - ( - index: 23, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 44, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 34, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 77, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 32, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 75, - generation: 1, - ): ( - is_expanded: false, - ), - ( - index: 39, - generation: 1, - ): ( - is_expanded: false, - ), - }, - ), - "./data/start-game.ui": ( - camera_settings: ( - position: (0.0, 1.0, 0.0), - yaw: 0.0, - pitch: 0.0, - ), - node_infos: { - ( - index: 3, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 6, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 2, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 10, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 11, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 5, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 7, - generation: 1, - ): ( - is_expanded: true, - ), - ( - index: 9, + index: 18, generation: 1, ): ( is_expanded: true, @@ -1007,7 +647,301 @@ is_expanded: true, ), ( - index: 4, + index: 81, + generation: 1, + ): ( + is_expanded: false, + ), + ( + index: 62, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 9, + generation: 1, + ): ( + is_expanded: false, + ), + ( + index: 78, + generation: 1, + ): ( + is_expanded: false, + ), + ( + index: 39, + generation: 1, + ): ( + is_expanded: false, + ), + ( + index: 7, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 2, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 42, + generation: 1, + ): ( + is_expanded: false, + ), + ( + index: 44, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 50, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 12, + generation: 1, + ): ( + is_expanded: false, + ), + ( + index: 21, + generation: 1, + ): ( + is_expanded: false, + ), + ( + index: 41, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 77, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 94, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 71, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 10, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 74, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 17, + generation: 1, + ): ( + is_expanded: false, + ), + ( + index: 92, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 14, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 66, + generation: 1, + ): ( + is_expanded: false, + ), + ( + index: 35, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 72, + generation: 1, + ): ( + is_expanded: false, + ), + ( + index: 37, + generation: 1, + ): ( + is_expanded: false, + ), + ( + index: 19, + generation: 1, + ): ( + is_expanded: false, + ), + ( + index: 33, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 15, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 59, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 54, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 16, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 29, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 83, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 22, + generation: 1, + ): ( + is_expanded: false, + ), + ( + index: 36, + generation: 1, + ): ( + is_expanded: false, + ), + ( + index: 43, + generation: 1, + ): ( + is_expanded: false, + ), + ( + index: 5, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 40, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 11, + generation: 1, + ): ( + is_expanded: false, + ), + ( + index: 6, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 48, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 23, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 46, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 32, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 45, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 27, + generation: 1, + ): ( + is_expanded: false, + ), + ( + index: 86, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 60, + generation: 1, + ): ( + is_expanded: false, + ), + ( + index: 25, + generation: 1, + ): ( + is_expanded: false, + ), + ( + index: 91, generation: 1, ): ( is_expanded: true, @@ -1016,14 +950,86 @@ index: 8, generation: 1, ): ( - is_expanded: true, + is_expanded: false, ), ( - index: 0, + index: 34, generation: 1, ): ( is_expanded: true, ), + ( + index: 63, + generation: 1, + ): ( + is_expanded: false, + ), + ( + index: 51, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 93, + generation: 1, + ): ( + is_expanded: false, + ), + ( + index: 31, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 28, + generation: 1, + ): ( + is_expanded: false, + ), + ( + index: 95, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 65, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 56, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 57, + generation: 1, + ): ( + is_expanded: false, + ), + ( + index: 4, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 89, + generation: 1, + ): ( + is_expanded: true, + ), + ( + index: 90, + generation: 1, + ): ( + is_expanded: false, + ), }, ), },