move play state to its own module

This commit is contained in:
MeexReay 2025-05-07 12:22:42 +03:00
parent b83efa34cb
commit 68fa183c0e
6 changed files with 4 additions and 3 deletions

View File

@ -11,6 +11,7 @@ pub mod config;
pub mod context; pub mod context;
pub mod data; pub mod data;
pub mod event; pub mod event;
pub mod play;
pub mod player; pub mod player;
pub mod protocol; pub mod protocol;

View File

@ -8,8 +8,9 @@ use rust_mc_serv::{
context::ServerContext, context::ServerContext,
data::text_component::TextComponent, data::text_component::TextComponent,
event::{Listener, PacketHandler}, event::{Listener, PacketHandler},
play::PlayHandler,
player::context::ClientContext, player::context::ClientContext,
protocol::{ConnectionState, play::PlayHandler}, protocol::ConnectionState,
start_server, start_server,
}; };

View File

@ -14,7 +14,7 @@ use crate::{
player::context::ClientContext, player::context::ClientContext,
}; };
use super::{ConnectionState, packet_id::*}; use crate::protocol::{ConnectionState, packet_id::*};
pub struct PlayHandler; pub struct PlayHandler;

View File

@ -1,6 +1,5 @@
pub mod handler; pub mod handler;
pub mod packet_id; pub mod packet_id;
pub mod play;
#[derive(Debug, Clone, PartialEq)] #[derive(Debug, Clone, PartialEq)]
pub enum ConnectionState { pub enum ConnectionState {