1
Fork 0
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:
Joshua Goins 2025-05-02 00:52:26 -04:00
parent 5111a38424
commit 23f9b5f3c1
8 changed files with 8 additions and 9 deletions

View file

@ -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;

View file

@ -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,

View file

@ -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;

View file

@ -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,

View file

@ -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)]

View file

@ -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;

View file

@ -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]