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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//! `ITextDrawsComponent` — generated by `cargo xtask gen-omp` from `Server/Components/TextDraws/textdraws.hpp`.
//! Implemented by `TextDrawsComponent` in the server's `TextDraws`.
//!
//! 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::*;
slots! {
/// `IEventDispatcher<TextDrawEventHandler> & ITextDrawsComponent::getEventDispatcher()`
SLOT_GET_EVENT_DISPATCHER: usize = 18, 16;
/// `ITextDraw * ITextDrawsComponent::create(Vector2, StringView)`
SLOT_CREATE: usize = 19, 18;
/// `ITextDraw * ITextDrawsComponent::create(Vector2, int)`
SLOT_CREATE_PREVIEW: usize = 20, 17;
}
virtual_fns! {
/// `IEventDispatcher<TextDrawEventHandler> & ITextDrawsComponent::getEventDispatcher()`.
///
/// # Safety
/// `component` must be a live `ITextDrawsComponent`.
#[must_use]
pub fn textdraws_event_dispatcher(
component: ITextDrawsComponent,
) -> *mut EventDispatcher<TextDrawHandler> = [0, SLOT_GET_EVENT_DISPATCHER] or std::ptr::null_mut();
/// `ITextDraw * ITextDrawsComponent::create(Vector2, StringView)`.
///
/// # Safety
/// `component` must be a live `ITextDrawsComponent`.
#[must_use]
pub fn textdraws_create(
component: ITextDrawsComponent,
position: Vector2,
text: StringView,
) -> *mut ITextDraw = [0, SLOT_CREATE] or std::ptr::null_mut();
/// `ITextDraw * ITextDrawsComponent::create(Vector2, int)`.
///
/// # Safety
/// `component` must be a live `ITextDrawsComponent`.
#[must_use]
pub fn textdraws_create_preview(
component: ITextDrawsComponent,
position: Vector2,
model: i32,
) -> *mut ITextDraw = [0, SLOT_CREATE_PREVIEW] or std::ptr::null_mut();
}