diff --git a/immediate_stats/examples/simple_bevy.rs b/immediate_stats/examples/simple_bevy.rs index 377eaf2..209f13d 100644 --- a/immediate_stats/examples/simple_bevy.rs +++ b/immediate_stats/examples/simple_bevy.rs @@ -2,7 +2,7 @@ //! There are two other versions of this example, one using a simple main loop and the other using Bevy Butler. use bevy::prelude::*; -use immediate_stats::{Stat, StatContainer, reset_component_modifiers}; +use immediate_stats::*; #[derive(StatContainer, Component)] struct Speed(Stat); diff --git a/immediate_stats/examples/simple_bevy_butler.rs b/immediate_stats/examples/simple_bevy_butler.rs index 1a6c095..a8e0ddd 100644 --- a/immediate_stats/examples/simple_bevy_butler.rs +++ b/immediate_stats/examples/simple_bevy_butler.rs @@ -2,8 +2,8 @@ //! There are two other versions of this example, one using a simple main loop and the other using Bevy. use bevy::prelude::*; -use bevy_butler::{add_system, butler_plugin}; -use immediate_stats::{Stat, StatContainer}; +use bevy_butler::*; +use immediate_stats::*; #[butler_plugin] struct SpeedPlugin; diff --git a/immediate_stats/src/lib.rs b/immediate_stats/src/lib.rs index 7cda295..c0abdb7 100644 --- a/immediate_stats/src/lib.rs +++ b/immediate_stats/src/lib.rs @@ -75,9 +75,9 @@ //! | `0.16` | `0.1` | #[cfg(feature = "bevy")] -pub mod bevy; -pub mod modifier; -pub mod stat; +mod bevy; +mod modifier; +mod stat; /// Implements [`reset_modifiers`](StatContainer::reset_modifiers) /// by propagating the call down to any `StatContainer` fields. diff --git a/immediate_stats/src/modifier.rs b/immediate_stats/src/modifier.rs index 54443e1..c3d7e24 100644 --- a/immediate_stats/src/modifier.rs +++ b/immediate_stats/src/modifier.rs @@ -2,7 +2,7 @@ use std::ops::{AddAssign, DivAssign, MulAssign, SubAssign}; -/// Modifier values that can be applied to a [`super::Stat`]. +/// Modifier values that can be [applied](super::Stat::apply) to a [`Stat`](super::Stat). #[derive(PartialEq, Debug, Copy, Clone)] #[cfg_attr( feature = "bevy", diff --git a/immediate_stats/tests/bevy_butler.rs b/immediate_stats/tests/bevy_butler.rs index ef5d489..95f370f 100644 --- a/immediate_stats/tests/bevy_butler.rs +++ b/immediate_stats/tests/bevy_butler.rs @@ -1,8 +1,7 @@ //! Tests the `add_component` attribute for automatic system registration. #![cfg(feature = "bevy_butler")] -use crate::StatContainer; -use crate::stat::Stat; +use crate::{Stat, StatContainer}; use bevy_app::App; use bevy_butler::*; use bevy_ecs::prelude::*; diff --git a/immediate_stats_macros/src/bevy_butler.rs b/immediate_stats_macros/src/bevy_butler.rs index d41d171..c1eb4d3 100644 --- a/immediate_stats_macros/src/bevy_butler.rs +++ b/immediate_stats_macros/src/bevy_butler.rs @@ -48,7 +48,7 @@ impl<'a> ToTokens for ButlerAttributes<'a> { tokens.extend(quote! { #[bevy_butler::add_system(generics = <#ident>, plugin = #plugin, schedule = immediate_stats::PreUpdate)] - use immediate_stats::bevy::reset_component_modifiers as #use_as; + use immediate_stats::reset_component_modifiers as #use_as; }); } @@ -59,7 +59,7 @@ impl<'a> ToTokens for ButlerAttributes<'a> { tokens.extend(quote! { #[bevy_butler::add_system(generics = <#ident>, plugin = #plugin, schedule = immediate_stats::PreUpdate)] - use immediate_stats::bevy::reset_resource_modifiers as #use_as; + use immediate_stats::reset_resource_modifiers as #use_as; }); } }