mirror of
https://github.com/kristoferssolo/hexlab.git
synced 2025-10-21 19:40:34 +00:00
refactor: rename files
This commit is contained in:
parent
6660b4613d
commit
012d1e5cca
@ -190,7 +190,7 @@ impl MazeBuilder {
|
||||
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 radius = i32::from(radius);
|
||||
|
||||
|
||||
@ -51,14 +51,14 @@
|
||||
//!```
|
||||
mod builder;
|
||||
mod generator;
|
||||
mod hex_maze;
|
||||
mod hex_tile;
|
||||
mod maze;
|
||||
mod tile;
|
||||
mod walls;
|
||||
|
||||
pub use builder::{MazeBuilder, MazeBuilderError};
|
||||
pub use generator::GeneratorType;
|
||||
pub use hex_maze::HexMaze;
|
||||
pub use hex_tile::HexTile;
|
||||
pub use maze::HexMaze;
|
||||
pub use tile::HexTile;
|
||||
pub use walls::Walls;
|
||||
|
||||
/// Prelude module containing commonly used types
|
||||
|
||||
@ -12,6 +12,7 @@ use std::ops::{Deref, DerefMut};
|
||||
///
|
||||
/// This struct stores the layout of a hexagonal maze, including the positions
|
||||
/// of tiles and their associated walls.
|
||||
#[allow(clippy::module_name_repetitions)]
|
||||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
||||
#[cfg_attr(feature = "bevy_reflect", derive(Reflect))]
|
||||
#[cfg_attr(feature = "bevy", derive(Component))]
|
||||
@ -9,6 +9,7 @@ use std::fmt::Display;
|
||||
/// Represents a single hexagonal tile in the maze
|
||||
///
|
||||
/// 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 = "bevy_reflect", derive(Reflect))]
|
||||
#[cfg_attr(feature = "bevy", derive(Component))]
|
||||
Loading…
Reference in New Issue
Block a user