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
//! `ICheckpointsComponent` — generated by `cargo xtask gen-omp` from `Server/Components/Checkpoints/checkpoints.hpp`.
//! Implemented by `CheckpointsComponent` in the server's `Checkpoints`.
//!
//! 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::*;

opaque! {
    /// Opaque handle for `ICheckpointsComponent*`.
    pub ICheckpointsComponent;
}

/// `CheckpointsComponent_UID` in `Server/Components/Checkpoints/checkpoints.hpp`.
pub const CHECKPOINTS_COMPONENT_UID: UID = 0x44a937350d611dde;

impl ComponentInterface for ICheckpointsComponent {
    const UID: UID = CHECKPOINTS_COMPONENT_UID;
}

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

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