mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Get part way through loading (to sync) #30
This commit is contained in:
@@ -1,6 +1,28 @@
|
||||
mod validate_game_guid;
|
||||
mod loading_progress;
|
||||
mod all_loading_progress;
|
||||
mod weapon_select;
|
||||
mod activate_sync;
|
||||
|
||||
pub async fn handler(init_ctx: &crate::InitConfig) -> crate::handler::LnlEventHandler {
|
||||
crate::handler::LnlEventHandler::new()
|
||||
crate::handler::LnlEventHandler::new(init_ctx.users.clone(), crate::vehicle_motion::handler(init_ctx))
|
||||
.add(validate_game_guid::handler(init_ctx))
|
||||
.add(loading_progress::handler(init_ctx))
|
||||
.add(all_loading_progress::handler(init_ctx))
|
||||
.add(weapon_select::handler(init_ctx))
|
||||
.add(activate_sync::handler(init_ctx))
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn log_channel_send_failure<T>(result: Result<(), tokio::sync::mpsc::error::SendError<T>>) {
|
||||
if result.is_err() {
|
||||
log::error!("Failed to send game message");
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn log_lnl_send_failure(result: std::io::Result<usize>) {
|
||||
if let Err(e) = result {
|
||||
log::error!("Failed to send packet: {}", e);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user