enhance responses from API, integrates with frontend

This commit is contained in:
2019-07-11 14:54:18 +02:00
parent bc65dfcd78
commit e08cd64743
9 changed files with 130 additions and 26 deletions

View File

@@ -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)
}
}