From c690e7240514217c189adf870ffcabb594755b04 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 4 May 2023 20:11:29 -0500 Subject: export brigadier from azalea --- Cargo.lock | 1 + azalea-brigadier/src/command_dispatcher.rs | 1 + azalea/Cargo.toml | 1 + azalea/src/lib.rs | 1 + 4 files changed, 4 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 713c4bf7..cb1098cc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -166,6 +166,7 @@ dependencies = [ "async-trait", "azalea-auth", "azalea-block", + "azalea-brigadier", "azalea-chat", "azalea-client", "azalea-core", diff --git a/azalea-brigadier/src/command_dispatcher.rs b/azalea-brigadier/src/command_dispatcher.rs index 273b1681..ba41223e 100755 --- a/azalea-brigadier/src/command_dispatcher.rs +++ b/azalea-brigadier/src/command_dispatcher.rs @@ -8,6 +8,7 @@ use crate::{ }; use std::{cell::RefCell, cmp::Ordering, collections::HashMap, marker::PhantomData, mem, rc::Rc}; +/// The root of the command tree. You need to make this to register commands. #[derive(Default)] pub struct CommandDispatcher { pub root: Rc>>, diff --git a/azalea/Cargo.toml b/azalea/Cargo.toml index 5dbc7556..4a7469d3 100644 --- a/azalea/Cargo.toml +++ b/azalea/Cargo.toml @@ -24,6 +24,7 @@ azalea-protocol = { version = "0.6.0", path = "../azalea-protocol" } azalea-registry = { version = "0.6.0", path = "../azalea-registry" } azalea-world = { version = "0.6.0", path = "../azalea-world" } azalea-auth = { version = "0.6.0", path = "../azalea-auth" } +azalea-brigadier = { version = "0.6.0", path = "../azalea-brigadier" } bevy_app = "0.10.0" bevy_ecs = "0.10.0" bevy_tasks = "0.10.0" diff --git a/azalea/src/lib.rs b/azalea/src/lib.rs index 2e8e4fa1..bde94634 100644 --- a/azalea/src/lib.rs +++ b/azalea/src/lib.rs @@ -12,6 +12,7 @@ pub mod swarm; use app::{App, Plugin, PluginGroup}; pub use azalea_auth as auth; pub use azalea_block as blocks; +pub use azalea_brigadier as brigadier; pub use azalea_client::*; pub use azalea_core::{BlockPos, Vec3}; pub use azalea_protocol as protocol; -- cgit v1.2.3