Privatize internal modules and adjust re‑exports

This commit is contained in:
2026-04-16 22:22:32 +02:00
parent e6d87dd064
commit f5ef4b4931
11 changed files with 37 additions and 37 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
pub mod base; mod base;
pub use base::BaseBuilding; pub use base::BaseBuilding;
+4 -4
View File
@@ -1,7 +1,7 @@
pub mod block_title; mod block_title;
pub mod cells_area; mod cells_area;
pub mod main_menu_option; mod main_menu_option;
pub mod zoom_level; mod zoom_level;
pub use block_title::{block_single_title_helper, block_title_helper}; pub use block_title::{block_single_title_helper, block_title_helper};
pub use cells_area::cells_area_helper; pub use cells_area::cells_area_helper;
+1 -1
View File
@@ -101,7 +101,7 @@ pub struct KeyBinding {
/// ///
/// The slice is ordered primarily for readability; the runtime lookup scans /// The slice is ordered primarily for readability; the runtime lookup scans
/// this slice linearly, which is acceptable given the modest size of the list. /// this slice linearly, which is acceptable given the modest size of the list.
pub static KEYBINDINGS: &[KeyBinding] = &[ static KEYBINDINGS: &[KeyBinding] = &[
KeyBinding { KeyBinding {
action: Action::Quit, action: Action::Quit,
code: KeyCode::Char('q'), code: KeyCode::Char('q'),
+5 -5
View File
@@ -1,11 +1,11 @@
pub mod default; mod default;
pub mod keybindings; mod keybindings;
pub mod main_menu; mod main_menu;
pub mod skirmish; mod skirmish;
pub use default::{common_keybindings, default_keybindings}; pub use default::{common_keybindings, default_keybindings};
pub use keybindings::{ pub use keybindings::{
Action, Group, KEYBINDINGS, KeyBinding, binding_for, count_largest_group, event_to_action, Action, Group, KeyBinding, binding_for, count_largest_group, event_to_action,
}; };
pub use main_menu::main_menu_keybindings; pub use main_menu::main_menu_keybindings;
pub use skirmish::skirmish_keybindings; pub use skirmish::skirmish_keybindings;
+9 -9
View File
@@ -1,15 +1,15 @@
pub mod app; mod app;
pub mod buildings; mod buildings;
pub mod helpers; mod helpers;
pub mod keybind; mod keybind;
pub mod keybindings; mod keybindings;
pub mod state; mod state;
pub mod states; pub mod states;
pub mod threads; pub mod threads;
pub mod units; mod units;
pub mod view; pub mod view;
pub mod views; mod views;
pub mod widgets; mod widgets;
pub use app::App; pub use app::App;
pub use keybind::handle_keybindings; pub use keybind::handle_keybindings;
+5 -5
View File
@@ -1,8 +1,8 @@
pub mod main_menu; mod main_menu;
pub mod perk_decks; mod perk_decks;
pub mod settings; mod settings;
pub mod skills_config; mod skills_config;
pub mod skirmish; mod skirmish;
pub mod skirmish_states; pub mod skirmish_states;
pub use main_menu::MainMenuState; pub use main_menu::MainMenuState;
+3 -3
View File
@@ -1,6 +1,6 @@
pub mod board; mod board;
pub mod focused_cell; mod focused_cell;
pub mod offset; mod offset;
pub use board::BoardState; pub use board::BoardState;
pub use focused_cell::{FocusedCell, MoveFocusedCell}; pub use focused_cell::{FocusedCell, MoveFocusedCell};
+2 -2
View File
@@ -1,5 +1,5 @@
pub mod audio; mod audio;
pub mod events; mod events;
pub use audio::{AudioCmd, SoundrackParts, Soundtrack, handle_audio}; pub use audio::{AudioCmd, SoundrackParts, Soundtrack, handle_audio};
pub use events::{AppEvent, handle_events}; pub use events::{AppEvent, handle_events};
+1 -1
View File
@@ -1,3 +1,3 @@
pub mod miner; mod miner;
pub use miner::MinerUnit; pub use miner::MinerUnit;
+3 -3
View File
@@ -1,6 +1,6 @@
pub mod default; mod default;
pub mod main_menu; mod main_menu;
pub mod skirmish; mod skirmish;
pub use default::default_view; pub use default::default_view;
pub use main_menu::main_menu_view; pub use main_menu::main_menu_view;
+3 -3
View File
@@ -1,6 +1,6 @@
pub mod board; mod board;
pub mod cell; mod cell;
pub mod keybindings; mod keybindings;
pub use board::BoardWidget; pub use board::BoardWidget;
pub use cell::CellWidget; pub use cell::CellWidget;