engage/generated/app/
godroomunitselectmenuitemcontent.rs1#[cfg(feature = "app-godroomunitselectmenuitemcontent-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::basicmenuitemcontent::{BasicMenuItemContent, IBasicMenuItemContent},
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/godroomunitselectmenuitemcontent/GodRoomUnitSelectMenuItemContent.md"))]
20 #[::unity::class(namespace = "App", name = "GodRoomUnitSelectMenuItemContent")]
21 #[parent(crate::app::basicmenuitemcontent::BasicMenuItemContent)]
22 pub struct GodRoomUnitSelectMenuItemContent {
23 #[offset(72)]
24 #[rename(name = "m_Setter")]
25 pub m_setter: crate::app::unitmenuitemsetter::UnitMenuItemSetter,
26 }
27}
28
29#[cfg(feature = "app-godroomunitselectmenuitemcontent-types")]
30pub use __types::*;
31
32#[cfg(feature = "app-godroomunitselectmenuitemcontent")]
33pub trait IGodRoomUnitSelectMenuItemContentMethods: IGodRoomUnitSelectMenuItemContent {
34 #[doc = "`GetTextMeshProComponent()` overload"]
35 fn get_text_mesh_pro_component(self) -> crate::tm_pro::textmeshprougui::TextMeshProUGUI {
36 unsafe {
37 let __receiver =
38 <GodRoomUnitSelectMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
39 {
40 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
41 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
42 panic!(
43 "unity: virtual slot {}
44 out of range (vtable len {}
45) on the runtime class behind {}
46 (method `{}
47`)",
48 5usize,
49 __vt.len(),
50 <GodRoomUnitSelectMenuItemContent as ::unity::ClassIdentity>::NAME,
51 "GetTextMeshProComponent",
52 )
53 });
54 let __inner: extern "C" fn(
55 GodRoomUnitSelectMenuItemContent,
56 ::unity::OptionalMethod,
57 ) -> crate::tm_pro::textmeshprougui::TextMeshProUGUI = ::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 = "`Build(crate::app::basicmenuitem::BasicMenuItem)` overload"]
64 fn build(self, menu_item: impl ::core::convert::Into<crate::app::basicmenuitem::BasicMenuItem>) -> () {
65 unsafe {
66 let __receiver =
67 <GodRoomUnitSelectMenuItemContent 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(8usize).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 8usize,
78 __vt.len(),
79 <GodRoomUnitSelectMenuItemContent as ::unity::ClassIdentity>::NAME,
80 "Build",
81 )
82 });
83 let __inner: extern "C" fn(
84 GodRoomUnitSelectMenuItemContent,
85 crate::app::basicmenuitem::BasicMenuItem,
86 ::unity::OptionalMethod,
87 ) -> () = ::core::mem::transmute(__vi.method_ptr);
88 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
89 __inner(__receiver, ::core::convert::Into::into(menu_item), __mi)
90 }
91 }
92 }
93 #[doc = "`UpdateTextColor()` overload"]
94 fn update_text_color(self) -> () {
95 unsafe {
96 let __receiver =
97 <GodRoomUnitSelectMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98 {
99 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
100 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
101 panic!(
102 "unity: virtual slot {}
103 out of range (vtable len {}
104) on the runtime class behind {}
105 (method `{}
106`)",
107 7usize,
108 __vt.len(),
109 <GodRoomUnitSelectMenuItemContent as ::unity::ClassIdentity>::NAME,
110 "UpdateTextColor",
111 )
112 });
113 let __inner: extern "C" fn(GodRoomUnitSelectMenuItemContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
114 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
115 __inner(__receiver, __mi)
116 }
117 }
118 }
119 #[doc = "`GetUnit()` overload"]
120 fn get_unit(self) -> crate::app::unit::Unit {
121 unsafe {
122 let __receiver =
123 <GodRoomUnitSelectMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
124 ::unity::il2cpp_call!((::unity::module_base()+0x233d390usize)as*mut u8,crate::app::unit::Unit;
125(GodRoomUnitSelectMenuItemContent)__receiver)
126 }
127 }
128 #[doc = "`.ctor()` overload"]
129 fn ctor(self) -> () {
130 unsafe {
131 let __receiver =
132 <GodRoomUnitSelectMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133 ::unity::il2cpp_call!((::unity::module_base()+0x233d460usize)as*mut u8,();
134(GodRoomUnitSelectMenuItemContent)__receiver)
135 }
136 }
137}
138
139#[cfg(feature = "app-godroomunitselectmenuitemcontent")]
140impl<__T: IGodRoomUnitSelectMenuItemContent> IGodRoomUnitSelectMenuItemContentMethods for __T {}
141
142#[cfg(feature = "app-godroomunitselectmenuitemcontent")]
143impl GodRoomUnitSelectMenuItemContent {
144 pub fn get_text_mesh_pro_component_method_info() -> &'static ::unity::il2cpp::MethodInfo {
145 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
146 }
147
148 pub fn build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
150 }
151
152 pub fn update_text_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
154 }
155
156 pub fn get_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
158 }
159
160 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
162 }
163}
164
165#[cfg(feature = "app-godroomunitselectmenuitemcontent")]
166impl GodRoomUnitSelectMenuItemContent {
167 #[doc = "Direct (non-virtual) call to `GodRoomUnitSelectMenuItemContent`'s own `GetTextMeshProComponent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
168 pub unsafe fn get_text_mesh_pro_component(
169 this: impl ::core::convert::Into<::unity::IlInstance>,
170 ) -> crate::tm_pro::textmeshprougui::TextMeshProUGUI {
171 let __mi = Self::get_text_mesh_pro_component_method_info();
172 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::tm_pro::textmeshprougui::TextMeshProUGUI =
173 ::core::mem::transmute(__mi.method_ptr);
174 __inner(this.into(), ::core::option::Option::None)
175 }
176
177 #[doc = "Direct (non-virtual) call to `GodRoomUnitSelectMenuItemContent`'s own `Build`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
178 pub unsafe fn build(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item: crate::app::basicmenuitem::BasicMenuItem) -> () {
179 let __mi = Self::build_method_info();
180 let __inner: extern "C" fn(::unity::IlInstance, crate::app::basicmenuitem::BasicMenuItem, ::unity::OptionalMethod) -> () =
181 ::core::mem::transmute(__mi.method_ptr);
182 __inner(this.into(), menu_item, ::core::option::Option::None)
183 }
184
185 #[doc = "Direct (non-virtual) call to `GodRoomUnitSelectMenuItemContent`'s own `UpdateTextColor`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
186 pub unsafe fn update_text_color(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
187 let __mi = Self::update_text_color_method_info();
188 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
189 __inner(this.into(), ::core::option::Option::None)
190 }
191}
192
193#[cfg(feature = "app-godroomunitselectmenuitemcontent")]
194impl GodRoomUnitSelectMenuItemContent {
195 #[doc = "`.ctor()` — no args"]
196 pub fn new() -> Self {
197 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
198 panic!(
199 "{}
200::{}
201 failed to instantiate",
202 ::core::stringify!(GodRoomUnitSelectMenuItemContent),
203 ::core::stringify!(new),
204 )
205 });
206 <Self as IGodRoomUnitSelectMenuItemContentMethods>::ctor(this);
207 this
208 }
209}
210
211#[cfg(feature = "app-godroomunitselectmenuitemcontent")]
212#[doc(hidden)]
213pub mod prelude {
214 pub use super::{GodRoomUnitSelectMenuItemContent, IGodRoomUnitSelectMenuItemContent, IGodRoomUnitSelectMenuItemContentMethods};
215 #[cfg(feature = "app-basicmenuitemcontent")]
216 pub use crate::app::basicmenuitemcontent::IBasicMenuItemContentMethods;
217 #[cfg(feature = "system-object")]
218 pub use crate::system::object::IObjectMethods;
219 #[cfg(feature = "unity_engine-behaviour")]
220 pub use crate::unity_engine::behaviour::IBehaviourMethods;
221 #[cfg(feature = "unity_engine-component")]
222 pub use crate::unity_engine::component::IComponentMethods;
223 #[cfg(feature = "unity_engine-monobehaviour")]
224 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
225 #[cfg(feature = "unity_engine-object_2")]
226 pub use crate::unity_engine::object_2::IObject_2Methods;
227 pub use crate::{
228 app::basicmenuitemcontent::IBasicMenuItemContent,
229 system::object::IObject,
230 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
231 };
232}