Skip to main content

samp_sdk/omp/generated/
dialogs.rs

1//! `IDialogsComponent` — generated by `cargo xtask gen-omp` from `Server/Components/Dialogs/dialogs.hpp`.
2//! Implemented by `DialogsComponent` in the server's `Dialogs`.
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 `IDialogsComponent*`.
20    pub IDialogsComponent;
21}
22
23/// `DialogsComponent_UID` in `Server/Components/Dialogs/dialogs.hpp`.
24pub const DIALOGS_COMPONENT_UID: UID = 0x44a111350d611dde;
25
26impl ComponentInterface for IDialogsComponent {
27    const UID: UID = DIALOGS_COMPONENT_UID;
28}
29
30slots! {
31    /// `IEventDispatcher<PlayerDialogEventHandler> & IDialogsComponent::getEventDispatcher()`
32    SLOT_GET_EVENT_DISPATCHER: usize = 18, 16;
33}
34
35virtual_fns! {
36    /// `IEventDispatcher<PlayerDialogEventHandler> & IDialogsComponent::getEventDispatcher()`.
37    ///
38    /// # Safety
39    /// `component` must be a live `IDialogsComponent`.
40    #[must_use]
41    pub fn dialogs_event_dispatcher(
42        component: IDialogsComponent,
43    ) -> *mut EventDispatcher<PlayerDialogHandler> = [0, SLOT_GET_EVENT_DISPATCHER] or std::ptr::null_mut();
44}