1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! `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();
}