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