From db54af6c41b40a3535384546ca19ba8e9bcea8ff Mon Sep 17 00:00:00 2001 From: William Venner Date: Mon, 20 Sep 2021 22:13:21 +0100 Subject: [PATCH] make fields pub --- gmod/src/userdata.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gmod/src/userdata.rs b/gmod/src/userdata.rs index 219eb12..ddaf085 100644 --- a/gmod/src/userdata.rs +++ b/gmod/src/userdata.rs @@ -56,17 +56,17 @@ pub enum UserData { #[derive(Clone, Copy, Debug, Default, PartialEq, PartialOrd)] #[repr(C)] pub struct Vector { - x: f32, - y: f32, - z: f32 + pub x: f32, + pub y: f32, + pub z: f32 } #[derive(Clone, Copy, Debug, Default, PartialEq, PartialOrd)] #[repr(C)] pub struct Angle { - p: f32, - y: f32, - r: f32 + pub p: f32, + pub y: f32, + pub r: f32 } #[repr(C)]