engage/generated/app/
refineringunitselectmenu.rs1#[cfg(feature = "app-refineringunitselectmenu-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 basicmenu::{BasicMenu, IBasicMenu},
11 procinst::{IProcInst, ProcInst},
12 },
13 system::object::{IObject, Object},
14 };
15
16 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refineringunitselectmenu/RefineRingUnitSelectMenu.md"))]
17 #[::unity::class(namespace = "App", name = "RefineRingUnitSelectMenu")]
18 #[parent(crate::app::basicmenu::BasicMenu)]
19 pub struct RefineRingUnitSelectMenu {
20 #[offset(200)]
21 #[rename(name = "m_GodSelectRoot")]
22 pub m_god_select_root: crate::app::godselectroot::GodSelectRoot,
23 }
24}
25
26#[cfg(feature = "app-refineringunitselectmenu-types")]
27pub use __types::*;
28
29#[cfg(feature = "app-refineringunitselectmenu")]
30impl RefineRingUnitSelectMenu {
31 #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::godunitselectmenu::GodUnitSelectMenu_DecideEventHandler, crate::app::godunit::GodUnit)` overload"]
32 pub fn create_bind(
33 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
34 decide_event_handler: impl ::core::convert::Into<crate::app::godunitselectmenu::GodUnitSelectMenu_DecideEventHandler>,
35 default_god_unit: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
36 ) -> crate::app::refineringunitselectmenu::RefineRingUnitSelectMenu {
37 unsafe {
38 ::unity::il2cpp_call!((::unity::module_base()+0x2958160usize)as*mut u8,crate::app::refineringunitselectmenu::RefineRingUnitSelectMenu;
39(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::godunitselectmenu::GodUnitSelectMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler),(crate::app::godunit::GodUnit)::core::convert::Into::into(default_god_unit))
40 }
41 }
42}
43
44#[cfg(feature = "app-refineringunitselectmenu")]
45pub trait IRefineRingUnitSelectMenuMethods: IRefineRingUnitSelectMenu {
46 #[doc = "`Destroy()` overload"]
47 fn destroy(self) -> () {
48 unsafe {
49 let __receiver =
50 <RefineRingUnitSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51 ::unity::il2cpp_call!((::unity::module_base()+0x2958790usize)as*mut u8,();
52(RefineRingUnitSelectMenu)__receiver)
53 }
54 }
55 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::godunitselectmenucontent::GodUnitSelectMenuContent, crate::app::godselectroot::GodSelectRoot, crate::app::godunit::GodUnit)` overload"]
56 fn ctor(
57 self,
58 menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
59 menu_content: impl ::core::convert::Into<crate::app::godunitselectmenucontent::GodUnitSelectMenuContent>,
60 god_select_root: impl ::core::convert::Into<crate::app::godselectroot::GodSelectRoot>,
61 god_unit: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
62 ) -> () {
63 unsafe {
64 let __receiver =
65 <RefineRingUnitSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66 ::unity::il2cpp_call!((::unity::module_base()+0x2958750usize)as*mut u8,();
67(RefineRingUnitSelectMenu)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>)::core::convert::Into::into(menu_item_list),(crate::app::godunitselectmenucontent::GodUnitSelectMenuContent)::core::convert::Into::into(menu_content),(crate::app::godselectroot::GodSelectRoot)::core::convert::Into::into(god_select_root),(crate::app::godunit::GodUnit)::core::convert::Into::into(god_unit))
68 }
69 }
70 #[doc = "`XCall()` overload"]
71 fn x_call(self) -> crate::app::basicmenu::BasicMenu_Result {
72 unsafe {
73 let __receiver =
74 <RefineRingUnitSelectMenu 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(52usize).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 52usize,
85 __vt.len(),
86 <RefineRingUnitSelectMenu as ::unity::ClassIdentity>::NAME,
87 "XCall",
88 )
89 });
90 let __inner: extern "C" fn(RefineRingUnitSelectMenu, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
91 ::core::mem::transmute(__vi.method_ptr);
92 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
93 __inner(__receiver, __mi)
94 }
95 }
96 }
97 #[doc = "`OnClose()` overload"]
98 fn on_close(self) -> () {
99 unsafe {
100 let __receiver =
101 <RefineRingUnitSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
102 {
103 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
104 let __vi = *__vt.get(26usize).unwrap_or_else(|| {
105 panic!(
106 "unity: virtual slot {}
107 out of range (vtable len {}
108) on the runtime class behind {}
109 (method `{}
110`)",
111 26usize,
112 __vt.len(),
113 <RefineRingUnitSelectMenu as ::unity::ClassIdentity>::NAME,
114 "OnClose",
115 )
116 });
117 let __inner: extern "C" fn(RefineRingUnitSelectMenu, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
118 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
119 __inner(__receiver, __mi)
120 }
121 }
122 }
123}
124
125#[cfg(feature = "app-refineringunitselectmenu")]
126impl<__T: IRefineRingUnitSelectMenu> IRefineRingUnitSelectMenuMethods for __T {}
127
128#[cfg(feature = "app-refineringunitselectmenu")]
129impl RefineRingUnitSelectMenu {
130 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
132 }
133
134 pub fn destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
135 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
136 }
137
138 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
140 }
141
142 pub fn x_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
143 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
144 }
145
146 pub fn on_close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
148 }
149}
150
151#[cfg(feature = "app-refineringunitselectmenu")]
152impl RefineRingUnitSelectMenu {
153 #[doc = "Direct (non-virtual) call to `RefineRingUnitSelectMenu`'s own `XCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
154 pub unsafe fn x_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
155 let __mi = Self::x_call_method_info();
156 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
157 ::core::mem::transmute(__mi.method_ptr);
158 __inner(this.into(), ::core::option::Option::None)
159 }
160
161 #[doc = "Direct (non-virtual) call to `RefineRingUnitSelectMenu`'s own `OnClose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
162 pub unsafe fn on_close(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
163 let __mi = Self::on_close_method_info();
164 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
165 __inner(this.into(), ::core::option::Option::None)
166 }
167}
168
169#[cfg(feature = "app-refineringunitselectmenu")]
170impl RefineRingUnitSelectMenu {
171 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::godunitselectmenucontent::GodUnitSelectMenuContent, crate::app::godselectroot::GodSelectRoot, crate::app::godunit::GodUnit)` — overload selector"]
172 pub fn new(
173 menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
174 menu_content: crate::app::godunitselectmenucontent::GodUnitSelectMenuContent,
175 god_select_root: crate::app::godselectroot::GodSelectRoot,
176 god_unit: crate::app::godunit::GodUnit,
177 ) -> Self {
178 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
179 panic!(
180 "{}
181::{}
182 failed to instantiate",
183 ::core::stringify!(RefineRingUnitSelectMenu),
184 ::core::stringify!(new),
185 )
186 });
187 <Self as IRefineRingUnitSelectMenuMethods>::ctor(this, menu_item_list, menu_content, god_select_root, god_unit);
188 this
189 }
190}
191
192#[cfg(feature = "app-refineringunitselectmenu")]
193#[doc(hidden)]
194pub mod prelude {
195 pub use super::{IRefineRingUnitSelectMenu, IRefineRingUnitSelectMenuMethods, RefineRingUnitSelectMenu};
196 #[cfg(feature = "app-basicmenu")]
197 pub use crate::app::basicmenu::IBasicMenuMethods;
198 #[cfg(feature = "app-procinst")]
199 pub use crate::app::procinst::IProcInstMethods;
200 #[cfg(feature = "system-object")]
201 pub use crate::system::object::IObjectMethods;
202 pub use crate::{
203 app::{basicmenu::IBasicMenu, procinst::IProcInst},
204 system::object::IObject,
205 };
206}