From 2c033f4c7303cb6c126e81c5e491641cedb7aa23 Mon Sep 17 00:00:00 2001 From: Yadunund Date: Mon, 14 Aug 2023 16:38:23 +0800 Subject: [PATCH] Make modules in librmf_site_editor public Signed-off-by: Yadunund --- rmf_site_editor/src/lib.rs | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/rmf_site_editor/src/lib.rs b/rmf_site_editor/src/lib.rs index 733ee98e..17ecec3f 100644 --- a/rmf_site_editor/src/lib.rs +++ b/rmf_site_editor/src/lib.rs @@ -14,43 +14,43 @@ use bevy::{time::FixedTimestep, window::Windows}; extern crate web_sys; -mod aabb; -mod animate; +pub mod aabb; +pub mod animate; -mod keyboard; +pub mod keyboard; use keyboard::*; -mod settings; +pub mod settings; use settings::*; -mod save; +pub mod save; use save::*; -mod widgets; +pub mod widgets; use widgets::*; pub mod occupancy; use occupancy::OccupancyPlugin; mod demo_world; -mod log; +pub mod log; mod recency; mod shapes; use log::LogHistoryPlugin; -mod main_menu; +pub mod main_menu; use main_menu::Autoload; -mod site; +pub mod site; // mod warehouse_generator; -mod workcell; +pub mod workcell; use workcell::WorkcellEditorPlugin; -mod interaction; +pub mod interaction; -mod workspace; +pub mod workspace; use workspace::*; -mod sdf_loader; +pub mod sdf_loader; -mod site_asset_io; -mod urdf_loader; +pub mod site_asset_io; +pub mod urdf_loader; use sdf_loader::*; use aabb::AabbUpdatePlugin; @@ -60,13 +60,13 @@ use site::SitePlugin; use site_asset_io::SiteAssetIoPlugin; #[cfg_attr(not(target_arch = "wasm32"), derive(Parser))] -struct CommandLineArgs { +pub struct CommandLineArgs { /// Filename of a Site (.site.ron) or Building (.building.yaml) file to load. /// Exclude this argument to get the main menu. - filename: Option, + pub filename: Option, /// Name of a Site (.site.ron) file to import on top of the base FILENAME. #[cfg_attr(not(target_arch = "wasm32"), arg(short, long))] - import: Option, + pub import: Option, } #[derive(Clone, Eq, PartialEq, Debug, Hash)] @@ -94,7 +94,7 @@ fn check_browser_window_size(mut windows: ResMut) { } } -fn init_settings(mut settings: ResMut, adapter_info: Res) { +pub fn init_settings(mut settings: ResMut, adapter_info: Res) { // todo: be more sophisticated let is_elite = adapter_info.name.contains("NVIDIA"); if is_elite {