generated from tipragot/rust
Changing the structure of map-related programmes (#51)
All checks were successful
Rust Checks / checks (push) Successful in 1m43s
All checks were successful
Rust Checks / checks (push) Successful in 1m43s
Reviewed-on: corentin/border-wars#51 Reviewed-by: Tipragot <contact@tipragot.fr> Co-authored-by: CoCoSol007 <solois.corentin@gmail.com> Co-committed-by: CoCoSol007 <solois.corentin@gmail.com>
This commit is contained in:
parent
5719e278a2
commit
663a4160a2
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
use bevy::prelude::*;
|
use bevy::prelude::*;
|
||||||
|
|
||||||
pub mod hex;
|
pub mod map;
|
||||||
pub mod scenes;
|
pub mod scenes;
|
||||||
|
|
||||||
/// The current scene of the game.
|
/// The current scene of the game.
|
||||||
|
|
|
@ -39,7 +39,7 @@ impl<T: HexNumber> HexPosition<T> {
|
||||||
/// # Example
|
/// # Example
|
||||||
///
|
///
|
||||||
/// ```no_run
|
/// ```no_run
|
||||||
/// use border_wars::hex::HexPosition;
|
/// use border_wars::map::hex::HexPosition;
|
||||||
///
|
///
|
||||||
/// let a = HexPosition { q: 0, r: 0 };
|
/// let a = HexPosition { q: 0, r: 0 };
|
||||||
/// let b = HexPosition { q: 1, r: 1 };
|
/// let b = HexPosition { q: 1, r: 1 };
|
||||||
|
@ -70,7 +70,7 @@ impl<T: HexNumber + Eq + Hash + std::cmp::PartialOrd + num::ToPrimitive> HexPosi
|
||||||
/// # Example
|
/// # Example
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// use border_wars::hex::HexPosition;
|
/// use border_wars::map::hex::HexPosition;
|
||||||
///
|
///
|
||||||
/// let position = HexPosition { q: 0, r: 0 };
|
/// let position = HexPosition { q: 0, r: 0 };
|
||||||
///
|
///
|
3
crates/border-wars/src/map/mod.rs
Normal file
3
crates/border-wars/src/map/mod.rs
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
//! Contains all the logic related to the map.
|
||||||
|
|
||||||
|
pub mod hex;
|
Loading…
Reference in a new issue