generated from GarandPLG/rust-flake-template
Move buildings and units under skirmish_states
Reorganize the codebase by moving the buildings and units modules into the skirmish_states namespace, updating imports accordingly.
This commit is contained in:
@@ -1,12 +1,10 @@
|
|||||||
mod app;
|
mod app;
|
||||||
mod buildings;
|
|
||||||
pub mod helpers;
|
pub mod helpers;
|
||||||
mod keybind;
|
mod keybind;
|
||||||
mod keybindings;
|
mod keybindings;
|
||||||
mod state;
|
mod state;
|
||||||
pub mod states;
|
pub mod states;
|
||||||
pub mod threads;
|
pub mod threads;
|
||||||
mod units;
|
|
||||||
pub mod view;
|
pub mod view;
|
||||||
mod views;
|
mod views;
|
||||||
mod widgets;
|
mod widgets;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
use crate::app::{buildings::BaseBuilding, states::skirmish_states::BoardState, units::MinerUnit};
|
use crate::app::states::skirmish_states::{BoardState, buildings::BaseBuilding, units::MinerUnit};
|
||||||
use clap::ValueEnum;
|
use clap::ValueEnum;
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
use crate::app::{
|
use crate::app::{
|
||||||
buildings::BaseBuilding,
|
|
||||||
helpers::{CellSizes, cell_size_helper, cells_area_helper},
|
helpers::{CellSizes, cell_size_helper, cells_area_helper},
|
||||||
states::{
|
states::{
|
||||||
CellStructure, FocusedCell, Offset, Players, Units, ZoomLevel,
|
CellStructure, FocusedCell, Offset, Players, Units, ZoomLevel,
|
||||||
skirmish_states::MoveFocusedCell,
|
skirmish_states::{MoveFocusedCell, buildings::BaseBuilding, units::MinerUnit},
|
||||||
},
|
},
|
||||||
units::MinerUnit,
|
|
||||||
widgets::CellWidget,
|
widgets::CellWidget,
|
||||||
};
|
};
|
||||||
use ratatui::layout::Rect;
|
use ratatui::layout::Rect;
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
mod board;
|
mod board;
|
||||||
|
pub mod buildings;
|
||||||
mod focused_cell;
|
mod focused_cell;
|
||||||
mod offset;
|
mod offset;
|
||||||
|
pub mod units;
|
||||||
|
|
||||||
pub use board::BoardState;
|
pub use board::BoardState;
|
||||||
pub use focused_cell::{FocusedCell, MoveFocusedCell};
|
pub use focused_cell::{FocusedCell, MoveFocusedCell};
|
||||||
|
|||||||
Reference in New Issue
Block a user