#[repr(C)]pub struct PlayerTextHandlerVTable {
pub on_player_text: unsafe extern "thiscall" fn(*mut PlayerTextHandler, *mut IPlayer, StringView) -> bool,
pub on_player_command_text: unsafe extern "thiscall" fn(*mut PlayerTextHandler, *mut IPlayer, StringView) -> bool,
}Expand description
PlayerTextEventHandler — onPlayerText returning false blocks the
message; onPlayerCommandText returning true marks the command as
handled.
Fields§
§on_player_text: unsafe extern "thiscall" fn(*mut PlayerTextHandler, *mut IPlayer, StringView) -> bool§on_player_command_text: unsafe extern "thiscall" fn(*mut PlayerTextHandler, *mut IPlayer, StringView) -> boolAuto Trait Implementations§
impl Freeze for PlayerTextHandlerVTable
impl RefUnwindSafe for PlayerTextHandlerVTable
impl Send for PlayerTextHandlerVTable
impl Sync for PlayerTextHandlerVTable
impl Unpin for PlayerTextHandlerVTable
impl UnsafeUnpin for PlayerTextHandlerVTable
impl UnwindSafe for PlayerTextHandlerVTable
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