feat: fest matchmaking
This commit is contained in:
parent
b8cc89a6d9
commit
764a326d43
5 changed files with 70 additions and 1 deletions
|
|
@ -11,4 +11,7 @@ pub trait Matchmake{
|
|||
|
||||
#[method_id(42)]
|
||||
async fn update_session_host(&self, gid: u32, change_owner: bool) -> Result<(), ErrorCode>;
|
||||
|
||||
#[method_id(44)]
|
||||
async fn migrate_gathering_ownership(&self, gid: u32, candidates: Vec<u32>, participants_only: bool) -> Result<(), ErrorCode>;
|
||||
}
|
||||
|
|
@ -7,6 +7,12 @@ pub trait MatchmakeExtension{
|
|||
#[method_id(1)]
|
||||
async fn close_participation(&self, gid: u32) -> Result<(), ErrorCode>;
|
||||
|
||||
#[method_id(2)]
|
||||
async fn open_participation(&self, gid: u32) -> Result<(), ErrorCode>;
|
||||
|
||||
#[method_id(8)]
|
||||
async fn modify_current_game_attribute(&self, gid: u32, attrib_index: u32, attrib_val: u32) -> Result<(), ErrorCode>;
|
||||
|
||||
#[method_id(16)]
|
||||
async fn get_playing_session(&self, pids: Vec<u32>) -> Result<Vec<()>, ErrorCode>;
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ pub mod matchmake;
|
|||
pub mod matchmake_extension;
|
||||
pub mod nat_traversal;
|
||||
pub mod matchmake_ext;
|
||||
pub mod ranking;
|
||||
|
||||
use crate::prudp::socket::{ExternalConnection, SendingConnection};
|
||||
use crate::rmc::message::RMCMessage;
|
||||
|
|
|
|||
5
src/rmc/protocols/ranking.rs
Normal file
5
src/rmc/protocols/ranking.rs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
use macros::{method_id, rmc_proto};
|
||||
|
||||
#[rmc_proto(112)]
|
||||
pub trait Ranking{
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue