Skip to main content

engage/generated/app/
textmeshmessage.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-textmeshmessage-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::{
10            object::{IObject, Object},
11            r#enum::{Enum, IEnum},
12            valuetype::{IValueType, ValueType},
13        },
14        unity_engine::{
15            behaviour::{Behaviour, IBehaviour},
16            component::{Component, IComponent},
17            monobehaviour::{IMonoBehaviour, MonoBehaviour},
18            object_2::{IObject_2, Object_2},
19        },
20    };
21
22    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/textmeshmessage/TextMeshMessage_Targets.md"))]
23    #[repr(C)]
24    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
25    pub struct TextMeshMessage_Targets {
26        pub value: i32,
27    }
28    impl ::unity::ClassIdentity for TextMeshMessage_Targets {
29        const NAME: &'static str = "TextMeshMessage.Targets";
30        const NAMESPACE: &'static str = "App";
31
32        fn class() -> ::unity::Class {
33            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
34            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
35        }
36    }
37    impl ::unity::IlType for TextMeshMessage_Targets {
38        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
39            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
40        }
41    }
42    impl TextMeshMessage_Targets {
43        pub fn self_() -> Self {
44            Self { value: 0 }
45        }
46
47        pub fn children() -> Self {
48            Self { value: 1 }
49        }
50    }
51
52    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/textmeshmessage/TextMeshMessage.md"))]
53    #[::unity::class(namespace = "App", name = "TextMeshMessage")]
54    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
55    pub struct TextMeshMessage {
56        #[offset(24)]
57        #[rename(name = "m_Target")]
58        pub m_target: crate::app::textmeshmessage::TextMeshMessage_Targets,
59        #[offset(32)]
60        #[rename(name = "m_Label")]
61        pub m_label: ::unity::Il2CppString,
62        #[offset(40)]
63        #[rename(name = "m_File")]
64        pub m_file: ::unity::Il2CppString,
65    }
66}
67
68#[cfg(feature = "app-textmeshmessage-types")]
69pub use __types::*;
70
71#[cfg(feature = "app-textmeshmessage")]
72pub trait ITextMeshMessageMethods: ITextMeshMessage {
73    #[doc = "`Open()` overload"]
74    fn open(self) -> () {
75        unsafe {
76            let __receiver = <TextMeshMessage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
77            ::unity::il2cpp_call!((::unity::module_base()+0x21e9fc0usize)as*mut u8,();
78(TextMeshMessage)__receiver)
79        }
80    }
81    #[doc = "`OnEnable()` overload"]
82    fn on_enable(self) -> () {
83        unsafe {
84            let __receiver = <TextMeshMessage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
85            ::unity::il2cpp_call!((::unity::module_base()+0x21ea1f0usize)as*mut u8,();
86(TextMeshMessage)__receiver)
87        }
88    }
89    #[doc = "`OnDisable()` overload"]
90    fn on_disable(self) -> () {
91        unsafe {
92            let __receiver = <TextMeshMessage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
93            ::unity::il2cpp_call!((::unity::module_base()+0x21ea2b0usize)as*mut u8,();
94(TextMeshMessage)__receiver)
95        }
96    }
97    #[doc = "`UpdateLangage()` overload"]
98    fn update_langage(self) -> () {
99        unsafe {
100            let __receiver = <TextMeshMessage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
101            ::unity::il2cpp_call!((::unity::module_base()+0x21ea370usize)as*mut u8,();
102(TextMeshMessage)__receiver)
103        }
104    }
105    #[doc = "`.ctor()` overload"]
106    fn ctor(self) -> () {
107        unsafe {
108            let __receiver = <TextMeshMessage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109            ::unity::il2cpp_call!((::unity::module_base()+0x21ea380usize)as*mut u8,();
110(TextMeshMessage)__receiver)
111        }
112    }
113}
114
115#[cfg(feature = "app-textmeshmessage")]
116impl<__T: ITextMeshMessage> ITextMeshMessageMethods for __T {}
117
118#[cfg(feature = "app-textmeshmessage")]
119impl TextMeshMessage {
120    pub fn open_method_info() -> &'static ::unity::il2cpp::MethodInfo {
121        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
122    }
123
124    pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
125        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
126    }
127
128    pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
129        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
130    }
131
132    pub fn update_langage_method_info() -> &'static ::unity::il2cpp::MethodInfo {
133        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
134    }
135
136    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
137        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
138    }
139}
140
141#[cfg(feature = "app-textmeshmessage")]
142impl TextMeshMessage {
143    #[doc = "`.ctor()` — no args"]
144    pub fn new() -> Self {
145        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
146            panic!(
147                "{}
148::{}
149 failed to instantiate",
150                ::core::stringify!(TextMeshMessage),
151                ::core::stringify!(new),
152            )
153        });
154        <Self as ITextMeshMessageMethods>::ctor(this);
155        this
156    }
157}
158
159#[cfg(feature = "app-textmeshmessage")]
160#[doc(hidden)]
161pub mod prelude {
162    pub use super::{ITextMeshMessage, ITextMeshMessageMethods, TextMeshMessage, TextMeshMessage_Targets};
163    #[cfg(feature = "system-object")]
164    pub use crate::system::object::IObjectMethods;
165    #[cfg(feature = "system-enum")]
166    pub use crate::system::r#enum::IEnumMethods;
167    #[cfg(feature = "system-valuetype")]
168    pub use crate::system::valuetype::IValueTypeMethods;
169    #[cfg(feature = "unity_engine-behaviour")]
170    pub use crate::unity_engine::behaviour::IBehaviourMethods;
171    #[cfg(feature = "unity_engine-component")]
172    pub use crate::unity_engine::component::IComponentMethods;
173    #[cfg(feature = "unity_engine-monobehaviour")]
174    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
175    #[cfg(feature = "unity_engine-object_2")]
176    pub use crate::unity_engine::object_2::IObject_2Methods;
177    pub use crate::{
178        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
179        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
180    };
181}