mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
create all empty brigadier modules
This commit is contained in:
parent
96eba2b39a
commit
bd87cbb443
73 changed files with 53 additions and 0 deletions
8
azalea-brigadier/Cargo.toml
Normal file
8
azalea-brigadier/Cargo.toml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
[package]
|
||||||
|
name = "azalea-brigadier"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
[dependencies]
|
0
azalea-brigadier/src/ambiguity_consumer.rs
Normal file
0
azalea-brigadier/src/ambiguity_consumer.rs
Normal file
0
azalea-brigadier/src/arguments/argument_type.rs
Normal file
0
azalea-brigadier/src/arguments/argument_type.rs
Normal file
0
azalea-brigadier/src/arguments/bool_argument_type.rs
Normal file
0
azalea-brigadier/src/arguments/bool_argument_type.rs
Normal file
0
azalea-brigadier/src/arguments/double_argument_type.rs
Normal file
0
azalea-brigadier/src/arguments/double_argument_type.rs
Normal file
0
azalea-brigadier/src/arguments/float_argument_type.rs
Normal file
0
azalea-brigadier/src/arguments/float_argument_type.rs
Normal file
0
azalea-brigadier/src/arguments/integer_argument_type.rs
Normal file
0
azalea-brigadier/src/arguments/integer_argument_type.rs
Normal file
0
azalea-brigadier/src/arguments/long_argument_type.rs
Normal file
0
azalea-brigadier/src/arguments/long_argument_type.rs
Normal file
0
azalea-brigadier/src/arguments/string_argument_type.rs
Normal file
0
azalea-brigadier/src/arguments/string_argument_type.rs
Normal file
0
azalea-brigadier/src/builder/argument_builder.rs
Normal file
0
azalea-brigadier/src/builder/argument_builder.rs
Normal file
0
azalea-brigadier/src/builder/literal_argument_builder.rs
Normal file
0
azalea-brigadier/src/builder/literal_argument_builder.rs
Normal file
0
azalea-brigadier/src/command.rs
Normal file
0
azalea-brigadier/src/command.rs
Normal file
0
azalea-brigadier/src/command_dispatcher.rs
Normal file
0
azalea-brigadier/src/command_dispatcher.rs
Normal file
0
azalea-brigadier/src/context/command_context.rs
Normal file
0
azalea-brigadier/src/context/command_context.rs
Normal file
0
azalea-brigadier/src/context/command_context_builder.rs
Normal file
0
azalea-brigadier/src/context/command_context_builder.rs
Normal file
0
azalea-brigadier/src/context/parsed_argument.rs
Normal file
0
azalea-brigadier/src/context/parsed_argument.rs
Normal file
0
azalea-brigadier/src/context/parsed_command_node.rs
Normal file
0
azalea-brigadier/src/context/parsed_command_node.rs
Normal file
0
azalea-brigadier/src/context/string_range.rs
Normal file
0
azalea-brigadier/src/context/string_range.rs
Normal file
0
azalea-brigadier/src/context/suggestion_context.rs
Normal file
0
azalea-brigadier/src/context/suggestion_context.rs
Normal file
0
azalea-brigadier/src/exceptions/builtin_exceptions.rs
Normal file
0
azalea-brigadier/src/exceptions/builtin_exceptions.rs
Normal file
0
azalea-brigadier/src/immutable_string_reader.rs
Normal file
0
azalea-brigadier/src/immutable_string_reader.rs
Normal file
8
azalea-brigadier/src/lib.rs
Normal file
8
azalea-brigadier/src/lib.rs
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
#[cfg(test)]
|
||||||
|
mod tests {
|
||||||
|
#[test]
|
||||||
|
fn it_works() {
|
||||||
|
let result = 2 + 2;
|
||||||
|
assert_eq!(result, 4);
|
||||||
|
}
|
||||||
|
}
|
0
azalea-brigadier/src/literal_message.rs
Normal file
0
azalea-brigadier/src/literal_message.rs
Normal file
0
azalea-brigadier/src/message.rs
Normal file
0
azalea-brigadier/src/message.rs
Normal file
0
azalea-brigadier/src/parse_results.rs
Normal file
0
azalea-brigadier/src/parse_results.rs
Normal file
0
azalea-brigadier/src/redirect_modifier.rs
Normal file
0
azalea-brigadier/src/redirect_modifier.rs
Normal file
0
azalea-brigadier/src/result_consumer.rs
Normal file
0
azalea-brigadier/src/result_consumer.rs
Normal file
0
azalea-brigadier/src/single_redirect_modifier.rs
Normal file
0
azalea-brigadier/src/single_redirect_modifier.rs
Normal file
0
azalea-brigadier/src/string_reader.rs
Normal file
0
azalea-brigadier/src/string_reader.rs
Normal file
0
azalea-brigadier/src/suggestion/integer_suggestion.rs
Normal file
0
azalea-brigadier/src/suggestion/integer_suggestion.rs
Normal file
0
azalea-brigadier/src/suggestion/suggestion.rs
Normal file
0
azalea-brigadier/src/suggestion/suggestion.rs
Normal file
0
azalea-brigadier/src/suggestion/suggestion_provider.rs
Normal file
0
azalea-brigadier/src/suggestion/suggestion_provider.rs
Normal file
0
azalea-brigadier/src/suggestion/suggestions.rs
Normal file
0
azalea-brigadier/src/suggestion/suggestions.rs
Normal file
0
azalea-brigadier/src/suggestion/suggestions_builder.rs
Normal file
0
azalea-brigadier/src/suggestion/suggestions_builder.rs
Normal file
0
azalea-brigadier/src/tree/argument_command_node.rs
Normal file
0
azalea-brigadier/src/tree/argument_command_node.rs
Normal file
0
azalea-brigadier/src/tree/command_node.rs
Normal file
0
azalea-brigadier/src/tree/command_node.rs
Normal file
0
azalea-brigadier/src/tree/literal_command_node.rs
Normal file
0
azalea-brigadier/src/tree/literal_command_node.rs
Normal file
0
azalea-brigadier/src/tree/root_command_node.rs
Normal file
0
azalea-brigadier/src/tree/root_command_node.rs
Normal file
0
azalea-brigadier/tests/builder/argument_builder_test.rs
Normal file
0
azalea-brigadier/tests/builder/argument_builder_test.rs
Normal file
0
azalea-brigadier/tests/command_dispatcher_test.rs
Normal file
0
azalea-brigadier/tests/command_dispatcher_test.rs
Normal file
0
azalea-brigadier/tests/command_dispatcher_usages_test.rs
Normal file
0
azalea-brigadier/tests/command_dispatcher_usages_test.rs
Normal file
0
azalea-brigadier/tests/command_suggestions_test.rs
Normal file
0
azalea-brigadier/tests/command_suggestions_test.rs
Normal file
0
azalea-brigadier/tests/context/command_context_test.rs
Normal file
0
azalea-brigadier/tests/context/command_context_test.rs
Normal file
0
azalea-brigadier/tests/context/parsed_argument_test.rs
Normal file
0
azalea-brigadier/tests/context/parsed_argument_test.rs
Normal file
0
azalea-brigadier/tests/string_reader_test.rs
Normal file
0
azalea-brigadier/tests/string_reader_test.rs
Normal file
0
azalea-brigadier/tests/suggestion/suggestion_test.rs
Normal file
0
azalea-brigadier/tests/suggestion/suggestion_test.rs
Normal file
0
azalea-brigadier/tests/suggestion/suggestions_test.rs
Normal file
0
azalea-brigadier/tests/suggestion/suggestions_test.rs
Normal file
0
azalea-brigadier/tests/tree/literal_command_node_test.rs
Normal file
0
azalea-brigadier/tests/tree/literal_command_node_test.rs
Normal file
0
azalea-brigadier/tests/tree/root_command_node_test.rs
Normal file
0
azalea-brigadier/tests/tree/root_command_node_test.rs
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
// use std::hash::Hash;
|
||||||
|
|
||||||
|
// use crate::mc_buf::Readable;
|
||||||
|
|
||||||
|
// use super::LoginPacket;
|
||||||
|
|
||||||
|
// #[derive(Hash, Clone, Debug)]
|
||||||
|
// pub struct ClientboundDeclareCommandsPacket {
|
||||||
|
// pub root: RootCommandNode<SharedSuggestionProvider>,
|
||||||
|
// pub public_key: Vec<u8>,
|
||||||
|
// pub nonce: Vec<u8>,
|
||||||
|
// }
|
||||||
|
|
||||||
|
// impl ClientboundHelloPacket {
|
||||||
|
// pub fn get(self) -> LoginPacket {
|
||||||
|
// LoginPacket::ClientboundHelloPacket(self)
|
||||||
|
// }
|
||||||
|
|
||||||
|
// pub fn write(&self, _buf: &mut Vec<u8>) -> Result<(), std::io::Error> {
|
||||||
|
// panic!("ClientboundHelloPacket::write not implemented")
|
||||||
|
// }
|
||||||
|
|
||||||
|
// pub async fn read<T: tokio::io::AsyncRead + std::marker::Unpin + std::marker::Send>(
|
||||||
|
// buf: &mut T,
|
||||||
|
// ) -> Result<LoginPacket, String> {
|
||||||
|
// let server_id = buf.read_utf_with_len(20).await?;
|
||||||
|
// let public_key = buf.read_byte_array().await?;
|
||||||
|
// let nonce = buf.read_byte_array().await?;
|
||||||
|
|
||||||
|
// Ok(ClientboundHelloPacket {
|
||||||
|
// server_id,
|
||||||
|
// public_key,
|
||||||
|
// nonce,
|
||||||
|
// }
|
||||||
|
// .get())
|
||||||
|
// }
|
||||||
|
// }
|
Loading…
Add table
Reference in a new issue