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
//! `IPlayerCustomModelsData` — generated by `cargo xtask gen-omp` from `Server/Components/CustomModels/custommodels.hpp`.
//! Implemented by `PlayerCustomModelsData` in the server's `CustomModels`.
//!
//! 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 `IPlayerCustomModelsData*`.
pub IPlayerCustomModelsData;
}
slots! {
/// `uint32_t IPlayerCustomModelsData::getCustomSkin()`
SLOT_GET_CUSTOM_SKIN: usize = 3, 3;
/// `void IPlayerCustomModelsData::setCustomSkin(const uint32_t)`
SLOT_SET_CUSTOM_SKIN: usize = 4, 4;
/// `bool IPlayerCustomModelsData::sendDownloadUrl(StringView)`
SLOT_SEND_DOWNLOAD_URL: usize = 5, 5;
}
virtual_fns! {
/// `uint32_t IPlayerCustomModelsData::getCustomSkin()`.
///
/// # Safety
/// `data` must be a live `IPlayerCustomModelsData`.
#[must_use]
pub fn player_custom_models_custom_skin(
data: IPlayerCustomModelsData,
) -> u32 = [0, SLOT_GET_CUSTOM_SKIN] or 0;
/// `void IPlayerCustomModelsData::setCustomSkin(const uint32_t)`.
///
/// # Safety
/// `data` must be a live `IPlayerCustomModelsData`.
pub fn player_custom_models_set_custom_skin(
data: IPlayerCustomModelsData,
skin_model: u32,
) = [0, SLOT_SET_CUSTOM_SKIN];
/// `bool IPlayerCustomModelsData::sendDownloadUrl(StringView)`.
///
/// # Safety
/// `data` must be a live `IPlayerCustomModelsData`.
#[must_use]
pub fn player_custom_models_send_download_url(
data: IPlayerCustomModelsData,
url: StringView,
) -> bool = [0, SLOT_SEND_DOWNLOAD_URL] or false;
}