engage/generated/app/
myroomwakeupselectmenucontent.rs1#[cfg(feature = "app-myroomwakeupselectmenucontent-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::basicmenucontent::{BasicMenuContent, IBasicMenuContent},
10 system::object::{IObject, Object},
11 unity_engine::{
12 behaviour::{Behaviour, IBehaviour},
13 component::{Component, IComponent},
14 monobehaviour::{IMonoBehaviour, MonoBehaviour},
15 object_2::{IObject_2, Object_2},
16 },
17 };
18
19 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/myroomwakeupselectmenucontent/MyRoomWakeupSelectMenuContent.md"))]
20 #[::unity::class(namespace = "App", name = "MyRoomWakeupSelectMenuContent")]
21 #[parent(crate::app::basicmenucontent::BasicMenuContent)]
22 pub struct MyRoomWakeupSelectMenuContent {}
23}
24
25#[cfg(feature = "app-myroomwakeupselectmenucontent-types")]
26pub use __types::*;
27
28#[cfg(feature = "app-myroomwakeupselectmenucontent")]
29pub trait IMyRoomWakeupSelectMenuContentMethods: IMyRoomWakeupSelectMenuContent {
30 #[doc = "`AfterBuild()` overload"]
31 fn after_build(self) -> () {
32 unsafe {
33 let __receiver =
34 <MyRoomWakeupSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
35 {
36 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
37 let __vi = *__vt.get(27usize).unwrap_or_else(|| {
38 panic!(
39 "unity: virtual slot {}
40 out of range (vtable len {}
41) on the runtime class behind {}
42 (method `{}
43`)",
44 27usize,
45 __vt.len(),
46 <MyRoomWakeupSelectMenuContent as ::unity::ClassIdentity>::NAME,
47 "AfterBuild",
48 )
49 });
50 let __inner: extern "C" fn(MyRoomWakeupSelectMenuContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
51 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
52 __inner(__receiver, __mi)
53 }
54 }
55 }
56 #[doc = "`CalcCursorMovedPosY(i32)` overload"]
57 fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
58 unsafe {
59 let __receiver =
60 <MyRoomWakeupSelectMenuContent 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(10usize).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 10usize,
71 __vt.len(),
72 <MyRoomWakeupSelectMenuContent as ::unity::ClassIdentity>::NAME,
73 "CalcCursorMovedPosY",
74 )
75 });
76 let __inner: extern "C" fn(MyRoomWakeupSelectMenuContent, i32, ::unity::OptionalMethod) -> f32 =
77 ::core::mem::transmute(__vi.method_ptr);
78 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
79 __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
80 }
81 }
82 }
83 #[doc = "`GetMenuItemContentMax()` overload"]
84 fn get_menu_item_content_max(self) -> i32 {
85 unsafe {
86 let __receiver =
87 <MyRoomWakeupSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88 {
89 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
90 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
91 panic!(
92 "unity: virtual slot {}
93 out of range (vtable len {}
94) on the runtime class behind {}
95 (method `{}
96`)",
97 4usize,
98 __vt.len(),
99 <MyRoomWakeupSelectMenuContent as ::unity::ClassIdentity>::NAME,
100 "GetMenuItemContentMax",
101 )
102 });
103 let __inner: extern "C" fn(MyRoomWakeupSelectMenuContent, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
104 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
105 __inner(__receiver, __mi)
106 }
107 }
108 }
109 #[doc = "`CalcW()` overload"]
110 fn calc_w(self) -> f32 {
111 unsafe {
112 let __receiver =
113 <MyRoomWakeupSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
114 {
115 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
116 let __vi = *__vt.get(21usize).unwrap_or_else(|| {
117 panic!(
118 "unity: virtual slot {}
119 out of range (vtable len {}
120) on the runtime class behind {}
121 (method `{}
122`)",
123 21usize,
124 __vt.len(),
125 <MyRoomWakeupSelectMenuContent as ::unity::ClassIdentity>::NAME,
126 "CalcW",
127 )
128 });
129 let __inner: extern "C" fn(MyRoomWakeupSelectMenuContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
130 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
131 __inner(__receiver, __mi)
132 }
133 }
134 }
135 #[doc = "`CalcH()` overload"]
136 fn calc_h(self) -> f32 {
137 unsafe {
138 let __receiver =
139 <MyRoomWakeupSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
140 {
141 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
142 let __vi = *__vt.get(22usize).unwrap_or_else(|| {
143 panic!(
144 "unity: virtual slot {}
145 out of range (vtable len {}
146) on the runtime class behind {}
147 (method `{}
148`)",
149 22usize,
150 __vt.len(),
151 <MyRoomWakeupSelectMenuContent as ::unity::ClassIdentity>::NAME,
152 "CalcH",
153 )
154 });
155 let __inner: extern "C" fn(MyRoomWakeupSelectMenuContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
156 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
157 __inner(__receiver, __mi)
158 }
159 }
160 }
161 #[doc = "`.ctor()` overload"]
162 fn ctor(self) -> () {
163 unsafe {
164 let __receiver =
165 <MyRoomWakeupSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
166 ::unity::il2cpp_call!((::unity::module_base()+0x23a5610usize)as*mut u8,();
167(MyRoomWakeupSelectMenuContent)__receiver)
168 }
169 }
170}
171
172#[cfg(feature = "app-myroomwakeupselectmenucontent")]
173impl<__T: IMyRoomWakeupSelectMenuContent> IMyRoomWakeupSelectMenuContentMethods for __T {}
174
175#[cfg(feature = "app-myroomwakeupselectmenucontent")]
176impl MyRoomWakeupSelectMenuContent {
177 pub fn after_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
178 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
179 }
180
181 pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
182 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
183 }
184
185 pub fn get_menu_item_content_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
186 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
187 }
188
189 pub fn calc_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
191 }
192
193 pub fn calc_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
195 }
196
197 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
198 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
199 }
200}
201
202#[cfg(feature = "app-myroomwakeupselectmenucontent")]
203impl MyRoomWakeupSelectMenuContent {
204 #[doc = "Direct (non-virtual) call to `MyRoomWakeupSelectMenuContent`'s own `AfterBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
205 pub unsafe fn after_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
206 let __mi = Self::after_build_method_info();
207 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
208 __inner(this.into(), ::core::option::Option::None)
209 }
210
211 #[doc = "Direct (non-virtual) call to `MyRoomWakeupSelectMenuContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
212 pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
213 let __mi = Self::calc_cursor_moved_pos_y_method_info();
214 let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
215 __inner(this.into(), menu_item_index, ::core::option::Option::None)
216 }
217
218 #[doc = "Direct (non-virtual) call to `MyRoomWakeupSelectMenuContent`'s own `GetMenuItemContentMax`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
219 pub unsafe fn get_menu_item_content_max(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
220 let __mi = Self::get_menu_item_content_max_method_info();
221 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
222 __inner(this.into(), ::core::option::Option::None)
223 }
224
225 #[doc = "Direct (non-virtual) call to `MyRoomWakeupSelectMenuContent`'s own `CalcW`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
226 pub unsafe fn calc_w(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
227 let __mi = Self::calc_w_method_info();
228 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
229 __inner(this.into(), ::core::option::Option::None)
230 }
231
232 #[doc = "Direct (non-virtual) call to `MyRoomWakeupSelectMenuContent`'s own `CalcH`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
233 pub unsafe fn calc_h(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
234 let __mi = Self::calc_h_method_info();
235 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
236 __inner(this.into(), ::core::option::Option::None)
237 }
238}
239
240#[cfg(feature = "app-myroomwakeupselectmenucontent")]
241impl MyRoomWakeupSelectMenuContent {
242 #[doc = "`.ctor()` — no args"]
243 pub fn new() -> Self {
244 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
245 panic!(
246 "{}
247::{}
248 failed to instantiate",
249 ::core::stringify!(MyRoomWakeupSelectMenuContent),
250 ::core::stringify!(new),
251 )
252 });
253 <Self as IMyRoomWakeupSelectMenuContentMethods>::ctor(this);
254 this
255 }
256}
257
258#[cfg(feature = "app-myroomwakeupselectmenucontent")]
259#[doc(hidden)]
260pub mod prelude {
261 pub use super::{IMyRoomWakeupSelectMenuContent, IMyRoomWakeupSelectMenuContentMethods, MyRoomWakeupSelectMenuContent};
262 #[cfg(feature = "app-basicmenucontent")]
263 pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
264 #[cfg(feature = "system-object")]
265 pub use crate::system::object::IObjectMethods;
266 #[cfg(feature = "unity_engine-behaviour")]
267 pub use crate::unity_engine::behaviour::IBehaviourMethods;
268 #[cfg(feature = "unity_engine-component")]
269 pub use crate::unity_engine::component::IComponentMethods;
270 #[cfg(feature = "unity_engine-monobehaviour")]
271 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
272 #[cfg(feature = "unity_engine-object_2")]
273 pub use crate::unity_engine::object_2::IObject_2Methods;
274 pub use crate::{
275 app::basicmenucontent::IBasicMenuContent,
276 system::object::IObject,
277 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
278 };
279}