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