Skip to main content

engage/generated/app/
dragonridetestcoursemenu.rs

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