rust-nex/rnex-core/src/rmc/protocols/ranking.rs

33 lines
739 B
Rust
Raw Normal View History

2025-11-08 13:00:23 +00:00
use macros::{rmc_struct, rmc_proto, RmcSerialize};
2025-11-08 12:04:39 +00:00
#[derive(RmcSerialize, Debug, Default, Clone)]
struct ResultsRange{
offset: u32,
size: u32
}
#[derive(RmcSerialize, Debug, Default, Clone)]
#[rmc_struct(1)]
struct CompetitionRankingGetParam{
unk: u32,
range: ResultsRange,
festival_ids: Vec<u32>,
}
#[derive(RmcSerialize, Debug, Default, Clone)]
#[rmc_struct(0)]
struct CompetitionRankingScoreInfo{
fest_id: u32,
score_data: Vec<u32>,
unk: u32,
team_wins: Vec<u32>,
team_votes: Vec<u32>
}
2025-05-15 20:53:56 +02:00
#[rmc_proto(112)]
pub trait Ranking{
2025-11-08 12:04:39 +00:00
//#[method_id(16)]
//async fn competition_ranking_get_param(&self, param: CompetitionRankingGetParam) -> Result<Vec<CompetitionRankingScoreInfo>,ErrorCode>;
2025-05-15 20:53:56 +02:00
}