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:
parent
28b27866db
commit
20030c18c8
8 changed files with 13 additions and 12 deletions
|
@ -4,10 +4,10 @@ use std::sync::{Arc, Mutex};
|
||||||
|
|
||||||
use kawari::RECEIVE_BUFFER_SIZE;
|
use kawari::RECEIVE_BUFFER_SIZE;
|
||||||
use kawari::common::custom_ipc::{CustomIpcData, CustomIpcSegment, CustomIpcType};
|
use kawari::common::custom_ipc::{CustomIpcData, CustomIpcSegment, CustomIpcType};
|
||||||
|
use kawari::common::workdefinitions::CharaMake;
|
||||||
use kawari::common::{GameData, ObjectId, timestamp_secs};
|
use kawari::common::{GameData, ObjectId, timestamp_secs};
|
||||||
use kawari::common::{Position, determine_initial_starting_zone};
|
use kawari::common::{Position, determine_initial_starting_zone};
|
||||||
use kawari::config::get_config;
|
use kawari::config::get_config;
|
||||||
use kawari::lobby::CharaMake;
|
|
||||||
use kawari::oodle::OodleNetwork;
|
use kawari::oodle::OodleNetwork;
|
||||||
use kawari::opcodes::ServerZoneIpcType;
|
use kawari::opcodes::ServerZoneIpcType;
|
||||||
use kawari::packet::{
|
use kawari::packet::{
|
||||||
|
|
|
@ -15,6 +15,8 @@ pub use position::Position;
|
||||||
mod gamedata;
|
mod gamedata;
|
||||||
pub use gamedata::GameData;
|
pub use gamedata::GameData;
|
||||||
|
|
||||||
|
pub mod workdefinitions;
|
||||||
|
|
||||||
#[binrw]
|
#[binrw]
|
||||||
#[brw(little)]
|
#[brw(little)]
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||||
|
|
5
src/common/workdefinitions/mod.rs
Normal file
5
src/common/workdefinitions/mod.rs
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
mod chara_make;
|
||||||
|
pub use chara_make::CharaMake;
|
||||||
|
|
||||||
|
mod client_select_data;
|
||||||
|
pub use client_select_data::{ClientSelectData, RemakeMode};
|
|
@ -8,9 +8,9 @@ use crate::{
|
||||||
common::{
|
common::{
|
||||||
custom_ipc::{CustomIpcData, CustomIpcSegment, CustomIpcType},
|
custom_ipc::{CustomIpcData, CustomIpcSegment, CustomIpcType},
|
||||||
timestamp_secs,
|
timestamp_secs,
|
||||||
|
workdefinitions::CharaMake,
|
||||||
},
|
},
|
||||||
config::get_config,
|
config::get_config,
|
||||||
lobby::CharaMake,
|
|
||||||
oodle::OodleNetwork,
|
oodle::OodleNetwork,
|
||||||
opcodes::ServerLobbyIpcType,
|
opcodes::ServerLobbyIpcType,
|
||||||
packet::{
|
packet::{
|
||||||
|
|
|
@ -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;
|
mod connection;
|
||||||
pub use connection::{LobbyConnection, send_custom_world_packet};
|
pub use connection::{LobbyConnection, send_custom_world_packet};
|
||||||
|
|
||||||
|
|
|
@ -4,11 +4,11 @@ use rusqlite::Connection;
|
||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
common::{CustomizeData, Position},
|
common::{
|
||||||
lobby::{
|
CustomizeData, Position,
|
||||||
CharaMake, ClientSelectData, RemakeMode,
|
workdefinitions::{CharaMake, ClientSelectData, RemakeMode},
|
||||||
ipc::{CharacterDetails, CharacterFlag},
|
|
||||||
},
|
},
|
||||||
|
lobby::ipc::{CharacterDetails, CharacterFlag},
|
||||||
};
|
};
|
||||||
|
|
||||||
use super::{Inventory, PlayerData};
|
use super::{Inventory, PlayerData};
|
||||||
|
|
Loading…
Add table
Reference in a new issue