mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Complete bare minimum to seem logged in
This commit is contained in:
1 parent
fe30e783ad
commit
7e31f6fe1d
55 files changed
+1147
-81
No files matched your search
@@ -0,0 +1,25 @@
|
||||
use polariton::operation::{Typed, Dict};
|
||||
|
||||
pub struct PlayerRoboPassSeasonInfo {
|
||||
pub delta_xp_to_show: i32,
|
||||
pub grade: i32,
|
||||
pub has_deluxe: bool,
|
||||
pub progress_in_grade: f32,
|
||||
pub xp_from_start: i32,
|
||||
}
|
||||
|
||||
impl PlayerRoboPassSeasonInfo {
|
||||
pub fn as_transmissible(&self) -> Typed {
|
||||
Typed::Dict(Dict {
|
||||
key_ty: 115, // str
|
||||
val_ty: 42, // obj
|
||||
items: vec![
|
||||
(Typed::Str("deltaXpToShow".into()), Typed::Int(self.delta_xp_to_show)),
|
||||
(Typed::Str("grade".into()), Typed::Int(self.grade)),
|
||||
(Typed::Str("hasDeluxe".into()), Typed::Bool(self.has_deluxe.into())),
|
||||
(Typed::Str("progressInGrade".into()), Typed::Float(self.progress_in_grade)),
|
||||
(Typed::Str("xpFromSeasonStart".into()), Typed::Int(self.xp_from_start)),
|
||||
],
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user