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 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;
|
||||||
|
|
||||||
|
@ -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,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user