mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
doc warnings
This commit is contained in:
parent
e0d3352a90
commit
ad4eaa174c
4 changed files with 8 additions and 7 deletions
|
@ -68,10 +68,10 @@ impl Client {
|
|||
/// A component that indicates that this client will be attacking the given
|
||||
/// entity next tick.
|
||||
#[derive(Component, Clone, Debug)]
|
||||
struct AttackQueued {
|
||||
pub struct AttackQueued {
|
||||
pub target: MinecraftEntityId,
|
||||
}
|
||||
fn handle_attack_queued(
|
||||
pub fn handle_attack_queued(
|
||||
mut commands: Commands,
|
||||
mut query: Query<(
|
||||
Entity,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
//! Defines the [`Event`] enum and makes those events trigger when they're sent
|
||||
//! in the ECS.
|
||||
//! Defines the [`enum@Event`] enum and makes those events trigger when they're
|
||||
//! sent in the ECS.
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
|
|
|
@ -37,7 +37,8 @@ pub fn send_tick_broadcast(tick_broadcast: ResMut<TickBroadcast>) {
|
|||
pub fn send_update_broadcast(update_broadcast: ResMut<UpdateBroadcast>) {
|
||||
let _ = update_broadcast.0.send(());
|
||||
}
|
||||
/// A plugin that makes the [`RanScheduleBroadcast`] resource available.
|
||||
/// A plugin that makes the [`UpdateBroadcast`] and [`TickBroadcast`] resources
|
||||
/// available.
|
||||
pub struct TickBroadcastPlugin;
|
||||
impl Plugin for TickBroadcastPlugin {
|
||||
fn build(&self, app: &mut App) {
|
||||
|
|
|
@ -161,8 +161,8 @@ impl<SS, SR> SwarmBuilder<NoState, SS, (), SR>
|
|||
where
|
||||
SS: Default + Send + Sync + Clone + Resource + 'static,
|
||||
{
|
||||
/// Set the function that's called every time a bot receives an [`Event`].
|
||||
/// This is the way to handle normal per-bot events.
|
||||
/// Set the function that's called every time a bot receives an
|
||||
/// [`enum@Event`]. This is the way to handle normal per-bot events.
|
||||
///
|
||||
/// Currently you can have up to one handler.
|
||||
///
|
||||
|
|
Loading…
Add table
Reference in a new issue