Skip to main content

engage/generated/app/
photographselectcharactermenuitem.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-photographselectcharactermenuitem-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::basicmenuitem::{BasicMenuItem, IBasicMenuItem},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/photographselectcharactermenuitem/PhotographSelectCharacterMenuItem.md"))]
14    #[::unity::class(namespace = "App", name = "PhotographSelectCharacterMenuItem")]
15    #[parent(crate::app::basicmenuitem::BasicMenuItem)]
16    pub struct PhotographSelectCharacterMenuItem {
17        #[offset(104)]
18        #[rename(name = "m_CharacterId")]
19        pub m_character_id: ::unity::Il2CppString,
20        #[offset(112)]
21        #[rename(name = "m_IsCurrentCharacter")]
22        pub m_is_current_character: bool,
23        #[offset(120)]
24        #[rename(name = "m_DisposManager")]
25        pub m_dispos_manager: crate::app::photographdisposmanager::PhotographDisposManager,
26        #[offset(128)]
27        #[rename(name = "m_PauseData")]
28        pub m_pause_data: crate::app::photographpausedata::PhotographPauseData,
29        #[offset(136)]
30        #[rename(name = "m_WeaponData")]
31        pub m_weapon_data: crate::app::itemdata::ItemData,
32    }
33}
34
35#[cfg(feature = "app-photographselectcharactermenuitem-types")]
36pub use __types::*;
37
38#[cfg(feature = "app-photographselectcharactermenuitem")]
39pub trait IPhotographSelectCharacterMenuItemMethods: IPhotographSelectCharacterMenuItem {
40    #[doc = "`get_CharacterId()` overload"]
41    fn get_character_id(self) -> ::unity::Il2CppString {
42        unsafe {
43            let __receiver =
44                <PhotographSelectCharacterMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
45            ::unity::il2cpp_call!((::unity::module_base()+0x26973d0usize)as*mut u8, ::unity::Il2CppString;
46(PhotographSelectCharacterMenuItem)__receiver)
47        }
48    }
49    #[doc = "`get_IsCurrentCharacter()` overload"]
50    fn get_is_current_character(self) -> bool {
51        unsafe {
52            let __receiver =
53                <PhotographSelectCharacterMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54            ::unity::il2cpp_call!((::unity::module_base()+0x26973e0usize)as*mut u8,bool;
55(PhotographSelectCharacterMenuItem)__receiver)
56        }
57    }
58    #[doc = "`.ctor(::unity::Il2CppString, crate::app::photographdisposmanager::PhotographDisposManager, bool)` overload"]
59    fn ctor(
60        self,
61        character_id: impl ::core::convert::Into<::unity::Il2CppString>,
62        dispos_manager: impl ::core::convert::Into<crate::app::photographdisposmanager::PhotographDisposManager>,
63        is_current_character: impl ::core::convert::Into<bool>,
64    ) -> () {
65        unsafe {
66            let __receiver =
67                <PhotographSelectCharacterMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
68            ::unity::il2cpp_call!((::unity::module_base()+0x2696ef0usize)as*mut u8,();
69(PhotographSelectCharacterMenuItem)__receiver,(::unity::Il2CppString)::core::convert::Into::into(character_id),(crate::app::photographdisposmanager::PhotographDisposManager)::core::convert::Into::into(dispos_manager),(bool)::core::convert::Into::into(is_current_character))
70        }
71    }
72    #[doc = "`OnSelect()` overload"]
73    fn on_select(self) -> () {
74        unsafe {
75            let __receiver =
76                <PhotographSelectCharacterMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
77            {
78                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
79                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
80                    panic!(
81                        "unity: virtual slot {}
82 out of range (vtable len {}
83) on the runtime class behind {}
84 (method `{}
85`)",
86                        12usize,
87                        __vt.len(),
88                        <PhotographSelectCharacterMenuItem as ::unity::ClassIdentity>::NAME,
89                        "OnSelect",
90                    )
91                });
92                let __inner: extern "C" fn(PhotographSelectCharacterMenuItem, ::unity::OptionalMethod) -> () =
93                    ::core::mem::transmute(__vi.method_ptr);
94                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
95                __inner(__receiver, __mi)
96            }
97        }
98    }
99    #[doc = "`ACall()` overload"]
100    fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
101        unsafe {
102            let __receiver =
103                <PhotographSelectCharacterMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
104            {
105                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
106                let __vi = *__vt.get(18usize).unwrap_or_else(|| {
107                    panic!(
108                        "unity: virtual slot {}
109 out of range (vtable len {}
110) on the runtime class behind {}
111 (method `{}
112`)",
113                        18usize,
114                        __vt.len(),
115                        <PhotographSelectCharacterMenuItem as ::unity::ClassIdentity>::NAME,
116                        "ACall",
117                    )
118                });
119                let __inner: extern "C" fn(PhotographSelectCharacterMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
120                    ::core::mem::transmute(__vi.method_ptr);
121                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
122                __inner(__receiver, __mi)
123            }
124        }
125    }
126    #[doc = "`BCall()` overload"]
127    fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
128        unsafe {
129            let __receiver =
130                <PhotographSelectCharacterMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131            {
132                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
133                let __vi = *__vt.get(19usize).unwrap_or_else(|| {
134                    panic!(
135                        "unity: virtual slot {}
136 out of range (vtable len {}
137) on the runtime class behind {}
138 (method `{}
139`)",
140                        19usize,
141                        __vt.len(),
142                        <PhotographSelectCharacterMenuItem as ::unity::ClassIdentity>::NAME,
143                        "BCall",
144                    )
145                });
146                let __inner: extern "C" fn(PhotographSelectCharacterMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
147                    ::core::mem::transmute(__vi.method_ptr);
148                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
149                __inner(__receiver, __mi)
150            }
151        }
152    }
153}
154
155#[cfg(feature = "app-photographselectcharactermenuitem")]
156impl<__T: IPhotographSelectCharacterMenuItem> IPhotographSelectCharacterMenuItemMethods for __T {}
157
158#[cfg(feature = "app-photographselectcharactermenuitem")]
159impl PhotographSelectCharacterMenuItem {
160    pub fn get_character_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
162    }
163
164    pub fn get_is_current_character_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
166    }
167
168    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
170    }
171
172    pub fn on_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
174    }
175
176    pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
178    }
179
180    pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
182    }
183}
184
185#[cfg(feature = "app-photographselectcharactermenuitem")]
186impl PhotographSelectCharacterMenuItem {
187    #[doc = "Direct (non-virtual) call to `PhotographSelectCharacterMenuItem`'s own `OnSelect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
188    pub unsafe fn on_select(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
189        let __mi = Self::on_select_method_info();
190        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
191        __inner(this.into(), ::core::option::Option::None)
192    }
193
194    #[doc = "Direct (non-virtual) call to `PhotographSelectCharacterMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
195    pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
196        let __mi = Self::a_call_method_info();
197        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
198            ::core::mem::transmute(__mi.method_ptr);
199        __inner(this.into(), ::core::option::Option::None)
200    }
201
202    #[doc = "Direct (non-virtual) call to `PhotographSelectCharacterMenuItem`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
203    pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
204        let __mi = Self::b_call_method_info();
205        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
206            ::core::mem::transmute(__mi.method_ptr);
207        __inner(this.into(), ::core::option::Option::None)
208    }
209}
210
211#[cfg(feature = "app-photographselectcharactermenuitem")]
212impl PhotographSelectCharacterMenuItem {
213    #[doc = "`.ctor(::unity::Il2CppString, crate::app::photographdisposmanager::PhotographDisposManager, bool)` — overload selector"]
214    pub fn new(
215        character_id: ::unity::Il2CppString,
216        dispos_manager: crate::app::photographdisposmanager::PhotographDisposManager,
217        is_current_character: bool,
218    ) -> Self {
219        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
220            panic!(
221                "{}
222::{}
223 failed to instantiate",
224                ::core::stringify!(PhotographSelectCharacterMenuItem),
225                ::core::stringify!(new),
226            )
227        });
228        <Self as IPhotographSelectCharacterMenuItemMethods>::ctor(this, character_id, dispos_manager, is_current_character);
229        this
230    }
231}
232
233#[cfg(feature = "app-photographselectcharactermenuitem")]
234#[doc(hidden)]
235pub mod prelude {
236    pub use super::{IPhotographSelectCharacterMenuItem, IPhotographSelectCharacterMenuItemMethods, PhotographSelectCharacterMenuItem};
237    #[cfg(feature = "app-basicmenuitem")]
238    pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
239    #[cfg(feature = "system-object")]
240    pub use crate::system::object::IObjectMethods;
241    pub use crate::{app::basicmenuitem::IBasicMenuItem, system::object::IObject};
242}