engage/generated/app/
unitselectsortiemenucontent.rs1#[cfg(feature = "app-unitselectsortiemenucontent-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 basicmenucontent::{BasicMenuContent, IBasicMenuContent},
11 gridmenucontent::{GridMenuContent, IGridMenuContent},
12 },
13 system::object::{IObject, Object},
14 unity_engine::{
15 behaviour::{Behaviour, IBehaviour},
16 component::{Component, IComponent},
17 monobehaviour::{IMonoBehaviour, MonoBehaviour},
18 object_2::{IObject_2, Object_2},
19 },
20 };
21
22 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/unitselectsortiemenucontent/UnitSelectSortieMenuContent.md"))]
23 #[::unity::class(namespace = "App", name = "UnitSelectSortieMenuContent")]
24 #[parent(crate::app::gridmenucontent::GridMenuContent)]
25 pub struct UnitSelectSortieMenuContent {}
26}
27
28#[cfg(feature = "app-unitselectsortiemenucontent-types")]
29pub use __types::*;
30
31#[cfg(feature = "app-unitselectsortiemenucontent")]
32pub trait IUnitSelectSortieMenuContentMethods: IUnitSelectSortieMenuContent {
33 #[doc = "`CalcCursorMovedPosY(i32)` overload"]
34 fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
35 unsafe {
36 let __receiver =
37 <UnitSelectSortieMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38 {
39 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
40 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
41 panic!(
42 "unity: virtual slot {}
43 out of range (vtable len {}
44) on the runtime class behind {}
45 (method `{}
46`)",
47 10usize,
48 __vt.len(),
49 <UnitSelectSortieMenuContent as ::unity::ClassIdentity>::NAME,
50 "CalcCursorMovedPosY",
51 )
52 });
53 let __inner: extern "C" fn(UnitSelectSortieMenuContent, i32, ::unity::OptionalMethod) -> f32 =
54 ::core::mem::transmute(__vi.method_ptr);
55 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
56 __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
57 }
58 }
59 }
60 #[doc = "`CalcCursorMovedPosX(i32)` overload"]
61 fn calc_cursor_moved_pos_x(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
62 unsafe {
63 let __receiver =
64 <UnitSelectSortieMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65 {
66 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
67 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
68 panic!(
69 "unity: virtual slot {}
70 out of range (vtable len {}
71) on the runtime class behind {}
72 (method `{}
73`)",
74 9usize,
75 __vt.len(),
76 <UnitSelectSortieMenuContent as ::unity::ClassIdentity>::NAME,
77 "CalcCursorMovedPosX",
78 )
79 });
80 let __inner: extern "C" fn(UnitSelectSortieMenuContent, i32, ::unity::OptionalMethod) -> f32 =
81 ::core::mem::transmute(__vi.method_ptr);
82 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
83 __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
84 }
85 }
86 }
87 #[doc = "`.ctor()` overload"]
88 fn ctor(self) -> () {
89 unsafe {
90 let __receiver =
91 <UnitSelectSortieMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92 ::unity::il2cpp_call!((::unity::module_base()+0x1c62310usize)as*mut u8,();
93(UnitSelectSortieMenuContent)__receiver)
94 }
95 }
96}
97
98#[cfg(feature = "app-unitselectsortiemenucontent")]
99impl<__T: IUnitSelectSortieMenuContent> IUnitSelectSortieMenuContentMethods for __T {}
100
101#[cfg(feature = "app-unitselectsortiemenucontent")]
102impl UnitSelectSortieMenuContent {
103 pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
104 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
105 }
106
107 pub fn calc_cursor_moved_pos_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
108 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
109 }
110
111 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
112 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
113 }
114}
115
116#[cfg(feature = "app-unitselectsortiemenucontent")]
117impl UnitSelectSortieMenuContent {
118 #[doc = "Direct (non-virtual) call to `UnitSelectSortieMenuContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
119 pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
120 let __mi = Self::calc_cursor_moved_pos_y_method_info();
121 let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
122 __inner(this.into(), menu_item_index, ::core::option::Option::None)
123 }
124
125 #[doc = "Direct (non-virtual) call to `UnitSelectSortieMenuContent`'s own `CalcCursorMovedPosX`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
126 pub unsafe fn calc_cursor_moved_pos_x(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
127 let __mi = Self::calc_cursor_moved_pos_x_method_info();
128 let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
129 __inner(this.into(), menu_item_index, ::core::option::Option::None)
130 }
131}
132
133#[cfg(feature = "app-unitselectsortiemenucontent")]
134impl UnitSelectSortieMenuContent {
135 #[doc = "`.ctor()` — no args"]
136 pub fn new() -> Self {
137 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
138 panic!(
139 "{}
140::{}
141 failed to instantiate",
142 ::core::stringify!(UnitSelectSortieMenuContent),
143 ::core::stringify!(new),
144 )
145 });
146 <Self as IUnitSelectSortieMenuContentMethods>::ctor(this);
147 this
148 }
149}
150
151#[cfg(feature = "app-unitselectsortiemenucontent")]
152#[doc(hidden)]
153pub mod prelude {
154 pub use super::{IUnitSelectSortieMenuContent, IUnitSelectSortieMenuContentMethods, UnitSelectSortieMenuContent};
155 #[cfg(feature = "app-basicmenucontent")]
156 pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
157 #[cfg(feature = "app-gridmenucontent")]
158 pub use crate::app::gridmenucontent::IGridMenuContentMethods;
159 #[cfg(feature = "system-object")]
160 pub use crate::system::object::IObjectMethods;
161 #[cfg(feature = "unity_engine-behaviour")]
162 pub use crate::unity_engine::behaviour::IBehaviourMethods;
163 #[cfg(feature = "unity_engine-component")]
164 pub use crate::unity_engine::component::IComponentMethods;
165 #[cfg(feature = "unity_engine-monobehaviour")]
166 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
167 #[cfg(feature = "unity_engine-object_2")]
168 pub use crate::unity_engine::object_2::IObject_2Methods;
169 pub use crate::{
170 app::{basicmenucontent::IBasicMenuContent, gridmenucontent::IGridMenuContent},
171 system::object::IObject,
172 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
173 };
174}