refactor: rename files

This commit is contained in:
Kristofers Solo 2024-12-25 20:56:22 +02:00
parent 6660b4613d
commit 012d1e5cca
4 changed files with 7 additions and 5 deletions

View File

@ -190,7 +190,7 @@ impl MazeBuilder {
Ok(maze) Ok(maze)
} }
} }
pub(crate) fn create_hex_maze(radius: u16) -> HexMaze { pub fn create_hex_maze(radius: u16) -> HexMaze {
let mut maze = HexMaze::new(); let mut maze = HexMaze::new();
let radius = i32::from(radius); let radius = i32::from(radius);

View File

@ -51,14 +51,14 @@
//!``` //!```
mod builder; mod builder;
mod generator; mod generator;
mod hex_maze; mod maze;
mod hex_tile; mod tile;
mod walls; mod walls;
pub use builder::{MazeBuilder, MazeBuilderError}; pub use builder::{MazeBuilder, MazeBuilderError};
pub use generator::GeneratorType; pub use generator::GeneratorType;
pub use hex_maze::HexMaze; pub use maze::HexMaze;
pub use hex_tile::HexTile; pub use tile::HexTile;
pub use walls::Walls; pub use walls::Walls;
/// Prelude module containing commonly used types /// Prelude module containing commonly used types

View File

@ -12,6 +12,7 @@ use std::ops::{Deref, DerefMut};
/// ///
/// This struct stores the layout of a hexagonal maze, including the positions /// This struct stores the layout of a hexagonal maze, including the positions
/// of tiles and their associated walls. /// of tiles and their associated walls.
#[allow(clippy::module_name_repetitions)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[cfg_attr(feature = "bevy_reflect", derive(Reflect))] #[cfg_attr(feature = "bevy_reflect", derive(Reflect))]
#[cfg_attr(feature = "bevy", derive(Component))] #[cfg_attr(feature = "bevy", derive(Component))]

View File

@ -9,6 +9,7 @@ use std::fmt::Display;
/// Represents a single hexagonal tile in the maze /// Represents a single hexagonal tile in the maze
/// ///
/// Each tile has a position and a set of walls defining its boundaries. /// Each tile has a position and a set of walls defining its boundaries.
#[allow(clippy::module_name_repetitions)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[cfg_attr(feature = "bevy_reflect", derive(Reflect))] #[cfg_attr(feature = "bevy_reflect", derive(Reflect))]
#[cfg_attr(feature = "bevy", derive(Component))] #[cfg_attr(feature = "bevy", derive(Component))]