feat: private battles
This commit is contained in:
parent
33b0391ef3
commit
384f5abca5
21 changed files with 831 additions and 96 deletions
23
src/nex/remote_console.rs
Normal file
23
src/nex/remote_console.rs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
use macros::rmc_struct;
|
||||
use crate::rmc::protocols::notifications::{Notification, NotificationEvent, RawNotification, RawNotificationInfo, RemoteNotification};
|
||||
use crate::rmc::protocols::nat_traversal::{NatTraversal, RemoteNatTraversal, RawNatTraversalInfo, RawNatTraversal};
|
||||
use crate::define_rmc_proto;
|
||||
use crate::nex::user::RemoteUserProtocol;
|
||||
|
||||
define_rmc_proto!(
|
||||
proto Console{
|
||||
Notification,
|
||||
NatTraversal
|
||||
}
|
||||
);
|
||||
/*
|
||||
#[rmc_struct(Console)]
|
||||
pub struct TestRemoteConsole{
|
||||
pub remote: RemoteUserProtocol,
|
||||
}
|
||||
|
||||
impl Notification for TestRemoteConsole{
|
||||
async fn process_notification_event(&self, event: NotificationEvent) {
|
||||
println!("NOTIF RECIEVED: {:?}", event);
|
||||
}
|
||||
}*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue