rename id.rs to packet_id.rs
This commit is contained in:
parent
a664c43887
commit
a7636c4028
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Использование:
|
# Использование:
|
||||||
#
|
#
|
||||||
# ./parse_ids.py < Packets.html > src/server/protocol/id.rs
|
# ./parse_ids.py < Packets.html > src/server/protocol/packet_id.rs
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
|
@ -10,7 +10,7 @@ use crate::{
|
|||||||
ServerError,
|
ServerError,
|
||||||
data::{ReadWriteNBT, text_component::TextComponent},
|
data::{ReadWriteNBT, text_component::TextComponent},
|
||||||
protocol::{
|
protocol::{
|
||||||
id::{clientbound, serverbound},
|
packet_id::{clientbound, serverbound},
|
||||||
*,
|
*,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -10,7 +10,7 @@ use crate::trigger_event;
|
|||||||
|
|
||||||
use super::{
|
use super::{
|
||||||
ConnectionState,
|
ConnectionState,
|
||||||
id::*,
|
packet_id::*,
|
||||||
play::{handle_configuration_state, handle_play_state},
|
play::{handle_configuration_state, handle_play_state},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
pub mod handler;
|
pub mod handler;
|
||||||
pub mod id;
|
pub mod packet_id;
|
||||||
pub mod play;
|
pub mod play;
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
|
@ -13,7 +13,7 @@ use crate::{
|
|||||||
player::context::ClientContext,
|
player::context::ClientContext,
|
||||||
};
|
};
|
||||||
|
|
||||||
use super::id::*;
|
use super::packet_id::*;
|
||||||
|
|
||||||
pub fn send_update_tags(client: Arc<ClientContext>) -> Result<(), ServerError> {
|
pub fn send_update_tags(client: Arc<ClientContext>) -> Result<(), ServerError> {
|
||||||
// TODO: rewrite this hardcode bullshit
|
// TODO: rewrite this hardcode bullshit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user