Skip to main content

engage/generated/app/
photographselectweaponmenuitemcontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-photographselectweaponmenuitemcontent-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::basicmenuitemcontent::{BasicMenuItemContent, IBasicMenuItemContent},
10        system::object::{IObject, Object},
11        unity_engine::{
12            behaviour::{Behaviour, IBehaviour},
13            component::{Component, IComponent},
14            monobehaviour::{IMonoBehaviour, MonoBehaviour},
15            object_2::{IObject_2, Object_2},
16        },
17    };
18
19    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/photographselectweaponmenuitemcontent/PhotographSelectWeaponMenuItemContent.md"))]
20    #[::unity::class(namespace = "App", name = "PhotographSelectWeaponMenuItemContent")]
21    #[parent(crate::app::basicmenuitemcontent::BasicMenuItemContent)]
22    pub struct PhotographSelectWeaponMenuItemContent {
23        #[offset(72)]
24        #[rename(name = "m_NameText")]
25        pub m_name_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
26        #[offset(80)]
27        #[rename(name = "m_Frame")]
28        pub m_frame: crate::unity_engine::gameobject::GameObject,
29        #[offset(88)]
30        #[rename(name = "m_CursorObj")]
31        pub m_cursor_obj: crate::unity_engine::gameobject::GameObject,
32    }
33}
34
35#[cfg(feature = "app-photographselectweaponmenuitemcontent-types")]
36pub use __types::*;
37
38#[cfg(feature = "app-photographselectweaponmenuitemcontent")]
39pub trait IPhotographSelectWeaponMenuItemContentMethods: IPhotographSelectWeaponMenuItemContent {
40    #[doc = "`BuildObject()` overload"]
41    fn build_object(self) -> () {
42        unsafe {
43            let __receiver = <PhotographSelectWeaponMenuItemContent as ::unity::FromIlInstance>::from_il_instance(
44                <Self as ::unity::SystemObject>::as_instance(self),
45            );
46            ::unity::il2cpp_call!((::unity::module_base()+0x269cc90usize)as*mut u8,();
47(PhotographSelectWeaponMenuItemContent)__receiver)
48        }
49    }
50    #[doc = "`Build(crate::app::basicmenuitem::BasicMenuItem)` overload"]
51    fn build(self, menu_item: impl ::core::convert::Into<crate::app::basicmenuitem::BasicMenuItem>) -> () {
52        unsafe {
53            let __receiver = <PhotographSelectWeaponMenuItemContent as ::unity::FromIlInstance>::from_il_instance(
54                <Self as ::unity::SystemObject>::as_instance(self),
55            );
56            {
57                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
58                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
59                    panic!(
60                        "unity: virtual slot {}
61 out of range (vtable len {}
62) on the runtime class behind {}
63 (method `{}
64`)",
65                        8usize,
66                        __vt.len(),
67                        <PhotographSelectWeaponMenuItemContent as ::unity::ClassIdentity>::NAME,
68                        "Build",
69                    )
70                });
71                let __inner: extern "C" fn(
72                    PhotographSelectWeaponMenuItemContent,
73                    crate::app::basicmenuitem::BasicMenuItem,
74                    ::unity::OptionalMethod,
75                ) -> () = ::core::mem::transmute(__vi.method_ptr);
76                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
77                __inner(__receiver, ::core::convert::Into::into(menu_item), __mi)
78            }
79        }
80    }
81    #[doc = "`BuildText()` overload"]
82    fn build_text(self) -> () {
83        unsafe {
84            let __receiver = <PhotographSelectWeaponMenuItemContent as ::unity::FromIlInstance>::from_il_instance(
85                <Self as ::unity::SystemObject>::as_instance(self),
86            );
87            {
88                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
89                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
90                    panic!(
91                        "unity: virtual slot {}
92 out of range (vtable len {}
93) on the runtime class behind {}
94 (method `{}
95`)",
96                        10usize,
97                        __vt.len(),
98                        <PhotographSelectWeaponMenuItemContent as ::unity::ClassIdentity>::NAME,
99                        "BuildText",
100                    )
101                });
102                let __inner: extern "C" fn(PhotographSelectWeaponMenuItemContent, ::unity::OptionalMethod) -> () =
103                    ::core::mem::transmute(__vi.method_ptr);
104                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
105                __inner(__receiver, __mi)
106            }
107        }
108    }
109    #[doc = "`BuildTextColor()` overload"]
110    fn build_text_color(self) -> () {
111        unsafe {
112            let __receiver = <PhotographSelectWeaponMenuItemContent as ::unity::FromIlInstance>::from_il_instance(
113                <Self as ::unity::SystemObject>::as_instance(self),
114            );
115            {
116                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
117                let __vi = *__vt.get(11usize).unwrap_or_else(|| {
118                    panic!(
119                        "unity: virtual slot {}
120 out of range (vtable len {}
121) on the runtime class behind {}
122 (method `{}
123`)",
124                        11usize,
125                        __vt.len(),
126                        <PhotographSelectWeaponMenuItemContent as ::unity::ClassIdentity>::NAME,
127                        "BuildTextColor",
128                    )
129                });
130                let __inner: extern "C" fn(PhotographSelectWeaponMenuItemContent, ::unity::OptionalMethod) -> () =
131                    ::core::mem::transmute(__vi.method_ptr);
132                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
133                __inner(__receiver, __mi)
134            }
135        }
136    }
137    #[doc = "`UpdateTextColor()` overload"]
138    fn update_text_color(self) -> () {
139        unsafe {
140            let __receiver = <PhotographSelectWeaponMenuItemContent as ::unity::FromIlInstance>::from_il_instance(
141                <Self as ::unity::SystemObject>::as_instance(self),
142            );
143            {
144                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
145                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
146                    panic!(
147                        "unity: virtual slot {}
148 out of range (vtable len {}
149) on the runtime class behind {}
150 (method `{}
151`)",
152                        7usize,
153                        __vt.len(),
154                        <PhotographSelectWeaponMenuItemContent as ::unity::ClassIdentity>::NAME,
155                        "UpdateTextColor",
156                    )
157                });
158                let __inner: extern "C" fn(PhotographSelectWeaponMenuItemContent, ::unity::OptionalMethod) -> () =
159                    ::core::mem::transmute(__vi.method_ptr);
160                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
161                __inner(__receiver, __mi)
162            }
163        }
164    }
165    #[doc = "`.ctor()` overload"]
166    fn ctor(self) -> () {
167        unsafe {
168            let __receiver = <PhotographSelectWeaponMenuItemContent as ::unity::FromIlInstance>::from_il_instance(
169                <Self as ::unity::SystemObject>::as_instance(self),
170            );
171            ::unity::il2cpp_call!((::unity::module_base()+0x269d210usize)as*mut u8,();
172(PhotographSelectWeaponMenuItemContent)__receiver)
173        }
174    }
175}
176
177#[cfg(feature = "app-photographselectweaponmenuitemcontent")]
178impl<__T: IPhotographSelectWeaponMenuItemContent> IPhotographSelectWeaponMenuItemContentMethods for __T {}
179
180#[cfg(feature = "app-photographselectweaponmenuitemcontent")]
181impl PhotographSelectWeaponMenuItemContent {
182    pub fn build_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
183        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
184    }
185
186    pub fn build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
187        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
188    }
189
190    pub fn build_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
191        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
192    }
193
194    pub fn build_text_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
195        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
196    }
197
198    pub fn update_text_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
199        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
200    }
201
202    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
203        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
204    }
205}
206
207#[cfg(feature = "app-photographselectweaponmenuitemcontent")]
208impl PhotographSelectWeaponMenuItemContent {
209    #[doc = "Direct (non-virtual) call to `PhotographSelectWeaponMenuItemContent`'s own `Build`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
210    pub unsafe fn build(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item: crate::app::basicmenuitem::BasicMenuItem) -> () {
211        let __mi = Self::build_method_info();
212        let __inner: extern "C" fn(::unity::IlInstance, crate::app::basicmenuitem::BasicMenuItem, ::unity::OptionalMethod) -> () =
213            ::core::mem::transmute(__mi.method_ptr);
214        __inner(this.into(), menu_item, ::core::option::Option::None)
215    }
216
217    #[doc = "Direct (non-virtual) call to `PhotographSelectWeaponMenuItemContent`'s own `BuildText`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
218    pub unsafe fn build_text(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
219        let __mi = Self::build_text_method_info();
220        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
221        __inner(this.into(), ::core::option::Option::None)
222    }
223
224    #[doc = "Direct (non-virtual) call to `PhotographSelectWeaponMenuItemContent`'s own `BuildTextColor`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
225    pub unsafe fn build_text_color(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
226        let __mi = Self::build_text_color_method_info();
227        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
228        __inner(this.into(), ::core::option::Option::None)
229    }
230
231    #[doc = "Direct (non-virtual) call to `PhotographSelectWeaponMenuItemContent`'s own `UpdateTextColor`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
232    pub unsafe fn update_text_color(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
233        let __mi = Self::update_text_color_method_info();
234        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
235        __inner(this.into(), ::core::option::Option::None)
236    }
237}
238
239#[cfg(feature = "app-photographselectweaponmenuitemcontent")]
240impl PhotographSelectWeaponMenuItemContent {
241    #[doc = "`.ctor()` — no args"]
242    pub fn new() -> Self {
243        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
244            panic!(
245                "{}
246::{}
247 failed to instantiate",
248                ::core::stringify!(PhotographSelectWeaponMenuItemContent),
249                ::core::stringify!(new),
250            )
251        });
252        <Self as IPhotographSelectWeaponMenuItemContentMethods>::ctor(this);
253        this
254    }
255}
256
257#[cfg(feature = "app-photographselectweaponmenuitemcontent")]
258#[doc(hidden)]
259pub mod prelude {
260    pub use super::{IPhotographSelectWeaponMenuItemContent, IPhotographSelectWeaponMenuItemContentMethods, PhotographSelectWeaponMenuItemContent};
261    #[cfg(feature = "app-basicmenuitemcontent")]
262    pub use crate::app::basicmenuitemcontent::IBasicMenuItemContentMethods;
263    #[cfg(feature = "system-object")]
264    pub use crate::system::object::IObjectMethods;
265    #[cfg(feature = "unity_engine-behaviour")]
266    pub use crate::unity_engine::behaviour::IBehaviourMethods;
267    #[cfg(feature = "unity_engine-component")]
268    pub use crate::unity_engine::component::IComponentMethods;
269    #[cfg(feature = "unity_engine-monobehaviour")]
270    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
271    #[cfg(feature = "unity_engine-object_2")]
272    pub use crate::unity_engine::object_2::IObject_2Methods;
273    pub use crate::{
274        app::basicmenuitemcontent::IBasicMenuItemContent,
275        system::object::IObject,
276        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
277    };
278}