Skip to main content

engage/generated/app/
groupbeginitem.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-groupbeginitem-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            menuitem::{IMenuItem, MenuItem},
11            stringitem::{IStringItem, StringItem},
12        },
13        system::object::{IObject, Object},
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/groupbeginitem/GroupBeginItem.md"))]
17    #[::unity::class(namespace = "App", name = "GroupBeginItem")]
18    #[parent(crate::app::stringitem::StringItem)]
19    pub struct GroupBeginItem {
20        #[static_field]
21        #[rename(name = "FontColor")]
22        pub font_color: crate::unity_engine::color::Color,
23    }
24}
25
26#[cfg(feature = "app-groupbeginitem-types")]
27pub use __types::*;
28
29#[cfg(feature = "app-groupbeginitem")]
30impl GroupBeginItem {
31    #[doc = "`.cctor()` overload"]
32    pub fn cctor() -> () {
33        unsafe {
34            ::unity::il2cpp_call!((::unity::module_base()+0x2978170usize)as*mut u8,();
35            )
36        }
37    }
38}
39
40#[cfg(feature = "app-groupbeginitem")]
41pub trait IGroupBeginItemMethods: IGroupBeginItem {
42    #[doc = "`.ctor(::unity::Il2CppString, crate::app::menuitem::MenuItem_State)` overload"]
43    fn ctor(
44        self,
45        name: impl ::core::convert::Into<::unity::Il2CppString>,
46        state: impl ::core::convert::Into<crate::app::menuitem::MenuItem_State>,
47    ) -> () {
48        unsafe {
49            let __receiver = <GroupBeginItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
50            ::unity::il2cpp_call!((::unity::module_base()+0x2977ec0usize)as*mut u8,();
51(GroupBeginItem)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name),(crate::app::menuitem::MenuItem_State)::core::convert::Into::into(state))
52        }
53    }
54    #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString, crate::app::menuitem::MenuItem_State)` overload"]
55    fn ctor_2(
56        self,
57        name: impl ::core::convert::Into<::unity::Il2CppString>,
58        english: impl ::core::convert::Into<::unity::Il2CppString>,
59        state: impl ::core::convert::Into<crate::app::menuitem::MenuItem_State>,
60    ) -> () {
61        unsafe {
62            let __receiver = <GroupBeginItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63            ::unity::il2cpp_call!((::unity::module_base()+0x2977ef0usize)as*mut u8,();
64(GroupBeginItem)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name),(::unity::Il2CppString)::core::convert::Into::into(english),(crate::app::menuitem::MenuItem_State)::core::convert::Into::into(state))
65        }
66    }
67    #[doc = "`GetName()` overload"]
68    fn get_name(self) -> ::unity::Il2CppString {
69        unsafe {
70            let __receiver = <GroupBeginItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71            {
72                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
73                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
74                    panic!(
75                        "unity: virtual slot {}
76 out of range (vtable len {}
77) on the runtime class behind {}
78 (method `{}
79`)",
80                        5usize,
81                        __vt.len(),
82                        <GroupBeginItem as ::unity::ClassIdentity>::NAME,
83                        "GetName",
84                    )
85                });
86                let __inner: extern "C" fn(GroupBeginItem, ::unity::OptionalMethod) -> ::unity::Il2CppString =
87                    ::core::mem::transmute(__vi.method_ptr);
88                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
89                __inner(__receiver, __mi)
90            }
91        }
92    }
93    #[doc = "`GetHelp()` overload"]
94    fn get_help(self) -> ::unity::Il2CppString {
95        unsafe {
96            let __receiver = <GroupBeginItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97            {
98                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
99                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
100                    panic!(
101                        "unity: virtual slot {}
102 out of range (vtable len {}
103) on the runtime class behind {}
104 (method `{}
105`)",
106                        7usize,
107                        __vt.len(),
108                        <GroupBeginItem as ::unity::ClassIdentity>::NAME,
109                        "GetHelp",
110                    )
111                });
112                let __inner: extern "C" fn(GroupBeginItem, ::unity::OptionalMethod) -> ::unity::Il2CppString =
113                    ::core::mem::transmute(__vi.method_ptr);
114                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
115                __inner(__receiver, __mi)
116            }
117        }
118    }
119    #[doc = "`GetKind()` overload"]
120    fn get_kind(self) -> crate::app::menuitem::MenuItem_Kind {
121        unsafe {
122            let __receiver = <GroupBeginItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123            {
124                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
125                let __vi = *__vt.get(11usize).unwrap_or_else(|| {
126                    panic!(
127                        "unity: virtual slot {}
128 out of range (vtable len {}
129) on the runtime class behind {}
130 (method `{}
131`)",
132                        11usize,
133                        __vt.len(),
134                        <GroupBeginItem as ::unity::ClassIdentity>::NAME,
135                        "GetKind",
136                    )
137                });
138                let __inner: extern "C" fn(GroupBeginItem, ::unity::OptionalMethod) -> crate::app::menuitem::MenuItem_Kind =
139                    ::core::mem::transmute(__vi.method_ptr);
140                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
141                __inner(__receiver, __mi)
142            }
143        }
144    }
145    #[doc = "`GetFontColor()` overload"]
146    fn get_font_color(self) -> crate::unity_engine::color::Color {
147        unsafe {
148            let __receiver = <GroupBeginItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
149            {
150                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
151                let __vi = *__vt.get(27usize).unwrap_or_else(|| {
152                    panic!(
153                        "unity: virtual slot {}
154 out of range (vtable len {}
155) on the runtime class behind {}
156 (method `{}
157`)",
158                        27usize,
159                        __vt.len(),
160                        <GroupBeginItem as ::unity::ClassIdentity>::NAME,
161                        "GetFontColor",
162                    )
163                });
164                let __inner: extern "C" fn(GroupBeginItem, ::unity::OptionalMethod) -> crate::unity_engine::color::Color =
165                    ::core::mem::transmute(__vi.method_ptr);
166                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
167                __inner(__receiver, __mi)
168            }
169        }
170    }
171    #[doc = "`ACall()` overload"]
172    fn a_call(self) -> crate::app::menuitem::MenuItem_Result {
173        unsafe {
174            let __receiver = <GroupBeginItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
175            {
176                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
177                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
178                    panic!(
179                        "unity: virtual slot {}
180 out of range (vtable len {}
181) on the runtime class behind {}
182 (method `{}
183`)",
184                        12usize,
185                        __vt.len(),
186                        <GroupBeginItem as ::unity::ClassIdentity>::NAME,
187                        "ACall",
188                    )
189                });
190                let __inner: extern "C" fn(GroupBeginItem, ::unity::OptionalMethod) -> crate::app::menuitem::MenuItem_Result =
191                    ::core::mem::transmute(__vi.method_ptr);
192                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
193                __inner(__receiver, __mi)
194            }
195        }
196    }
197    #[doc = "`LeftCall()` overload"]
198    fn left_call(self) -> crate::app::menuitem::MenuItem_Result {
199        unsafe {
200            let __receiver = <GroupBeginItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
201            {
202                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
203                let __vi = *__vt.get(20usize).unwrap_or_else(|| {
204                    panic!(
205                        "unity: virtual slot {}
206 out of range (vtable len {}
207) on the runtime class behind {}
208 (method `{}
209`)",
210                        20usize,
211                        __vt.len(),
212                        <GroupBeginItem as ::unity::ClassIdentity>::NAME,
213                        "LeftCall",
214                    )
215                });
216                let __inner: extern "C" fn(GroupBeginItem, ::unity::OptionalMethod) -> crate::app::menuitem::MenuItem_Result =
217                    ::core::mem::transmute(__vi.method_ptr);
218                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
219                __inner(__receiver, __mi)
220            }
221        }
222    }
223    #[doc = "`RightCall()` overload"]
224    fn right_call(self) -> crate::app::menuitem::MenuItem_Result {
225        unsafe {
226            let __receiver = <GroupBeginItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
227            {
228                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
229                let __vi = *__vt.get(21usize).unwrap_or_else(|| {
230                    panic!(
231                        "unity: virtual slot {}
232 out of range (vtable len {}
233) on the runtime class behind {}
234 (method `{}
235`)",
236                        21usize,
237                        __vt.len(),
238                        <GroupBeginItem as ::unity::ClassIdentity>::NAME,
239                        "RightCall",
240                    )
241                });
242                let __inner: extern "C" fn(GroupBeginItem, ::unity::OptionalMethod) -> crate::app::menuitem::MenuItem_Result =
243                    ::core::mem::transmute(__vi.method_ptr);
244                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
245                __inner(__receiver, __mi)
246            }
247        }
248    }
249    #[doc = "`ChangeState(crate::app::menuitem::MenuItem_State)` overload"]
250    fn change_state(self, state: impl ::core::convert::Into<crate::app::menuitem::MenuItem_State>) -> () {
251        unsafe {
252            let __receiver = <GroupBeginItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
253            ::unity::il2cpp_call!((::unity::module_base()+0x29780d0usize)as*mut u8,();
254(GroupBeginItem)__receiver,(crate::app::menuitem::MenuItem_State)::core::convert::Into::into(state))
255        }
256    }
257}
258
259#[cfg(feature = "app-groupbeginitem")]
260impl<__T: IGroupBeginItem> IGroupBeginItemMethods for __T {}
261
262#[cfg(feature = "app-groupbeginitem")]
263impl GroupBeginItem {
264    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
265        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
266    }
267
268    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
269        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
270    }
271
272    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
273        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
274    }
275
276    pub fn get_help_method_info() -> &'static ::unity::il2cpp::MethodInfo {
277        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
278    }
279
280    pub fn get_kind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
281        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
282    }
283
284    pub fn get_font_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
286    }
287
288    pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
289        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
290    }
291
292    pub fn left_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
294    }
295
296    pub fn right_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
298    }
299
300    pub fn change_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
302    }
303
304    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
306    }
307}
308
309#[cfg(feature = "app-groupbeginitem")]
310impl GroupBeginItem {
311    #[doc = "Direct (non-virtual) call to `GroupBeginItem`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
312    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
313        let __mi = Self::get_name_method_info();
314        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
315        __inner(this.into(), ::core::option::Option::None)
316    }
317
318    #[doc = "Direct (non-virtual) call to `GroupBeginItem`'s own `GetHelp`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
319    pub unsafe fn get_help(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
320        let __mi = Self::get_help_method_info();
321        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
322        __inner(this.into(), ::core::option::Option::None)
323    }
324
325    #[doc = "Direct (non-virtual) call to `GroupBeginItem`'s own `GetKind`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
326    pub unsafe fn get_kind(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::menuitem::MenuItem_Kind {
327        let __mi = Self::get_kind_method_info();
328        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::menuitem::MenuItem_Kind =
329            ::core::mem::transmute(__mi.method_ptr);
330        __inner(this.into(), ::core::option::Option::None)
331    }
332
333    #[doc = "Direct (non-virtual) call to `GroupBeginItem`'s own `GetFontColor`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
334    pub unsafe fn get_font_color(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::color::Color {
335        let __mi = Self::get_font_color_method_info();
336        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::color::Color =
337            ::core::mem::transmute(__mi.method_ptr);
338        __inner(this.into(), ::core::option::Option::None)
339    }
340
341    #[doc = "Direct (non-virtual) call to `GroupBeginItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
342    pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::menuitem::MenuItem_Result {
343        let __mi = Self::a_call_method_info();
344        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::menuitem::MenuItem_Result =
345            ::core::mem::transmute(__mi.method_ptr);
346        __inner(this.into(), ::core::option::Option::None)
347    }
348
349    #[doc = "Direct (non-virtual) call to `GroupBeginItem`'s own `LeftCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
350    pub unsafe fn left_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::menuitem::MenuItem_Result {
351        let __mi = Self::left_call_method_info();
352        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::menuitem::MenuItem_Result =
353            ::core::mem::transmute(__mi.method_ptr);
354        __inner(this.into(), ::core::option::Option::None)
355    }
356
357    #[doc = "Direct (non-virtual) call to `GroupBeginItem`'s own `RightCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
358    pub unsafe fn right_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::menuitem::MenuItem_Result {
359        let __mi = Self::right_call_method_info();
360        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::menuitem::MenuItem_Result =
361            ::core::mem::transmute(__mi.method_ptr);
362        __inner(this.into(), ::core::option::Option::None)
363    }
364}
365
366#[cfg(feature = "app-groupbeginitem")]
367impl GroupBeginItem {
368    #[doc = "`.ctor(::unity::Il2CppString, crate::app::menuitem::MenuItem_State)` — overload selector"]
369    pub fn new(name: ::unity::Il2CppString, state: crate::app::menuitem::MenuItem_State) -> Self {
370        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
371            panic!(
372                "{}
373::{}
374 failed to instantiate",
375                ::core::stringify!(GroupBeginItem),
376                ::core::stringify!(new),
377            )
378        });
379        <Self as IGroupBeginItemMethods>::ctor(this, name, state);
380        this
381    }
382
383    #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString, crate::app::menuitem::MenuItem_State)` — overload selector"]
384    pub fn new_2(name: ::unity::Il2CppString, english: ::unity::Il2CppString, state: crate::app::menuitem::MenuItem_State) -> Self {
385        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
386            panic!(
387                "{}
388::{}
389 failed to instantiate",
390                ::core::stringify!(GroupBeginItem),
391                ::core::stringify!(new_2),
392            )
393        });
394        <Self as IGroupBeginItemMethods>::ctor_2(this, name, english, state);
395        this
396    }
397}
398
399#[cfg(feature = "app-groupbeginitem")]
400#[doc(hidden)]
401pub mod prelude {
402    pub use super::{GroupBeginItem, IGroupBeginItem, IGroupBeginItemMethods};
403    #[cfg(feature = "app-menuitem")]
404    pub use crate::app::menuitem::IMenuItemMethods;
405    #[cfg(feature = "app-stringitem")]
406    pub use crate::app::stringitem::IStringItemMethods;
407    #[cfg(feature = "system-object")]
408    pub use crate::system::object::IObjectMethods;
409    pub use crate::{
410        app::{menuitem::IMenuItem, stringitem::IStringItem},
411        system::object::IObject,
412    };
413}