engage/generated/unity_engine/
uisystemprofilerapi.rs1#[cfg(feature = "unity_engine-uisystemprofilerapi-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 r#enum::{Enum, IEnum},
11 valuetype::{IValueType, ValueType},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/uisystemprofilerapi/UISystemProfilerApi_SampleType.md"))]
15 #[repr(C)]
16 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17 pub struct UISystemProfilerApi_SampleType {
18 pub value: i32,
19 }
20 impl ::unity::ClassIdentity for UISystemProfilerApi_SampleType {
21 const NAME: &'static str = "UISystemProfilerApi.SampleType";
22 const NAMESPACE: &'static str = "UnityEngine";
23
24 fn class() -> ::unity::Class {
25 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27 }
28 }
29 impl ::unity::IlType for UISystemProfilerApi_SampleType {
30 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32 }
33 }
34 impl UISystemProfilerApi_SampleType {
35 pub fn layout() -> Self {
36 Self { value: 0 }
37 }
38
39 pub fn render() -> Self {
40 Self { value: 1 }
41 }
42 }
43
44 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/uisystemprofilerapi/UISystemProfilerApi.md"))]
45 #[::unity::class(namespace = "UnityEngine", name = "UISystemProfilerApi")]
46 #[parent(crate::system::object::Object)]
47 pub struct UISystemProfilerApi {}
48}
49
50#[cfg(feature = "unity_engine-uisystemprofilerapi-types")]
51pub use __types::*;
52
53#[cfg(feature = "unity_engine-uisystemprofilerapi")]
54impl UISystemProfilerApi {
55 #[doc = "`BeginSample(crate::unity_engine::uisystemprofilerapi::UISystemProfilerApi_SampleType)` overload"]
56 pub fn begin_sample(r#type: impl ::core::convert::Into<crate::unity_engine::uisystemprofilerapi::UISystemProfilerApi_SampleType>) -> () {
57 unsafe {
58 ::unity::il2cpp_call!((::unity::module_base()+0x3f24770usize)as*mut u8,();
59(crate::unity_engine::uisystemprofilerapi::UISystemProfilerApi_SampleType)::core::convert::Into::into(r#type))
60 }
61 }
62
63 #[doc = "`EndSample(crate::unity_engine::uisystemprofilerapi::UISystemProfilerApi_SampleType)` overload"]
64 pub fn end_sample(r#type: impl ::core::convert::Into<crate::unity_engine::uisystemprofilerapi::UISystemProfilerApi_SampleType>) -> () {
65 unsafe {
66 ::unity::il2cpp_call!((::unity::module_base()+0x3f247c0usize)as*mut u8,();
67(crate::unity_engine::uisystemprofilerapi::UISystemProfilerApi_SampleType)::core::convert::Into::into(r#type))
68 }
69 }
70
71 #[doc = "`AddMarker(::unity::Il2CppString, crate::unity_engine::object_2::Object_2)` overload"]
72 pub fn add_marker(
73 name: impl ::core::convert::Into<::unity::Il2CppString>,
74 obj: impl ::core::convert::Into<crate::unity_engine::object_2::Object_2>,
75 ) -> () {
76 unsafe {
77 ::unity::il2cpp_call!((::unity::module_base()+0x3f24810usize)as*mut u8,();
78(::unity::Il2CppString)::core::convert::Into::into(name),(crate::unity_engine::object_2::Object_2)::core::convert::Into::into(obj))
79 }
80 }
81}
82
83#[cfg(feature = "unity_engine-uisystemprofilerapi")]
84impl UISystemProfilerApi {
85 pub fn begin_sample_method_info() -> &'static ::unity::il2cpp::MethodInfo {
86 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
87 }
88
89 pub fn end_sample_method_info() -> &'static ::unity::il2cpp::MethodInfo {
90 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
91 }
92
93 pub fn add_marker_method_info() -> &'static ::unity::il2cpp::MethodInfo {
94 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
95 }
96}
97
98#[cfg(feature = "unity_engine-uisystemprofilerapi")]
99#[doc(hidden)]
100pub mod prelude {
101 pub use super::{IUISystemProfilerApi, UISystemProfilerApi, UISystemProfilerApi_SampleType};
102 #[cfg(feature = "system-object")]
103 pub use crate::system::object::IObjectMethods;
104 #[cfg(feature = "system-enum")]
105 pub use crate::system::r#enum::IEnumMethods;
106 #[cfg(feature = "system-valuetype")]
107 pub use crate::system::valuetype::IValueTypeMethods;
108 pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
109}