diff options
author | Lizzy Fleckenstein <eliasfleckenstein@web.de> | 2023-05-08 22:34:35 +0200 |
---|---|---|
committer | Lizzy Fleckenstein <eliasfleckenstein@web.de> | 2023-05-08 22:34:35 +0200 |
commit | ea1983ec93aa6db9dc2486713a6d974aaf3780e0 (patch) | |
tree | 3f364c82d1f1c64b60e244a8c74590bcd79917b2 | |
parent | 2bf4f75254ddfca9ef13c6a1b2a8e6210f298ab5 (diff) | |
download | mt_net-ea1983ec93aa6db9dc2486713a6d974aaf3780e0.tar.xz |
-rw-r--r-- | src/to_srv.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/to_srv.rs b/src/to_srv.rs index 0611bb9..616efff 100644 --- a/src/to_srv.rs +++ b/src/to_srv.rs @@ -34,8 +34,10 @@ pub struct PlayerPos { #[mt(map_ser = "|x| x.cast::<i32>().ok_or_else(ser_cast_err)")] #[mt(map_des = "|x: Vector3<i32>| x.cast::<f32>().ok_or_else(des_cast_err)")] pub vel: Vector3<f32>, + #[mt(multiplier = "100.0")] #[mt(map_ser = "|x| Ok(x.0 as i32)", map_des = "|x: i32| Ok(Deg(x as f32))")] pub pitch: Deg<f32>, + #[mt(multiplier = "100.0")] #[mt(map_ser = "|x| Ok(x.0 as i32)", map_des = "|x: i32| Ok(Deg(x as f32))")] pub yaw: Deg<f32>, pub keys: EnumSet<Key>, |