1#[cfg(feature = "app-groupitemscope-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/groupitemscope/GroupItemScope.md"))]
11 #[::unity::class(namespace = "App", name = "GroupItemScope")]
12 #[parent(crate::system::object::Object)]
13 pub struct GroupItemScope {
14 #[offset(16)]
15 #[rename(name = "m_Menu")]
16 pub m_menu: crate::app::debugmenu::DebugMenu,
17 }
18}
19
20#[cfg(feature = "app-groupitemscope-types")]
21pub use __types::*;
22
23#[cfg(feature = "app-groupitemscope")]
24pub trait IGroupItemScopeMethods: IGroupItemScope {
25 #[doc = "`.ctor(crate::app::debugmenu::DebugMenu, ::unity::Il2CppString, crate::app::menuitem::MenuItem_State)` overload"]
26 fn ctor(
27 self,
28 menu: impl ::core::convert::Into<crate::app::debugmenu::DebugMenu>,
29 name: impl ::core::convert::Into<::unity::Il2CppString>,
30 state: impl ::core::convert::Into<crate::app::menuitem::MenuItem_State>,
31 ) -> () {
32 unsafe {
33 let __receiver = <GroupItemScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
34 ::unity::il2cpp_call!((::unity::module_base()+0x2978220usize)as*mut u8,();
35(GroupItemScope)__receiver,(crate::app::debugmenu::DebugMenu)::core::convert::Into::into(menu),(::unity::Il2CppString)::core::convert::Into::into(name),(crate::app::menuitem::MenuItem_State)::core::convert::Into::into(state))
36 }
37 }
38 #[doc = "`.ctor(crate::app::debugmenu::DebugMenu, ::unity::Il2CppString, ::unity::Il2CppString, crate::app::menuitem::MenuItem_State)` overload"]
39 fn ctor_2(
40 self,
41 menu: impl ::core::convert::Into<crate::app::debugmenu::DebugMenu>,
42 name: impl ::core::convert::Into<::unity::Il2CppString>,
43 english: impl ::core::convert::Into<::unity::Il2CppString>,
44 state: impl ::core::convert::Into<crate::app::menuitem::MenuItem_State>,
45 ) -> () {
46 unsafe {
47 let __receiver = <GroupItemScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48 ::unity::il2cpp_call!((::unity::module_base()+0x29783a0usize)as*mut u8,();
49(GroupItemScope)__receiver,(crate::app::debugmenu::DebugMenu)::core::convert::Into::into(menu),(::unity::Il2CppString)::core::convert::Into::into(name),(::unity::Il2CppString)::core::convert::Into::into(english),(crate::app::menuitem::MenuItem_State)::core::convert::Into::into(state))
50 }
51 }
52 #[doc = "`Setup(crate::app::debugmenu::DebugMenu, ::unity::Il2CppString, ::unity::Il2CppString, crate::app::menuitem::MenuItem_State)` overload"]
53 fn setup(
54 self,
55 menu: impl ::core::convert::Into<crate::app::debugmenu::DebugMenu>,
56 name: impl ::core::convert::Into<::unity::Il2CppString>,
57 english: impl ::core::convert::Into<::unity::Il2CppString>,
58 state: impl ::core::convert::Into<crate::app::menuitem::MenuItem_State>,
59 ) -> () {
60 unsafe {
61 let __receiver = <GroupItemScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62 ::unity::il2cpp_call!((::unity::module_base()+0x29782e0usize)as*mut u8,();
63(GroupItemScope)__receiver,(crate::app::debugmenu::DebugMenu)::core::convert::Into::into(menu),(::unity::Il2CppString)::core::convert::Into::into(name),(::unity::Il2CppString)::core::convert::Into::into(english),(crate::app::menuitem::MenuItem_State)::core::convert::Into::into(state))
64 }
65 }
66 #[doc = "`Finalize()` overload"]
67 fn finalize(self) -> () {
68 unsafe {
69 let __receiver = <GroupItemScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
70 {
71 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
72 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
73 panic!(
74 "unity: virtual slot {}
75 out of range (vtable len {}
76) on the runtime class behind {}
77 (method `{}
78`)",
79 1usize,
80 __vt.len(),
81 <GroupItemScope as ::unity::ClassIdentity>::NAME,
82 "Finalize",
83 )
84 });
85 let __inner: extern "C" fn(GroupItemScope, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
86 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
87 __inner(__receiver, __mi)
88 }
89 }
90 }
91 #[doc = "`Dispose()` overload"]
92 fn dispose(self) -> () {
93 unsafe {
94 let __receiver = <GroupItemScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95 {
96 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
97 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
98 panic!(
99 "unity: virtual slot {}
100 out of range (vtable len {}
101) on the runtime class behind {}
102 (method `{}
103`)",
104 4usize,
105 __vt.len(),
106 <GroupItemScope as ::unity::ClassIdentity>::NAME,
107 "Dispose",
108 )
109 });
110 let __inner: extern "C" fn(GroupItemScope, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
111 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
112 __inner(__receiver, __mi)
113 }
114 }
115 }
116}
117
118#[cfg(feature = "app-groupitemscope")]
119impl<__T: IGroupItemScope> IGroupItemScopeMethods for __T {}
120
121#[cfg(feature = "app-groupitemscope")]
122impl GroupItemScope {
123 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
124 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
125 }
126
127 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
129 }
130
131 pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
133 }
134
135 pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
137 }
138
139 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
141 }
142}
143
144#[cfg(feature = "app-groupitemscope")]
145impl GroupItemScope {
146 #[doc = "Direct (non-virtual) call to `GroupItemScope`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
147 pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
148 let __mi = Self::finalize_method_info();
149 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
150 __inner(this.into(), ::core::option::Option::None)
151 }
152
153 #[doc = "Direct (non-virtual) call to `GroupItemScope`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
154 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
155 let __mi = Self::dispose_method_info();
156 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
157 __inner(this.into(), ::core::option::Option::None)
158 }
159}
160
161#[cfg(feature = "app-groupitemscope")]
162impl GroupItemScope {
163 #[doc = "`.ctor(crate::app::debugmenu::DebugMenu, ::unity::Il2CppString, crate::app::menuitem::MenuItem_State)` — overload selector"]
164 pub fn new(menu: crate::app::debugmenu::DebugMenu, name: ::unity::Il2CppString, state: crate::app::menuitem::MenuItem_State) -> Self {
165 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
166 panic!(
167 "{}
168::{}
169 failed to instantiate",
170 ::core::stringify!(GroupItemScope),
171 ::core::stringify!(new),
172 )
173 });
174 <Self as IGroupItemScopeMethods>::ctor(this, menu, name, state);
175 this
176 }
177
178 #[doc = "`.ctor(crate::app::debugmenu::DebugMenu, ::unity::Il2CppString, ::unity::Il2CppString, crate::app::menuitem::MenuItem_State)` — overload selector"]
179 pub fn new_2(
180 menu: crate::app::debugmenu::DebugMenu,
181 name: ::unity::Il2CppString,
182 english: ::unity::Il2CppString,
183 state: crate::app::menuitem::MenuItem_State,
184 ) -> Self {
185 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
186 panic!(
187 "{}
188::{}
189 failed to instantiate",
190 ::core::stringify!(GroupItemScope),
191 ::core::stringify!(new_2),
192 )
193 });
194 <Self as IGroupItemScopeMethods>::ctor_2(this, menu, name, english, state);
195 this
196 }
197}
198
199#[cfg(feature = "app-groupitemscope")]
200#[doc(hidden)]
201pub mod prelude {
202 pub use super::{GroupItemScope, IGroupItemScope, IGroupItemScopeMethods};
203 pub use crate::system::object::IObject;
204 #[cfg(feature = "system-object")]
205 pub use crate::system::object::IObjectMethods;
206}