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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
//! `ITextLabelsComponent` — generated by `cargo xtask gen-omp` from `Server/Components/TextLabels/textlabels.hpp`.
//! Implemented by `TextLabelsComponent` in the server's `TextLabels`.
//!
//! 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! {
/// `ITextLabel * ITextLabelsComponent::create(StringView, Colour, Vector3, float, int, bool)`
SLOT_CREATE: usize = 18, 18;
/// `ITextLabel * ITextLabelsComponent::create(StringView, Colour, Vector3, float, int, bool, IPlayer &)`
SLOT_CREATE_ON_PLAYER: usize = 19, 17;
/// `ITextLabel * ITextLabelsComponent::create(StringView, Colour, Vector3, float, int, bool, IVehicle &)`
SLOT_CREATE_ON_VEHICLE: usize = 20, 16;
}
virtual_fns! {
/// `ITextLabel * ITextLabelsComponent::create(StringView, Colour, Vector3, float, int, bool)`.
///
/// # Safety
/// `component` must be a live `ITextLabelsComponent`.
#[must_use]
pub fn textlabels_create(
component: ITextLabelsComponent,
text: StringView,
colour: Colour,
pos: Vector3,
draw_dist: f32,
vw: i32,
los: bool,
) -> *mut ITextLabel = [0, SLOT_CREATE] or std::ptr::null_mut();
/// `ITextLabel * ITextLabelsComponent::create(StringView, Colour, Vector3, float, int, bool, IPlayer &)`.
///
/// # Safety
/// `component` must be a live `ITextLabelsComponent`.
#[must_use]
pub fn textlabels_create_on_player(
component: ITextLabelsComponent,
text: StringView,
colour: Colour,
pos: Vector3,
draw_dist: f32,
vw: i32,
los: bool,
attach: *mut IPlayer,
) -> *mut ITextLabel = [0, SLOT_CREATE_ON_PLAYER] or std::ptr::null_mut();
/// `ITextLabel * ITextLabelsComponent::create(StringView, Colour, Vector3, float, int, bool, IVehicle &)`.
///
/// # Safety
/// `component` must be a live `ITextLabelsComponent`.
#[must_use]
pub fn textlabels_create_on_vehicle(
component: ITextLabelsComponent,
text: StringView,
colour: Colour,
pos: Vector3,
draw_dist: f32,
vw: i32,
los: bool,
attach: *mut IVehicle,
) -> *mut ITextLabel = [0, SLOT_CREATE_ON_VEHICLE] or std::ptr::null_mut();
}