use crate::math::Vector;
use sdk_raw::vcall;
use std::ffi::c_int;
use std::ptr;
interface! {
#[doc(alias("IEngineTrace"))]
pub struct EngineTrace(sys::IEngineTrace) = Engine sdk_raw::interfaces::engine_trace::VERSION;
}
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()))
}
}
}