From 758372f9381e2748999c59b2e1ec6a7b1d9d77a8 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Fri, 10 Feb 2023 18:19:06 +0000 Subject: improve docs a bit more and delete potatobot example --- azalea/src/swarm/mod.rs | 2 +- azalea/src/swarm/prelude.rs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 azalea/src/swarm/prelude.rs (limited to 'azalea/src') diff --git a/azalea/src/swarm/mod.rs b/azalea/src/swarm/mod.rs index 33402566..dcf412e2 100644 --- a/azalea/src/swarm/mod.rs +++ b/azalea/src/swarm/mod.rs @@ -29,7 +29,7 @@ use tokio::sync::mpsc; /// A swarm is a way to conveniently control many bots at once, while also /// being able to control bots at an individual level when desired. /// -/// Swarms are created from [`azalea::SwarmBuilder`]. +/// Swarms are created from [`azalea::swarm::SwarmBuilder`]. /// /// The `S` type parameter is the type of the state for individual bots. /// It's used to make the [`Swarm::add`] function work. diff --git a/azalea/src/swarm/prelude.rs b/azalea/src/swarm/prelude.rs new file mode 100644 index 00000000..18012ebd --- /dev/null +++ b/azalea/src/swarm/prelude.rs @@ -0,0 +1,3 @@ +//! A prelude that re-exports common swarm types in Azalea. + +pub use crate::swarm::{Swarm, SwarmBuilder, SwarmEvent}; -- cgit v1.2.3