Begin Refactoring Clientbound Packets to new structure

See https://github.com/Snowiiii/Pumpkin/issues/19 for details
This commit is contained in:
Snowiiii committed 2024-08-05 23:12:26 +02:00
1 parent 1e114c008e
commit 9e634295ca
14 files changed
+76 -151

No files matched your search

+11 -11
View File
@@ -2,6 +2,17 @@ use mio::net::TcpListener;
use mio::{Events, Interest, Poll, Token};
use std::io::{self};
use client::Client;
use commands::handle_command;
use configuration::AdvancedConfiguration;
use std::{
collections::HashMap,
rc::Rc,
sync::{Arc, Mutex},
thread,
};
use client::interrupted;
use configuration::BasicConfiguration;
use server::Server;
@@ -18,17 +29,6 @@ pub mod util;
#[cfg(not(target_os = "wasi"))]
fn main() -> io::Result<()> {
use std::{
collections::HashMap,
rc::Rc,
sync::{Arc, Mutex},
thread,
};
use client::Client;
use commands::handle_command;
use configuration::AdvancedConfiguration;
let basic_config = BasicConfiguration::load("configuration.toml");
let advanced_configuration = AdvancedConfiguration::load("features.toml");