move play state to its own module
This commit is contained in:
parent
b83efa34cb
commit
68fa183c0e
@ -11,6 +11,7 @@ pub mod config;
|
||||
pub mod context;
|
||||
pub mod data;
|
||||
pub mod event;
|
||||
pub mod play;
|
||||
pub mod player;
|
||||
pub mod protocol;
|
||||
|
||||
|
@ -8,8 +8,9 @@ use rust_mc_serv::{
|
||||
context::ServerContext,
|
||||
data::text_component::TextComponent,
|
||||
event::{Listener, PacketHandler},
|
||||
play::PlayHandler,
|
||||
player::context::ClientContext,
|
||||
protocol::{ConnectionState, play::PlayHandler},
|
||||
protocol::ConnectionState,
|
||||
start_server,
|
||||
};
|
||||
|
||||
|
@ -14,7 +14,7 @@ use crate::{
|
||||
player::context::ClientContext,
|
||||
};
|
||||
|
||||
use super::{ConnectionState, packet_id::*};
|
||||
use crate::protocol::{ConnectionState, packet_id::*};
|
||||
|
||||
pub struct PlayHandler;
|
||||
|
@ -1,6 +1,5 @@
|
||||
pub mod handler;
|
||||
pub mod packet_id;
|
||||
pub mod play;
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub enum ConnectionState {
|
||||
|
Loading…
x
Reference in New Issue
Block a user