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