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
//! `IDialogsComponent` — generated by `cargo xtask gen-omp` from `Server/Components/Dialogs/dialogs.hpp`.
//! Implemented by `DialogsComponent` in the server's `Dialogs`.
//!
//! 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 `IDialogsComponent*`.
pub IDialogsComponent;
}
/// `DialogsComponent_UID` in `Server/Components/Dialogs/dialogs.hpp`.
pub const DIALOGS_COMPONENT_UID: UID = 0x44a111350d611dde;
impl ComponentInterface for IDialogsComponent {
const UID: UID = DIALOGS_COMPONENT_UID;
}
slots! {
/// `IEventDispatcher<PlayerDialogEventHandler> & IDialogsComponent::getEventDispatcher()`
SLOT_GET_EVENT_DISPATCHER: usize = 18, 16;
}
virtual_fns! {
/// `IEventDispatcher<PlayerDialogEventHandler> & IDialogsComponent::getEventDispatcher()`.
///
/// # Safety
/// `component` must be a live `IDialogsComponent`.
#[must_use]
pub fn dialogs_event_dispatcher(
component: IDialogsComponent,
) -> *mut EventDispatcher<PlayerDialogHandler> = [0, SLOT_GET_EVENT_DISPATCHER] or std::ptr::null_mut();
}