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::ipc::lobby::{ClientLobbyIpcData, ServerLobbyIpcSegment};
|
||||||
use kawari::lobby::LobbyConnection;
|
use kawari::lobby::LobbyConnection;
|
||||||
use kawari::lobby::send_custom_world_packet;
|
use kawari::lobby::send_custom_world_packet;
|
||||||
use kawari::oodle::OodleNetwork;
|
|
||||||
use kawari::packet::ConnectionType;
|
use kawari::packet::ConnectionType;
|
||||||
|
use kawari::packet::oodle::OodleNetwork;
|
||||||
use kawari::packet::{PacketState, SegmentData, send_keep_alive};
|
use kawari::packet::{PacketState, SegmentData, send_keep_alive};
|
||||||
use tokio::io::AsyncReadExt;
|
use tokio::io::AsyncReadExt;
|
||||||
use tokio::net::TcpListener;
|
use tokio::net::TcpListener;
|
||||||
|
|
|
@ -17,8 +17,8 @@ use kawari::ipc::zone::{
|
||||||
ActorControlCategory, ActorControlSelf, CommonSpawn, PlayerEntry, PlayerSetup, PlayerSpawn,
|
ActorControlCategory, ActorControlSelf, CommonSpawn, PlayerEntry, PlayerSetup, PlayerSpawn,
|
||||||
SocialList,
|
SocialList,
|
||||||
};
|
};
|
||||||
use kawari::oodle::OodleNetwork;
|
|
||||||
use kawari::opcodes::{ServerChatIpcType, ServerZoneIpcType};
|
use kawari::opcodes::{ServerChatIpcType, ServerZoneIpcType};
|
||||||
|
use kawari::packet::oodle::OodleNetwork;
|
||||||
use kawari::packet::{
|
use kawari::packet::{
|
||||||
CompressionType, ConnectionType, PacketSegment, PacketState, SegmentData, SegmentType,
|
CompressionType, ConnectionType, PacketSegment, PacketState, SegmentData, SegmentType,
|
||||||
send_keep_alive, send_packet,
|
send_keep_alive, send_packet,
|
||||||
|
|
|
@ -15,9 +15,6 @@ pub mod common;
|
||||||
/// Config management.
|
/// Config management.
|
||||||
pub mod config;
|
pub mod config;
|
||||||
|
|
||||||
/// Bindings for Oodle network compression.
|
|
||||||
pub mod oodle;
|
|
||||||
|
|
||||||
/// Lobby server-specific code.
|
/// Lobby server-specific code.
|
||||||
pub mod lobby;
|
pub mod lobby;
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,8 @@ use crate::{
|
||||||
blowfish::Blowfish,
|
blowfish::Blowfish,
|
||||||
common::{timestamp_secs, workdefinitions::CharaMake},
|
common::{timestamp_secs, workdefinitions::CharaMake},
|
||||||
config::get_config,
|
config::get_config,
|
||||||
oodle::OodleNetwork,
|
|
||||||
opcodes::ServerLobbyIpcType,
|
opcodes::ServerLobbyIpcType,
|
||||||
|
packet::oodle::OodleNetwork,
|
||||||
packet::{
|
packet::{
|
||||||
CompressionType, ConnectionType, PacketSegment, PacketState, SegmentData, SegmentType,
|
CompressionType, ConnectionType, PacketSegment, PacketState, SegmentData, SegmentType,
|
||||||
generate_encryption_key, parse_packet, send_packet,
|
generate_encryption_key, parse_packet, send_packet,
|
||||||
|
|
|
@ -5,11 +5,10 @@ use binrw::{BinRead, BinResult};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
config::get_config,
|
config::get_config,
|
||||||
oodle::OodleNetwork,
|
|
||||||
packet::{PacketHeader, PacketSegment},
|
packet::{PacketHeader, PacketSegment},
|
||||||
};
|
};
|
||||||
|
|
||||||
use super::{PacketState, ReadWriteIpcSegment};
|
use super::{PacketState, ReadWriteIpcSegment, oodle::OodleNetwork};
|
||||||
|
|
||||||
#[binrw]
|
#[binrw]
|
||||||
#[brw(repr = u8)]
|
#[brw(repr = u8)]
|
||||||
|
|
|
@ -13,3 +13,6 @@ pub use encryption::generate_encryption_key;
|
||||||
|
|
||||||
mod ipc;
|
mod ipc;
|
||||||
pub use ipc::{IpcSegment, ReadWriteIpcSegment};
|
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},
|
common::{read_string, timestamp_msecs, write_string},
|
||||||
config::get_config,
|
config::get_config,
|
||||||
ipc::kawari::CustomIpcSegment,
|
ipc::kawari::CustomIpcSegment,
|
||||||
oodle::OodleNetwork,
|
|
||||||
packet::{compression::compress, encryption::decrypt},
|
packet::{compression::compress, encryption::decrypt},
|
||||||
};
|
};
|
||||||
|
|
||||||
use super::{
|
use super::{
|
||||||
CompressionType, compression::decompress, encryption::encrypt, ipc::ReadWriteIpcSegment,
|
CompressionType, compression::decompress, encryption::encrypt, ipc::ReadWriteIpcSegment,
|
||||||
|
oodle::OodleNetwork,
|
||||||
};
|
};
|
||||||
|
|
||||||
#[binrw]
|
#[binrw]
|
||||||
|
|
Loading…
Add table
Reference in a new issue