use crate::ffi::vcall;
use crate::math::Vector;
use std::ffi::c_int;
use std::ptr;
interface! {
#[doc(alias = "IEngineTrace")]
pub struct EngineTrace(sys::IEngineTrace) = Engine c"EngineTraceServer003";
}
impl<'s> EngineTrace<'s> {
#[doc(alias = "GetPointContents")]
pub fn point_contents(self, position: Vector) -> c_int {
let position = sys::Vector::from(position);
unsafe {
vcall!(self.as_ptr() => IEngineTrace_GetPointContents(&position, ptr::null_mut()))
}
}
}