add utility protocol
Some checks failed
Build and Test / wii-u-chat (push) Successful in 4m24s
Build and Test / friends (push) Successful in 4m54s
Build and Test / splatoon (push) Failing after 5m11s
Build and Test / super-mario-maker (push) Failing after 14m33s

This commit is contained in:
Maple Nebel 2026-04-28 22:56:36 +02:00
commit 5972833136
3 changed files with 26 additions and 0 deletions

View file

@ -11,6 +11,9 @@ use rnex_core::prudp::station_url::UrlOptions::{
use rnex_core::rmc::protocols::matchmake::{
Matchmake, RawMatchmake, RawMatchmakeInfo, RemoteMatchmake,
};
use rnex_core::rmc::protocols::util::{
Utility, RawUtility, RawUtilityInfo, RemoteUtility,
};
use rnex_core::rmc::protocols::matchmake_ext::{
MatchmakeExt, RawMatchmakeExt, RawMatchmakeExtInfo, RemoteMatchmakeExt,
};
@ -65,6 +68,7 @@ cfg_if! {
Matchmake,
NatTraversal,
Ranking,
Utility,
DataStore
}
);
@ -76,6 +80,7 @@ cfg_if! {
MatchmakeExt,
Matchmake,
NatTraversal,
Utility,
Ranking
}
);
@ -767,6 +772,12 @@ fn fetch_team_votes(fest_id: u32) -> Result<Vec<u32>, ErrorCode> {
})
}
impl Utility for User{
async fn acquire_nex_unique_id(&self) -> Result<u64, ErrorCode>{
return Ok(rand::random())
}
}
impl Ranking for User {
async fn competition_ranking_get_param(
&self,