Skip to main content

engage/generated/app/
perf.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-perf-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/perf/Perf.md"))]
11    #[::unity::class(namespace = "App", name = "Perf")]
12    #[parent(crate::system::object::Object)]
13    pub struct Perf {}
14}
15
16#[cfg(feature = "app-perf-types")]
17pub use __types::*;
18
19#[cfg(feature = "app-perf")]
20impl Perf {
21    #[doc = "`Begin(::unity::Il2CppString)` overload"]
22    pub fn begin(name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
23        unsafe {
24            ::unity::il2cpp_call!((::unity::module_base()+0x1f21340usize)as*mut u8,();
25(::unity::Il2CppString)::core::convert::Into::into(name))
26        }
27    }
28
29    #[doc = "`End(::unity::Il2CppString)` overload"]
30    pub fn end(name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
31        unsafe {
32            ::unity::il2cpp_call!((::unity::module_base()+0x1f21350usize)as*mut u8,();
33(::unity::Il2CppString)::core::convert::Into::into(name))
34        }
35    }
36
37    #[doc = "`Update(bool)` overload"]
38    pub fn update(is_remove: impl ::core::convert::Into<bool>) -> () {
39        unsafe {
40            ::unity::il2cpp_call!((::unity::module_base()+0x1f25920usize)as*mut u8,();
41(bool)::core::convert::Into::into(is_remove))
42        }
43    }
44}
45
46#[cfg(feature = "app-perf")]
47pub trait IPerfMethods: IPerf {
48    #[doc = "`.ctor()` overload"]
49    fn ctor(self) -> () {
50        unsafe {
51            let __receiver = <Perf as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
52            ::unity::il2cpp_call!((::unity::module_base()+0x1f25930usize)as*mut u8,();
53(Perf)__receiver)
54        }
55    }
56}
57
58#[cfg(feature = "app-perf")]
59impl<__T: IPerf> IPerfMethods for __T {}
60
61#[cfg(feature = "app-perf")]
62impl Perf {
63    pub fn begin_method_info() -> &'static ::unity::il2cpp::MethodInfo {
64        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
65    }
66
67    pub fn end_method_info() -> &'static ::unity::il2cpp::MethodInfo {
68        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
69    }
70
71    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
72        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
73    }
74
75    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
76        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
77    }
78}
79
80#[cfg(feature = "app-perf")]
81impl Perf {
82    #[doc = "`.ctor()` — no args"]
83    pub fn new() -> Self {
84        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
85            panic!(
86                "{}
87::{}
88 failed to instantiate",
89                ::core::stringify!(Perf),
90                ::core::stringify!(new),
91            )
92        });
93        <Self as IPerfMethods>::ctor(this);
94        this
95    }
96}
97
98#[cfg(feature = "app-perf")]
99#[doc(hidden)]
100pub mod prelude {
101    pub use super::{IPerf, IPerfMethods, Perf};
102    pub use crate::system::object::IObject;
103    #[cfg(feature = "system-object")]
104    pub use crate::system::object::IObjectMethods;
105}