engage/generated/app/
gameexititem.rs1#[cfg(feature = "app-gameexititem-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/gameexititem/GameExitItem.md"))]
14 #[::unity::class(namespace = "App", name = "GameExitItem")]
15 #[parent(crate::app::menuitem::MenuItem)]
16 pub struct GameExitItem {}
17}
18
19#[cfg(feature = "app-gameexititem-types")]
20pub use __types::*;
21
22#[cfg(feature = "app-gameexititem")]
23pub trait IGameExitItemMethods: IGameExitItem {
24 #[doc = "`GetName()` overload"]
25 fn get_name(self) -> ::unity::Il2CppString {
26 unsafe {
27 let __receiver = <GameExitItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
28 {
29 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
30 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
31 panic!(
32 "unity: virtual slot {}
33 out of range (vtable len {}
34) on the runtime class behind {}
35 (method `{}
36`)",
37 5usize,
38 __vt.len(),
39 <GameExitItem as ::unity::ClassIdentity>::NAME,
40 "GetName",
41 )
42 });
43 let __inner: extern "C" fn(GameExitItem, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
44 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
45 __inner(__receiver, __mi)
46 }
47 }
48 }
49 #[doc = "`GetNameEnglish()` overload"]
50 fn get_name_english(self) -> ::unity::Il2CppString {
51 unsafe {
52 let __receiver = <GameExitItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
53 {
54 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
55 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
56 panic!(
57 "unity: virtual slot {}
58 out of range (vtable len {}
59) on the runtime class behind {}
60 (method `{}
61`)",
62 6usize,
63 __vt.len(),
64 <GameExitItem as ::unity::ClassIdentity>::NAME,
65 "GetNameEnglish",
66 )
67 });
68 let __inner: extern "C" fn(GameExitItem, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
69 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
70 __inner(__receiver, __mi)
71 }
72 }
73 }
74 #[doc = "`ACall()` overload"]
75 fn a_call(self) -> crate::app::menuitem::MenuItem_Result {
76 unsafe {
77 let __receiver = <GameExitItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78 {
79 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
80 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
81 panic!(
82 "unity: virtual slot {}
83 out of range (vtable len {}
84) on the runtime class behind {}
85 (method `{}
86`)",
87 12usize,
88 __vt.len(),
89 <GameExitItem as ::unity::ClassIdentity>::NAME,
90 "ACall",
91 )
92 });
93 let __inner: extern "C" fn(GameExitItem, ::unity::OptionalMethod) -> crate::app::menuitem::MenuItem_Result =
94 ::core::mem::transmute(__vi.method_ptr);
95 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
96 __inner(__receiver, __mi)
97 }
98 }
99 }
100 #[doc = "`.ctor()` overload"]
101 fn ctor(self) -> () {
102 unsafe {
103 let __receiver = <GameExitItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
104 ::unity::il2cpp_call!((::unity::module_base()+0x227bfa0usize)as*mut u8,();
105(GameExitItem)__receiver)
106 }
107 }
108}
109
110#[cfg(feature = "app-gameexititem")]
111impl<__T: IGameExitItem> IGameExitItemMethods for __T {}
112
113#[cfg(feature = "app-gameexititem")]
114impl GameExitItem {
115 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
116 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
117 }
118
119 pub fn get_name_english_method_info() -> &'static ::unity::il2cpp::MethodInfo {
120 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
121 }
122
123 pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
124 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
125 }
126
127 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
129 }
130}
131
132#[cfg(feature = "app-gameexititem")]
133impl GameExitItem {
134 #[doc = "Direct (non-virtual) call to `GameExitItem`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
135 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
136 let __mi = Self::get_name_method_info();
137 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
138 __inner(this.into(), ::core::option::Option::None)
139 }
140
141 #[doc = "Direct (non-virtual) call to `GameExitItem`'s own `GetNameEnglish`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
142 pub unsafe fn get_name_english(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
143 let __mi = Self::get_name_english_method_info();
144 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
145 __inner(this.into(), ::core::option::Option::None)
146 }
147
148 #[doc = "Direct (non-virtual) call to `GameExitItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
149 pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::menuitem::MenuItem_Result {
150 let __mi = Self::a_call_method_info();
151 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::menuitem::MenuItem_Result =
152 ::core::mem::transmute(__mi.method_ptr);
153 __inner(this.into(), ::core::option::Option::None)
154 }
155}
156
157#[cfg(feature = "app-gameexititem")]
158impl GameExitItem {
159 #[doc = "`.ctor()` — no args"]
160 pub fn new() -> Self {
161 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
162 panic!(
163 "{}
164::{}
165 failed to instantiate",
166 ::core::stringify!(GameExitItem),
167 ::core::stringify!(new),
168 )
169 });
170 <Self as IGameExitItemMethods>::ctor(this);
171 this
172 }
173}
174
175#[cfg(feature = "app-gameexititem")]
176#[doc(hidden)]
177pub mod prelude {
178 pub use super::{GameExitItem, IGameExitItem, IGameExitItemMethods};
179 #[cfg(feature = "app-menuitem")]
180 pub use crate::app::menuitem::IMenuItemMethods;
181 #[cfg(feature = "system-object")]
182 pub use crate::system::object::IObjectMethods;
183 pub use crate::{app::menuitem::IMenuItem, system::object::IObject};
184}