Struct spn_rust_bot::api::ipc::IpcFoodInfo
source · [−]#[repr(C)]#[repr(align(4))]pub struct IpcFoodInfo {
pub x: f32,
pub y: f32,
pub val: f32,
pub dir: f32,
pub dist: f32,
}
Expand description
IPC representation of a food particle.
Fields
x: f32
Relative position X in world orientation
y: f32
Relative position Y in world orientation
val: f32
Food value
dir: f32
Direction angle relative to your heading (range -π to +π)
dist: f32
Distance measured from the center of your head
Auto Trait Implementations
impl RefUnwindSafe for IpcFoodInfo
impl Send for IpcFoodInfo
impl Sync for IpcFoodInfo
impl Unpin for IpcFoodInfo
impl UnwindSafe for IpcFoodInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more