rust-samp-sdk 3.6.0

Low-level FFI bindings for the SA-MP AMX virtual machine and open.mp native component ABI. Used internally by `rust-samp`; depend on it directly only if you need raw access without the higher-level macros and lifecycle.
Documentation
//! `IMenusComponent` — generated by `cargo xtask gen-omp` from `Server/Components/Menus/menus.hpp`.
//! Implemented by `MenusComponent` in the server's `Menus`.
//!
//! Do not edit: change `xtask/omp-wrappers.toml` or the generator and
//! regenerate. Slots are clang's layout of the header for each ABI, checked
//! against the official binaries by `cargo xtask check-abi --generated`.

#![allow(unused_imports)]

use crate::omp::containers::{FlatSet, HybridString, Pair, Span};
use crate::omp::types::{
    Colour, GTAQuat, Hours, Microseconds, Milliseconds, Minutes, Seconds, StringView, TimePoint,
    UID, Vector2, Vector3, Vector4, WorldTimePoint,
};
use crate::omp::vtable::{call_vtable_small_struct, opaque, slots, virtual_fns};
use crate::omp::*;

slots! {
    /// `IEventDispatcher<MenuEventHandler> & IMenusComponent::getEventDispatcher()`
    SLOT_GET_EVENT_DISPATCHER: usize = 18, 16;
}

virtual_fns! {
    /// `IEventDispatcher<MenuEventHandler> & IMenusComponent::getEventDispatcher()`.
    ///
    /// # Safety
    /// `component` must be a live `IMenusComponent`.
    #[must_use]
    pub fn menus_event_dispatcher(
        component: IMenusComponent,
    ) -> *mut EventDispatcher<MenuHandler> = [0, SLOT_GET_EVENT_DISPATCHER] or std::ptr::null_mut();
}

// What the generator left out, and why.
// skipped: `IMenu * IMenusComponent::create(StringView, Vector2, uint8_t, float, float)` — covered by a hand-written wrapper under another name