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:
@@ -3,9 +3,14 @@ pub type PacketData = crate::handler::EventData;
|
||||
|
||||
#[async_trait::async_trait]
|
||||
pub trait EventCodeHandler: Send + Sync {
|
||||
async fn handle(&self, data: &bytes::Bytes, peer: &std::sync::Arc<literustlib_server::Connection<PacketData>>, user: &UserData, sender: &literustlib_server::DataSender<PacketData>);
|
||||
async fn handle(&self, data: &bytes::Bytes, peer: &std::sync::Arc<literustlib_server::Connection<PacketData>>, user: &UserData, sender: &std::sync::Arc<literustlib_server::DataSender<PacketData>>);
|
||||
}
|
||||
|
||||
pub trait EventCode: EventCodeHandler {
|
||||
const CODE: i16;
|
||||
}
|
||||
|
||||
#[async_trait::async_trait]
|
||||
pub trait RobotMotionHandler: Send + Sync {
|
||||
async fn handle(&self, data: &bytes::Bytes, user: &UserData);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user