mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Implement most of the occasional packets sent in elimination, expand interface for custom game logic #30
This commit is contained in:
1 parent
dfde0247a4
commit
52493bf166
22 files changed
+482
-41
No files matched your search
@@ -32,6 +32,7 @@ impl <const EXCLUDE_SENDER: bool, const CODE_IN: i16, const CODE_OUT: i16, const
|
||||
crate::events::log_channel_send_failure(self.msg_router.send(crate::matches::GameMessage::RebroadcastRlnl {
|
||||
skip_user_id: user_info.user_id(),
|
||||
event: self.code_out,
|
||||
event_in: Self::CODE,
|
||||
property: self.property,
|
||||
data: Some(Box::new(data)),
|
||||
}).await);
|
||||
@@ -39,6 +40,7 @@ impl <const EXCLUDE_SENDER: bool, const CODE_IN: i16, const CODE_OUT: i16, const
|
||||
crate::events::log_channel_send_failure(self.msg_router.send(crate::matches::GameMessage::BroadcastRlnl {
|
||||
user_id: user_info.user_id(),
|
||||
event: self.code_out,
|
||||
event_in: Self::CODE,
|
||||
property: self.property,
|
||||
data: Some(Box::new(data)),
|
||||
}).await);
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#![allow(dead_code)]
|
||||
pub struct DatalessBroadcaster<const EXCLUDE_SENDER: bool, const CODE_IN: i16, const CODE_OUT: i16, const PROPERTY: u8> {
|
||||
msg_router: tokio::sync::mpsc::Sender<crate::matches::GameMessage>,
|
||||
code_out: rlnl::event_code::NetworkEvent,
|
||||
@@ -28,6 +29,7 @@ impl <const EXCLUDE_SENDER: bool, const CODE_IN: i16, const CODE_OUT: i16, const
|
||||
crate::events::log_channel_send_failure(self.msg_router.send(crate::matches::GameMessage::RebroadcastRlnl {
|
||||
skip_user_id: user_info.user_id(),
|
||||
event: self.code_out,
|
||||
event_in: Self::CODE,
|
||||
property: self.property,
|
||||
data: None,
|
||||
}).await);
|
||||
@@ -35,6 +37,7 @@ impl <const EXCLUDE_SENDER: bool, const CODE_IN: i16, const CODE_OUT: i16, const
|
||||
crate::events::log_channel_send_failure(self.msg_router.send(crate::matches::GameMessage::BroadcastRlnl {
|
||||
user_id: user_info.user_id(),
|
||||
event: self.code_out,
|
||||
event_in: Self::CODE,
|
||||
property: self.property,
|
||||
data: None,
|
||||
}).await);
|
||||
|
||||
@@ -8,6 +8,7 @@ mod ingame_broadcast;
|
||||
pub use ingame_broadcast::Broadcaster;
|
||||
|
||||
mod ingame_broadcast_dataless;
|
||||
#[allow(unused_imports)]
|
||||
pub use ingame_broadcast_dataless::DatalessBroadcaster;
|
||||
|
||||
mod stub;
|
||||
|
||||
Reference in new issue
Block a user