engage/generated/app/
profilecardlangfont.rs1#[cfg(feature = "app-profilecardlangfont-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::object::{IObject, Object},
10 unity_engine::{
11 behaviour::{Behaviour, IBehaviour},
12 component::{Component, IComponent},
13 monobehaviour::{IMonoBehaviour, MonoBehaviour},
14 object_2::{IObject_2, Object_2},
15 },
16 };
17
18 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/profilecardlangfont/ProfileCardLangFont.md"))]
19 #[::unity::class(namespace = "App", name = "ProfileCardLangFont")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct ProfileCardLangFont {
22 #[offset(24)]
23 #[rename(name = "m_Material")]
24 pub m_material: crate::unity_engine::material::Material,
25 #[offset(32)]
26 #[rename(name = "m_SharedMaterial")]
27 pub m_shared_material: crate::unity_engine::material::Material,
28 }
29}
30
31#[cfg(feature = "app-profilecardlangfont-types")]
32pub use __types::*;
33
34#[cfg(feature = "app-profilecardlangfont")]
35pub trait IProfileCardLangFontMethods: IProfileCardLangFont {
36 #[doc = "`OnEnable()` overload"]
37 fn on_enable(self) -> () {
38 unsafe {
39 let __receiver = <ProfileCardLangFont as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40 ::unity::il2cpp_call!((::unity::module_base()+0x231aae0usize)as*mut u8,();
41(ProfileCardLangFont)__receiver)
42 }
43 }
44 #[doc = "`OnDisable()` overload"]
45 fn on_disable(self) -> () {
46 unsafe {
47 let __receiver = <ProfileCardLangFont as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48 ::unity::il2cpp_call!((::unity::module_base()+0x231ad40usize)as*mut u8,();
49(ProfileCardLangFont)__receiver)
50 }
51 }
52 #[doc = "`TryCreateMaterial(*mutcrate::unity_engine::material::Material)` overload"]
53 fn try_create_material(self) -> (bool, crate::unity_engine::material::Material) {
54 unsafe {
55 let __receiver = <ProfileCardLangFont as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::material::Material>::uninit();
57 let __ret = {
58 ::unity::il2cpp_call!((::unity::module_base()+0x231ac10usize)as*mut u8,bool;
59(ProfileCardLangFont)__receiver,(*mut crate::unity_engine::material::Material)__out_0.as_mut_ptr())
60 };
61 (__ret, __out_0.assume_init())
62 }
63 }
64 #[doc = "`TryDestroyMaterial()` overload"]
65 fn try_destroy_material(self) -> () {
66 unsafe {
67 let __receiver = <ProfileCardLangFont as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
68 ::unity::il2cpp_call!((::unity::module_base()+0x231ad50usize)as*mut u8,();
69(ProfileCardLangFont)__receiver)
70 }
71 }
72 #[doc = "`.ctor()` overload"]
73 fn ctor(self) -> () {
74 unsafe {
75 let __receiver = <ProfileCardLangFont as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76 ::unity::il2cpp_call!((::unity::module_base()+0x231ae90usize)as*mut u8,();
77(ProfileCardLangFont)__receiver)
78 }
79 }
80}
81
82#[cfg(feature = "app-profilecardlangfont")]
83impl<__T: IProfileCardLangFont> IProfileCardLangFontMethods for __T {}
84
85#[cfg(feature = "app-profilecardlangfont")]
86impl ProfileCardLangFont {
87 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
88 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
89 }
90
91 pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
92 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
93 }
94
95 pub fn try_create_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
96 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
97 }
98
99 pub fn try_destroy_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
100 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
101 }
102
103 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
104 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
105 }
106}
107
108#[cfg(feature = "app-profilecardlangfont")]
109impl ProfileCardLangFont {
110 #[doc = "`.ctor()` — no args"]
111 pub fn new() -> Self {
112 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
113 panic!(
114 "{}
115::{}
116 failed to instantiate",
117 ::core::stringify!(ProfileCardLangFont),
118 ::core::stringify!(new),
119 )
120 });
121 <Self as IProfileCardLangFontMethods>::ctor(this);
122 this
123 }
124}
125
126#[cfg(feature = "app-profilecardlangfont")]
127#[doc(hidden)]
128pub mod prelude {
129 pub use super::{IProfileCardLangFont, IProfileCardLangFontMethods, ProfileCardLangFont};
130 #[cfg(feature = "system-object")]
131 pub use crate::system::object::IObjectMethods;
132 #[cfg(feature = "unity_engine-behaviour")]
133 pub use crate::unity_engine::behaviour::IBehaviourMethods;
134 #[cfg(feature = "unity_engine-component")]
135 pub use crate::unity_engine::component::IComponentMethods;
136 #[cfg(feature = "unity_engine-monobehaviour")]
137 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
138 #[cfg(feature = "unity_engine-object_2")]
139 pub use crate::unity_engine::object_2::IObject_2Methods;
140 pub use crate::{
141 system::object::IObject,
142 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
143 };
144}