mirror of
https://github.com/redstrate/Kawari.git
synced 2025-05-06 04:37:46 +00:00
Move oodle into the packet module
Not sure why I didn't do this before, it's not important enough to be a top-level item.
This commit is contained in:
parent
5111a38424
commit
23f9b5f3c1
8 changed files with 8 additions and 9 deletions
|
@ -8,8 +8,8 @@ use kawari::ipc::lobby::ServiceAccount;
|
|||
use kawari::ipc::lobby::{ClientLobbyIpcData, ServerLobbyIpcSegment};
|
||||
use kawari::lobby::LobbyConnection;
|
||||
use kawari::lobby::send_custom_world_packet;
|
||||
use kawari::oodle::OodleNetwork;
|
||||
use kawari::packet::ConnectionType;
|
||||
use kawari::packet::oodle::OodleNetwork;
|
||||
use kawari::packet::{PacketState, SegmentData, send_keep_alive};
|
||||
use tokio::io::AsyncReadExt;
|
||||
use tokio::net::TcpListener;
|
||||
|
|
|
@ -17,8 +17,8 @@ use kawari::ipc::zone::{
|
|||
ActorControlCategory, ActorControlSelf, CommonSpawn, PlayerEntry, PlayerSetup, PlayerSpawn,
|
||||
SocialList,
|
||||
};
|
||||
use kawari::oodle::OodleNetwork;
|
||||
use kawari::opcodes::{ServerChatIpcType, ServerZoneIpcType};
|
||||
use kawari::packet::oodle::OodleNetwork;
|
||||
use kawari::packet::{
|
||||
CompressionType, ConnectionType, PacketSegment, PacketState, SegmentData, SegmentType,
|
||||
send_keep_alive, send_packet,
|
||||
|
|
|
@ -15,9 +15,6 @@ pub mod common;
|
|||
/// Config management.
|
||||
pub mod config;
|
||||
|
||||
/// Bindings for Oodle network compression.
|
||||
pub mod oodle;
|
||||
|
||||
/// Lobby server-specific code.
|
||||
pub mod lobby;
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@ use crate::{
|
|||
blowfish::Blowfish,
|
||||
common::{timestamp_secs, workdefinitions::CharaMake},
|
||||
config::get_config,
|
||||
oodle::OodleNetwork,
|
||||
opcodes::ServerLobbyIpcType,
|
||||
packet::oodle::OodleNetwork,
|
||||
packet::{
|
||||
CompressionType, ConnectionType, PacketSegment, PacketState, SegmentData, SegmentType,
|
||||
generate_encryption_key, parse_packet, send_packet,
|
||||
|
|
|
@ -5,11 +5,10 @@ use binrw::{BinRead, BinResult};
|
|||
|
||||
use crate::{
|
||||
config::get_config,
|
||||
oodle::OodleNetwork,
|
||||
packet::{PacketHeader, PacketSegment},
|
||||
};
|
||||
|
||||
use super::{PacketState, ReadWriteIpcSegment};
|
||||
use super::{PacketState, ReadWriteIpcSegment, oodle::OodleNetwork};
|
||||
|
||||
#[binrw]
|
||||
#[brw(repr = u8)]
|
||||
|
|
|
@ -13,3 +13,6 @@ pub use encryption::generate_encryption_key;
|
|||
|
||||
mod ipc;
|
||||
pub use ipc::{IpcSegment, ReadWriteIpcSegment};
|
||||
|
||||
/// Bindings for Oodle network compression.
|
||||
pub mod oodle;
|
||||
|
|
|
@ -7,12 +7,12 @@ use crate::{
|
|||
common::{read_string, timestamp_msecs, write_string},
|
||||
config::get_config,
|
||||
ipc::kawari::CustomIpcSegment,
|
||||
oodle::OodleNetwork,
|
||||
packet::{compression::compress, encryption::decrypt},
|
||||
};
|
||||
|
||||
use super::{
|
||||
CompressionType, compression::decompress, encryption::encrypt, ipc::ReadWriteIpcSegment,
|
||||
oodle::OodleNetwork,
|
||||
};
|
||||
|
||||
#[binrw]
|
||||
|
|
Loading…
Add table
Reference in a new issue