diff --git a/Cargo.lock b/Cargo.lock index a3d251d..f049ca9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1614,6 +1614,12 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" +[[package]] +name = "claims" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bba18ee93d577a8428902687bcc2b6b45a56b1981a1f6d779731c86cc4c5db18" + [[package]] name = "clang-sys" version = "1.8.1" @@ -3129,16 +3135,18 @@ dependencies = [ [[package]] name = "maze-ascension" -version = "1.0.2" +version = "1.0.3" dependencies = [ "anyhow", "bevy", "bevy-inspector-egui", "bevy_egui", + "claims", "hexlab", "hexx", "log", "rand", + "rayon", "rstest", "rstest_reuse", "strum", diff --git a/Cargo.toml b/Cargo.toml index 3ef7be1..57f938c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "maze-ascension" authors = ["Kristofers Solo "] -version = "1.0.2" +version = "1.0.3" edition = "2021" [dependencies] @@ -26,6 +26,8 @@ anyhow = "1" strum = { version = "0.26", features = ["derive"] } [dev-dependencies] +claims = "0.8.0" +rayon = "1.10.0" rstest = "0.24" rstest_reuse = "0.7" test-log = { version = "0.2.16", default-features = false, features = [ diff --git a/justfile b/justfile index e75c474..eea0280 100644 --- a/justfile +++ b/justfile @@ -12,7 +12,7 @@ native-release: # Run web dev web-dev: - RUST_BACKTRACE=full trunk serve + RUSTC_WRAPPER=sccache RUST_BACKTRACE=full trunk serve # Run web release web-release: @@ -20,8 +20,8 @@ web-release: # Run tests test: - RUSTC_WRAPPER=sccache RUST_BACKTRACE=full cargo test --doc --locked --workspace --no-default-features - RUSTC_WRAPPER=sccache RUST_BACKTRACE=full cargo nextest run --no-default-features --all-targets + RUSTC_WRAPPER=sccache cargo test --doc --locked --workspace --no-default-features + RUSTC_WRAPPER=sccache cargo nextest run --no-default-features --all-targets # Run CI localy ci: diff --git a/src/floor/systems/movement.rs b/src/floor/systems/movement.rs index 526d2f8..fccabac 100644 --- a/src/floor/systems/movement.rs +++ b/src/floor/systems/movement.rs @@ -4,7 +4,7 @@ use crate::{ components::{CurrentFloor, Floor, FloorYTarget}, events::TransitionFloor, }, - maze::components::HexMaze, + maze::components::{HexMaze, MazeConfig}, player::components::{MovementSpeed, Player}, }; @@ -18,13 +18,22 @@ use bevy::prelude::*; /// - Removes FloorYTarget component when floor reaches destination pub fn move_floors( mut commands: Commands, - mut maze_query: Query<(Entity, &mut Transform, &FloorYTarget), With>, + mut maze_query: Query< + ( + Entity, + &mut Transform, + &FloorYTarget, + &MazeConfig, + Has, + ), + With, + >, player_query: Query<&MovementSpeed, With>, time: Res