Skip to main content

samp_sdk/omp/generated/
checkpoints.rs

1//! `ICheckpointsComponent` — generated by `cargo xtask gen-omp` from `Server/Components/Checkpoints/checkpoints.hpp`.
2//! Implemented by `CheckpointsComponent` in the server's `Checkpoints`.
3//!
4//! Do not edit: change `xtask/omp-wrappers.toml` or the generator and
5//! regenerate. Slots are clang's layout of the header for each ABI, checked
6//! against the official binaries by `cargo xtask check-abi --generated`.
7
8#![allow(unused_imports)]
9
10use crate::omp::containers::{FlatSet, HybridString, Pair, Span};
11use crate::omp::types::{
12    Colour, GTAQuat, Hours, Microseconds, Milliseconds, Minutes, Seconds, StringView, TimePoint,
13    UID, Vector2, Vector3, Vector4, WorldTimePoint,
14};
15use crate::omp::vtable::{call_vtable_small_struct, opaque, slots, virtual_fns};
16use crate::omp::*;
17
18opaque! {
19    /// Opaque handle for `ICheckpointsComponent*`.
20    pub ICheckpointsComponent;
21}
22
23/// `CheckpointsComponent_UID` in `Server/Components/Checkpoints/checkpoints.hpp`.
24pub const CHECKPOINTS_COMPONENT_UID: UID = 0x44a937350d611dde;
25
26impl ComponentInterface for ICheckpointsComponent {
27    const UID: UID = CHECKPOINTS_COMPONENT_UID;
28}
29
30slots! {
31    /// `IEventDispatcher<PlayerCheckpointEventHandler> & ICheckpointsComponent::getEventDispatcher()`
32    SLOT_GET_EVENT_DISPATCHER: usize = 18, 16;
33}
34
35virtual_fns! {
36    /// `IEventDispatcher<PlayerCheckpointEventHandler> & ICheckpointsComponent::getEventDispatcher()`.
37    ///
38    /// # Safety
39    /// `component` must be a live `ICheckpointsComponent`.
40    #[must_use]
41    pub fn checkpoints_event_dispatcher(
42        component: ICheckpointsComponent,
43    ) -> *mut EventDispatcher<PlayerCheckpointHandler> = [0, SLOT_GET_EVENT_DISPATCHER] or std::ptr::null_mut();
44}