#[repr(C)]pub struct PlayerShotHandlerVTable {
pub on_player_shot_missed: unsafe extern "thiscall" fn(*mut PlayerShotHandler, *mut IPlayer, *const PlayerBulletData) -> bool,
pub on_player_shot_player: unsafe extern "thiscall" fn(*mut PlayerShotHandler, *mut IPlayer, *mut IPlayer, *const PlayerBulletData) -> bool,
pub on_player_shot_vehicle: unsafe extern "thiscall" fn(*mut PlayerShotHandler, *mut IPlayer, *mut IVehicle, *const PlayerBulletData) -> bool,
pub on_player_shot_object: unsafe extern "thiscall" fn(*mut PlayerShotHandler, *mut IPlayer, *mut IObject, *const PlayerBulletData) -> bool,
pub on_player_shot_player_object: unsafe extern "thiscall" fn(*mut PlayerShotHandler, *mut IPlayer, *mut IPlayerObject, *const PlayerBulletData) -> bool,
}Expand description
PlayerShotEventHandler — returning false rejects the shot.
bullet_data points at a PlayerBulletData the server owns.
Fields§
§on_player_shot_missed: unsafe extern "thiscall" fn(*mut PlayerShotHandler, *mut IPlayer, *const PlayerBulletData) -> bool§on_player_shot_player: unsafe extern "thiscall" fn(*mut PlayerShotHandler, *mut IPlayer, *mut IPlayer, *const PlayerBulletData) -> bool§on_player_shot_vehicle: unsafe extern "thiscall" fn(*mut PlayerShotHandler, *mut IPlayer, *mut IVehicle, *const PlayerBulletData) -> bool§on_player_shot_object: unsafe extern "thiscall" fn(*mut PlayerShotHandler, *mut IPlayer, *mut IObject, *const PlayerBulletData) -> bool§on_player_shot_player_object: unsafe extern "thiscall" fn(*mut PlayerShotHandler, *mut IPlayer, *mut IPlayerObject, *const PlayerBulletData) -> boolAuto Trait Implementations§
impl Freeze for PlayerShotHandlerVTable
impl RefUnwindSafe for PlayerShotHandlerVTable
impl Send for PlayerShotHandlerVTable
impl Sync for PlayerShotHandlerVTable
impl Unpin for PlayerShotHandlerVTable
impl UnsafeUnpin for PlayerShotHandlerVTable
impl UnwindSafe for PlayerShotHandlerVTable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more