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