enhance responses from API, integrates with frontend
This commit is contained in:
@@ -58,6 +58,10 @@ impl WealthUpdate{
|
||||
let f = ( self.sp * 10 + self.cp ) as f32 / 100.0;
|
||||
i as f32 + f
|
||||
}
|
||||
|
||||
pub fn as_tuple(&self) -> (i32, i32, i32, i32) {
|
||||
(self.cp, self.sp, self.gp, self.pp)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user