1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-04-30 02:17:45 +00:00

Move work definitions to their own module

This commit is contained in:
Joshua Goins 2025-04-22 16:07:39 -04:00
parent 28b27866db
commit 20030c18c8
8 changed files with 13 additions and 12 deletions

View file

@ -4,10 +4,10 @@ use std::sync::{Arc, Mutex};
use kawari::RECEIVE_BUFFER_SIZE;
use kawari::common::custom_ipc::{CustomIpcData, CustomIpcSegment, CustomIpcType};
use kawari::common::workdefinitions::CharaMake;
use kawari::common::{GameData, ObjectId, timestamp_secs};
use kawari::common::{Position, determine_initial_starting_zone};
use kawari::config::get_config;
use kawari::lobby::CharaMake;
use kawari::oodle::OodleNetwork;
use kawari::opcodes::ServerZoneIpcType;
use kawari::packet::{

View file

@ -15,6 +15,8 @@ pub use position::Position;
mod gamedata;
pub use gamedata::GameData;
pub mod workdefinitions;
#[binrw]
#[brw(little)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]

View file

@ -0,0 +1,5 @@
mod chara_make;
pub use chara_make::CharaMake;
mod client_select_data;
pub use client_select_data::{ClientSelectData, RemakeMode};

View file

@ -8,9 +8,9 @@ use crate::{
common::{
custom_ipc::{CustomIpcData, CustomIpcSegment, CustomIpcType},
timestamp_secs,
workdefinitions::CharaMake,
},
config::get_config,
lobby::CharaMake,
oodle::OodleNetwork,
opcodes::ServerLobbyIpcType,
packet::{

View file

@ -1,9 +1,3 @@
mod chara_make;
pub use chara_make::CharaMake;
mod client_select_data;
pub use client_select_data::{ClientSelectData, RemakeMode};
mod connection;
pub use connection::{LobbyConnection, send_custom_world_packet};

View file

@ -4,11 +4,11 @@ use rusqlite::Connection;
use serde::Deserialize;
use crate::{
common::{CustomizeData, Position},
lobby::{
CharaMake, ClientSelectData, RemakeMode,
ipc::{CharacterDetails, CharacterFlag},
common::{
CustomizeData, Position,
workdefinitions::{CharaMake, ClientSelectData, RemakeMode},
},
lobby::ipc::{CharacterDetails, CharacterFlag},
};
use super::{Inventory, PlayerData};