1#[cfg(feature = "app-gmapteleportmenu-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 basicmenu::{BasicMenu, IBasicMenu},
11 basicmenuitem::{BasicMenuItem, IBasicMenuItem},
12 procinst::{IProcInst, ProcInst},
13 },
14 system::{
15 delegate::{Delegate, IDelegate},
16 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
17 object::{IObject, Object},
18 },
19 };
20
21 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gmapteleportmenu/GmapTeleportMenu_GmapTeleportMenuItem.md"))]
22 #[::unity::class(namespace = "App", name = "GmapTeleportMenu.GmapTeleportMenuItem")]
23 #[parent(crate::app::basicmenuitem::BasicMenuItem)]
24 pub struct GmapTeleportMenu_GmapTeleportMenuItem {
25 #[offset(104)]
26 #[rename(name = "m_GmapSpot")]
27 pub m_gmap_spot: crate::app::gmapspot::GmapSpot,
28 #[offset(112)]
29 #[rename(name = "m_SpotPosition")]
30 pub m_spot_position: crate::unity_engine::vector3::Vector3,
31 #[offset(128)]
32 #[rename(name = "m_CloseMapAndBarFunc")]
33 pub m_close_map_and_bar_func: crate::system::action::Action,
34 #[offset(136)]
35 #[rename(name = "m_IsCameraFocus")]
36 pub m_is_camera_focus: bool,
37 }
38
39 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gmapteleportmenu/GmapTeleportMenu_DecideEventHandler.md"))]
40 #[::unity::class(namespace = "App", name = "GmapTeleportMenu.DecideEventHandler")]
41 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
42 pub struct GmapTeleportMenu_DecideEventHandler {}
43
44 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gmapteleportmenu/GmapTeleportMenu.md"))]
45 #[::unity::class(namespace = "App", name = "GmapTeleportMenu")]
46 #[parent(crate::app::basicmenu::BasicMenu)]
47 pub struct GmapTeleportMenu {
48 #[offset(200)]
49 #[rename(name = "m_Content")]
50 pub m_content: crate::app::systemscrollmenucontent::SystemScrollMenuContent,
51 #[offset(208)]
52 #[rename(name = "m_GmapInfo")]
53 pub m_gmap_info: crate::app::gmapmapinfocontent::GmapMapInfoContent,
54 #[offset(216)]
55 #[rename(name = "m_DecideCallback")]
56 pub m_decide_callback: crate::app::gmapteleportmenu::GmapTeleportMenu_DecideEventHandler,
57 #[offset(224)]
58 #[rename(name = "m_GoToSolanelCallback")]
59 pub m_go_to_solanel_callback: crate::system::action::Action,
60 #[offset(232)]
61 #[rename(name = "m_CloseMapAndBarFunc")]
62 pub m_close_map_and_bar_func: crate::system::action::Action,
63 }
64}
65
66#[cfg(feature = "app-gmapteleportmenu-types")]
67pub use __types::*;
68
69#[cfg(feature = "app-gmapteleportmenu")]
70pub trait IGmapTeleportMenu_GmapTeleportMenuItemMethods: IGmapTeleportMenu_GmapTeleportMenuItem {
71 #[doc = "`.ctor(crate::app::gmapspot::GmapSpot, crate::system::action::Action)` overload"]
72 fn ctor(
73 self,
74 gmap_spot: impl ::core::convert::Into<crate::app::gmapspot::GmapSpot>,
75 close_map_and_bar_func: impl ::core::convert::Into<crate::system::action::Action>,
76 ) -> () {
77 unsafe {
78 let __receiver = <GmapTeleportMenu_GmapTeleportMenuItem as ::unity::FromIlInstance>::from_il_instance(
79 <Self as ::unity::SystemObject>::as_instance(self),
80 );
81 ::unity::il2cpp_call!((::unity::module_base()+0x1cd5460usize)as*mut u8,();
82(GmapTeleportMenu_GmapTeleportMenuItem)__receiver,(crate::app::gmapspot::GmapSpot)::core::convert::Into::into(gmap_spot),(crate::system::action::Action)::core::convert::Into::into(close_map_and_bar_func))
83 }
84 }
85 #[doc = "`BuildAttribute()` overload"]
86 fn build_attribute(self) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
87 unsafe {
88 let __receiver = <GmapTeleportMenu_GmapTeleportMenuItem as ::unity::FromIlInstance>::from_il_instance(
89 <Self as ::unity::SystemObject>::as_instance(self),
90 );
91 {
92 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
93 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
94 panic!(
95 "unity: virtual slot {}
96 out of range (vtable len {}
97) on the runtime class behind {}
98 (method `{}
99`)",
100 8usize,
101 __vt.len(),
102 <GmapTeleportMenu_GmapTeleportMenuItem as ::unity::ClassIdentity>::NAME,
103 "BuildAttribute",
104 )
105 });
106 let __inner: extern "C" fn(
107 GmapTeleportMenu_GmapTeleportMenuItem,
108 ::unity::OptionalMethod,
109 ) -> crate::app::basicmenuitem::BasicMenuItem_Attribute = ::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 = "`OnSelect()` overload"]
116 fn on_select(self) -> () {
117 unsafe {
118 let __receiver = <GmapTeleportMenu_GmapTeleportMenuItem as ::unity::FromIlInstance>::from_il_instance(
119 <Self as ::unity::SystemObject>::as_instance(self),
120 );
121 {
122 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
123 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
124 panic!(
125 "unity: virtual slot {}
126 out of range (vtable len {}
127) on the runtime class behind {}
128 (method `{}
129`)",
130 12usize,
131 __vt.len(),
132 <GmapTeleportMenu_GmapTeleportMenuItem as ::unity::ClassIdentity>::NAME,
133 "OnSelect",
134 )
135 });
136 let __inner: extern "C" fn(GmapTeleportMenu_GmapTeleportMenuItem, ::unity::OptionalMethod) -> () =
137 ::core::mem::transmute(__vi.method_ptr);
138 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
139 __inner(__receiver, __mi)
140 }
141 }
142 }
143 #[doc = "`ACall()` overload"]
144 fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
145 unsafe {
146 let __receiver = <GmapTeleportMenu_GmapTeleportMenuItem as ::unity::FromIlInstance>::from_il_instance(
147 <Self as ::unity::SystemObject>::as_instance(self),
148 );
149 {
150 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
151 let __vi = *__vt.get(18usize).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 18usize,
159 __vt.len(),
160 <GmapTeleportMenu_GmapTeleportMenuItem as ::unity::ClassIdentity>::NAME,
161 "ACall",
162 )
163 });
164 let __inner: extern "C" fn(
165 GmapTeleportMenu_GmapTeleportMenuItem,
166 ::unity::OptionalMethod,
167 ) -> crate::app::basicmenu::BasicMenu_Result = ::core::mem::transmute(__vi.method_ptr);
168 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
169 __inner(__receiver, __mi)
170 }
171 }
172 }
173 #[doc = "`GetName()` overload"]
174 fn get_name(self) -> ::unity::Il2CppString {
175 unsafe {
176 let __receiver = <GmapTeleportMenu_GmapTeleportMenuItem as ::unity::FromIlInstance>::from_il_instance(
177 <Self as ::unity::SystemObject>::as_instance(self),
178 );
179 {
180 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
181 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
182 panic!(
183 "unity: virtual slot {}
184 out of range (vtable len {}
185) on the runtime class behind {}
186 (method `{}
187`)",
188 4usize,
189 __vt.len(),
190 <GmapTeleportMenu_GmapTeleportMenuItem as ::unity::ClassIdentity>::NAME,
191 "GetName",
192 )
193 });
194 let __inner: extern "C" fn(GmapTeleportMenu_GmapTeleportMenuItem, ::unity::OptionalMethod) -> ::unity::Il2CppString =
195 ::core::mem::transmute(__vi.method_ptr);
196 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
197 __inner(__receiver, __mi)
198 }
199 }
200 }
201 #[doc = "`get_Spot()` overload"]
202 fn get_spot(self) -> crate::app::gmapspot::GmapSpot {
203 unsafe {
204 let __receiver = <GmapTeleportMenu_GmapTeleportMenuItem as ::unity::FromIlInstance>::from_il_instance(
205 <Self as ::unity::SystemObject>::as_instance(self),
206 );
207 ::unity::il2cpp_call!((::unity::module_base()+0x1cd5dc0usize)as*mut u8,crate::app::gmapspot::GmapSpot;
208(GmapTeleportMenu_GmapTeleportMenuItem)__receiver)
209 }
210 }
211}
212
213#[cfg(feature = "app-gmapteleportmenu")]
214impl<__T: IGmapTeleportMenu_GmapTeleportMenuItem> IGmapTeleportMenu_GmapTeleportMenuItemMethods for __T {}
215
216#[cfg(feature = "app-gmapteleportmenu")]
217impl GmapTeleportMenu_GmapTeleportMenuItem {
218 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
220 }
221
222 pub fn build_attribute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
224 }
225
226 pub fn on_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
227 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
228 }
229
230 pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
231 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
232 }
233
234 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
236 }
237
238 pub fn get_spot_method_info() -> &'static ::unity::il2cpp::MethodInfo {
239 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
240 }
241}
242
243#[cfg(feature = "app-gmapteleportmenu")]
244impl GmapTeleportMenu_GmapTeleportMenuItem {
245 #[doc = "Direct (non-virtual) call to `GmapTeleportMenu_GmapTeleportMenuItem`'s own `BuildAttribute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
246 pub unsafe fn build_attribute(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
247 let __mi = Self::build_attribute_method_info();
248 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
249 ::core::mem::transmute(__mi.method_ptr);
250 __inner(this.into(), ::core::option::Option::None)
251 }
252
253 #[doc = "Direct (non-virtual) call to `GmapTeleportMenu_GmapTeleportMenuItem`'s own `OnSelect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
254 pub unsafe fn on_select(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
255 let __mi = Self::on_select_method_info();
256 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
257 __inner(this.into(), ::core::option::Option::None)
258 }
259
260 #[doc = "Direct (non-virtual) call to `GmapTeleportMenu_GmapTeleportMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
261 pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
262 let __mi = Self::a_call_method_info();
263 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
264 ::core::mem::transmute(__mi.method_ptr);
265 __inner(this.into(), ::core::option::Option::None)
266 }
267
268 #[doc = "Direct (non-virtual) call to `GmapTeleportMenu_GmapTeleportMenuItem`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
269 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
270 let __mi = Self::get_name_method_info();
271 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
272 __inner(this.into(), ::core::option::Option::None)
273 }
274}
275
276#[cfg(feature = "app-gmapteleportmenu")]
277impl GmapTeleportMenu_GmapTeleportMenuItem {
278 #[doc = "`.ctor(crate::app::gmapspot::GmapSpot, crate::system::action::Action)` — overload selector"]
279 pub fn new(gmap_spot: crate::app::gmapspot::GmapSpot, close_map_and_bar_func: crate::system::action::Action) -> Self {
280 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
281 panic!(
282 "{}
283::{}
284 failed to instantiate",
285 ::core::stringify!(GmapTeleportMenu_GmapTeleportMenuItem),
286 ::core::stringify!(new),
287 )
288 });
289 <Self as IGmapTeleportMenu_GmapTeleportMenuItemMethods>::ctor(this, gmap_spot, close_map_and_bar_func);
290 this
291 }
292}
293
294#[cfg(feature = "app-gmapteleportmenu")]
295pub trait IGmapTeleportMenu_DecideEventHandlerMethods: IGmapTeleportMenu_DecideEventHandler {
296 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
297 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
298 unsafe {
299 let __receiver = <GmapTeleportMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
300 <Self as ::unity::SystemObject>::as_instance(self),
301 );
302 ::unity::il2cpp_call!((::unity::module_base()+0x1cd3890usize)as*mut u8,();
303(GmapTeleportMenu_DecideEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
304 }
305 }
306 #[doc = "`Invoke(crate::app::gmapspot::GmapSpot)` overload"]
307 fn invoke(self, gmap_spot: impl ::core::convert::Into<crate::app::gmapspot::GmapSpot>) -> () {
308 unsafe {
309 let __receiver = <GmapTeleportMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
310 <Self as ::unity::SystemObject>::as_instance(self),
311 );
312 {
313 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
314 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
315 panic!(
316 "unity: virtual slot {}
317 out of range (vtable len {}
318) on the runtime class behind {}
319 (method `{}
320`)",
321 13usize,
322 __vt.len(),
323 <GmapTeleportMenu_DecideEventHandler as ::unity::ClassIdentity>::NAME,
324 "Invoke",
325 )
326 });
327 let __inner: extern "C" fn(GmapTeleportMenu_DecideEventHandler, crate::app::gmapspot::GmapSpot, ::unity::OptionalMethod) -> () =
328 ::core::mem::transmute(__vi.method_ptr);
329 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
330 __inner(__receiver, ::core::convert::Into::into(gmap_spot), __mi)
331 }
332 }
333 }
334}
335
336#[cfg(feature = "app-gmapteleportmenu")]
337impl<__T: IGmapTeleportMenu_DecideEventHandler> IGmapTeleportMenu_DecideEventHandlerMethods for __T {}
338
339#[cfg(feature = "app-gmapteleportmenu")]
340impl GmapTeleportMenu_DecideEventHandler {
341 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
342 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
343 }
344
345 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
346 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
347 }
348}
349
350#[cfg(feature = "app-gmapteleportmenu")]
351impl GmapTeleportMenu_DecideEventHandler {
352 #[doc = "Direct (non-virtual) call to `GmapTeleportMenu_DecideEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
353 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, gmap_spot: crate::app::gmapspot::GmapSpot) -> () {
354 let __mi = Self::invoke_method_info();
355 let __inner: extern "C" fn(::unity::IlInstance, crate::app::gmapspot::GmapSpot, ::unity::OptionalMethod) -> () =
356 ::core::mem::transmute(__mi.method_ptr);
357 __inner(this.into(), gmap_spot, ::core::option::Option::None)
358 }
359}
360
361#[cfg(feature = "app-gmapteleportmenu")]
362impl GmapTeleportMenu_DecideEventHandler {
363 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
364 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
365 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
366 panic!(
367 "{}
368::{}
369 failed to instantiate",
370 ::core::stringify!(GmapTeleportMenu_DecideEventHandler),
371 ::core::stringify!(new),
372 )
373 });
374 <Self as IGmapTeleportMenu_DecideEventHandlerMethods>::ctor(this, object, method);
375 this
376 }
377}
378
379#[cfg(feature = "app-gmapteleportmenu")]
380impl GmapTeleportMenu {
381 #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::gmapmapinfocontent::GmapMapInfoContent, crate::app::gmapteleportmenu::GmapTeleportMenu_DecideEventHandler, crate::system::action::Action, crate::system::action::Action)` overload"]
382 pub fn create_bind(
383 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
384 gmap_info: impl ::core::convert::Into<crate::app::gmapmapinfocontent::GmapMapInfoContent>,
385 decide_event_handler: impl ::core::convert::Into<crate::app::gmapteleportmenu::GmapTeleportMenu_DecideEventHandler>,
386 goto_solanel_callback: impl ::core::convert::Into<crate::system::action::Action>,
387 close_map_and_bar_func: impl ::core::convert::Into<crate::system::action::Action>,
388 ) -> () {
389 unsafe {
390 ::unity::il2cpp_call!((::unity::module_base()+0x2b49e00usize)as*mut u8,();
391(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::gmapmapinfocontent::GmapMapInfoContent)::core::convert::Into::into(gmap_info),(crate::app::gmapteleportmenu::GmapTeleportMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler),(crate::system::action::Action)::core::convert::Into::into(goto_solanel_callback),(crate::system::action::Action)::core::convert::Into::into(close_map_and_bar_func))
392 }
393 }
394
395 #[doc = "`AddMenuItems(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::system::action::Action)` overload"]
396 pub fn add_menu_items(
397 list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
398 close_map_and_bar_func: impl ::core::convert::Into<crate::system::action::Action>,
399 ) -> () {
400 unsafe {
401 ::unity::il2cpp_call!((::unity::module_base()+0x2b49f60usize)as*mut u8,();
402(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>)::core::convert::Into::into(list),(crate::system::action::Action)::core::convert::Into::into(close_map_and_bar_func))
403 }
404 }
405}
406
407#[cfg(feature = "app-gmapteleportmenu")]
408pub trait IGmapTeleportMenuMethods: IGmapTeleportMenu {
409 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::basicmenucontent::BasicMenuContent, crate::app::gmapmapinfocontent::GmapMapInfoContent, crate::app::gmapteleportmenu::GmapTeleportMenu_DecideEventHandler, crate::system::action::Action, crate::system::action::Action)` overload"]
410 fn ctor(
411 self,
412 menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
413 menu_content: impl ::core::convert::Into<crate::app::basicmenucontent::BasicMenuContent>,
414 gmap_map_info: impl ::core::convert::Into<crate::app::gmapmapinfocontent::GmapMapInfoContent>,
415 decide_event_handler: impl ::core::convert::Into<crate::app::gmapteleportmenu::GmapTeleportMenu_DecideEventHandler>,
416 goto_solanel_callback: impl ::core::convert::Into<crate::system::action::Action>,
417 close_map_and_bar_func: impl ::core::convert::Into<crate::system::action::Action>,
418 ) -> () {
419 unsafe {
420 let __receiver = <GmapTeleportMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
421 ::unity::il2cpp_call!((::unity::module_base()+0x2b4a180usize)as*mut u8,();
422(GmapTeleportMenu)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>)::core::convert::Into::into(menu_item_list),(crate::app::basicmenucontent::BasicMenuContent)::core::convert::Into::into(menu_content),(crate::app::gmapmapinfocontent::GmapMapInfoContent)::core::convert::Into::into(gmap_map_info),(crate::app::gmapteleportmenu::GmapTeleportMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler),(crate::system::action::Action)::core::convert::Into::into(goto_solanel_callback),(crate::system::action::Action)::core::convert::Into::into(close_map_and_bar_func))
423 }
424 }
425 #[doc = "`GetName()` overload"]
426 fn get_name(self) -> ::unity::Il2CppString {
427 unsafe {
428 let __receiver = <GmapTeleportMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
429 {
430 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
431 let __vi = *__vt.get(30usize).unwrap_or_else(|| {
432 panic!(
433 "unity: virtual slot {}
434 out of range (vtable len {}
435) on the runtime class behind {}
436 (method `{}
437`)",
438 30usize,
439 __vt.len(),
440 <GmapTeleportMenu as ::unity::ClassIdentity>::NAME,
441 "GetName",
442 )
443 });
444 let __inner: extern "C" fn(GmapTeleportMenu, ::unity::OptionalMethod) -> ::unity::Il2CppString =
445 ::core::mem::transmute(__vi.method_ptr);
446 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
447 __inner(__receiver, __mi)
448 }
449 }
450 }
451 #[doc = "`GetMenuContent()` overload"]
452 fn get_menu_content(self) -> crate::app::systemscrollmenucontent::SystemScrollMenuContent {
453 unsafe {
454 let __receiver = <GmapTeleportMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
455 ::unity::il2cpp_call!((::unity::module_base()+0x2b4a2e0usize)as*mut u8,crate::app::systemscrollmenucontent::SystemScrollMenuContent;
456(GmapTeleportMenu)__receiver)
457 }
458 }
459 #[doc = "`BCall()` overload"]
460 fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
461 unsafe {
462 let __receiver = <GmapTeleportMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
463 {
464 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
465 let __vi = *__vt.get(51usize).unwrap_or_else(|| {
466 panic!(
467 "unity: virtual slot {}
468 out of range (vtable len {}
469) on the runtime class behind {}
470 (method `{}
471`)",
472 51usize,
473 __vt.len(),
474 <GmapTeleportMenu as ::unity::ClassIdentity>::NAME,
475 "BCall",
476 )
477 });
478 let __inner: extern "C" fn(GmapTeleportMenu, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
479 ::core::mem::transmute(__vi.method_ptr);
480 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
481 __inner(__receiver, __mi)
482 }
483 }
484 }
485}
486
487#[cfg(feature = "app-gmapteleportmenu")]
488impl<__T: IGmapTeleportMenu> IGmapTeleportMenuMethods for __T {}
489
490#[cfg(feature = "app-gmapteleportmenu")]
491impl GmapTeleportMenu {
492 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
493 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
494 }
495
496 pub fn add_menu_items_method_info() -> &'static ::unity::il2cpp::MethodInfo {
497 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
498 }
499
500 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
501 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
502 }
503
504 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
505 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
506 }
507
508 pub fn get_menu_content_method_info() -> &'static ::unity::il2cpp::MethodInfo {
509 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
510 }
511
512 pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
513 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
514 }
515}
516
517#[cfg(feature = "app-gmapteleportmenu")]
518impl GmapTeleportMenu {
519 #[doc = "Direct (non-virtual) call to `GmapTeleportMenu`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
520 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
521 let __mi = Self::get_name_method_info();
522 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
523 __inner(this.into(), ::core::option::Option::None)
524 }
525
526 #[doc = "Direct (non-virtual) call to `GmapTeleportMenu`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
527 pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
528 let __mi = Self::b_call_method_info();
529 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
530 ::core::mem::transmute(__mi.method_ptr);
531 __inner(this.into(), ::core::option::Option::None)
532 }
533}
534
535#[cfg(feature = "app-gmapteleportmenu")]
536impl GmapTeleportMenu {
537 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::basicmenucontent::BasicMenuContent, crate::app::gmapmapinfocontent::GmapMapInfoContent, crate::app::gmapteleportmenu::GmapTeleportMenu_DecideEventHandler, crate::system::action::Action, crate::system::action::Action)` — overload selector"]
538 pub fn new(
539 menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
540 menu_content: crate::app::basicmenucontent::BasicMenuContent,
541 gmap_map_info: crate::app::gmapmapinfocontent::GmapMapInfoContent,
542 decide_event_handler: crate::app::gmapteleportmenu::GmapTeleportMenu_DecideEventHandler,
543 goto_solanel_callback: crate::system::action::Action,
544 close_map_and_bar_func: crate::system::action::Action,
545 ) -> Self {
546 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
547 panic!(
548 "{}
549::{}
550 failed to instantiate",
551 ::core::stringify!(GmapTeleportMenu),
552 ::core::stringify!(new),
553 )
554 });
555 <Self as IGmapTeleportMenuMethods>::ctor(
556 this,
557 menu_item_list,
558 menu_content,
559 gmap_map_info,
560 decide_event_handler,
561 goto_solanel_callback,
562 close_map_and_bar_func,
563 );
564 this
565 }
566}
567
568#[cfg(feature = "app-gmapteleportmenu")]
569#[doc(hidden)]
570pub mod prelude {
571 pub use super::{
572 GmapTeleportMenu, GmapTeleportMenu_DecideEventHandler, GmapTeleportMenu_GmapTeleportMenuItem, IGmapTeleportMenu, IGmapTeleportMenuMethods,
573 IGmapTeleportMenu_DecideEventHandler, IGmapTeleportMenu_DecideEventHandlerMethods, IGmapTeleportMenu_GmapTeleportMenuItem,
574 IGmapTeleportMenu_GmapTeleportMenuItemMethods,
575 };
576 #[cfg(feature = "app-basicmenu")]
577 pub use crate::app::basicmenu::IBasicMenuMethods;
578 #[cfg(feature = "app-basicmenuitem")]
579 pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
580 #[cfg(feature = "app-procinst")]
581 pub use crate::app::procinst::IProcInstMethods;
582 #[cfg(feature = "system-delegate")]
583 pub use crate::system::delegate::IDelegateMethods;
584 #[cfg(feature = "system-multicastdelegate")]
585 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
586 #[cfg(feature = "system-object")]
587 pub use crate::system::object::IObjectMethods;
588 pub use crate::{
589 app::{basicmenu::IBasicMenu, basicmenuitem::IBasicMenuItem, procinst::IProcInst},
590 system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
591 };
592}