1#[cfg(feature = "app-helpproc-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 procinst::{IProcInst, ProcInst},
11 singletonprocinst_1::{ISingletonProcInst_1, SingletonProcInst_1},
12 },
13 system::{
14 delegate::{Delegate, IDelegate},
15 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
16 object::{IObject, Object},
17 },
18 };
19
20 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/helpproc/HelpProc.md"))]
21 #[::unity::class(namespace = "App", name = "HelpProc")]
22 #[parent(crate::app::singletonprocinst_1::SingletonProcInst_1<crate::app::helpproc::HelpProc>)]
23 pub struct HelpProc {
24 #[static_field]
25 #[rename(name = "m_isTempGod")]
26 pub m_is_temp_god: bool,
27 #[static_field]
28 #[rename(name = "m_TempGod")]
29 pub m_temp_god: crate::app::godunit::GodUnit,
30 #[static_field]
31 #[rename(name = "m_isTempCommon")]
32 pub m_is_temp_common: bool,
33 #[static_field]
34 #[rename(name = "m_TempCommon")]
35 pub m_temp_common: crate::app::unitring::UnitRing,
36 #[static_field]
37 #[rename(name = "m_isTempUnit")]
38 pub m_is_temp_unit: bool,
39 #[static_field]
40 #[rename(name = "m_TempUnit")]
41 pub m_temp_unit: crate::app::unit::Unit,
42 #[offset(120)]
43 #[rename(name = "m_helpManager")]
44 pub m_help_manager: crate::app::helpmanager::HelpManager,
45 #[offset(128)]
46 #[rename(name = "m_helpParamSetter")]
47 pub m_help_param_setter: crate::app::helpparamsetter::HelpParamSetter,
48 #[static_field]
49 #[rename(name = "m_enter")]
50 pub m_enter: crate::app::helpproc::HelpProc_EventHandler,
51 #[static_field]
52 #[rename(name = "m_exit")]
53 pub m_exit: crate::app::helpproc::HelpProc_EventHandler,
54 #[static_field]
55 #[rename(name = "m_isDisable")]
56 pub m_is_disable: bool,
57 }
58
59 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/helpproc/HelpProc_EventHandler.md"))]
60 #[::unity::class(namespace = "App", name = "HelpProc.EventHandler")]
61 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
62 pub struct HelpProc_EventHandler {}
63}
64
65#[cfg(feature = "app-helpproc-types")]
66pub use __types::*;
67
68#[cfg(feature = "app-helpproc")]
69impl HelpProc {
70 #[doc = "`Enable()` overload"]
71 pub fn enable() -> () {
72 unsafe {
73 ::unity::il2cpp_call!((::unity::module_base()+0x2164b00usize)as*mut u8,();
74 )
75 }
76 }
77
78 #[doc = "`Disable()` overload"]
79 pub fn disable() -> () {
80 unsafe {
81 ::unity::il2cpp_call!((::unity::module_base()+0x2164b70usize)as*mut u8,();
82 )
83 }
84 }
85
86 #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::unity_engine::gameobject::GameObject, crate::app::helpproc::HelpProc_EventHandler, crate::app::helpproc::HelpProc_EventHandler, bool, crate::app::godunit::GodUnit, bool, crate::app::unitring::UnitRing, bool, crate::app::unit::Unit)` overload"]
87 pub fn create_bind(
88 parent: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
89 target_object: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
90 enter: impl ::core::convert::Into<crate::app::helpproc::HelpProc_EventHandler>,
91 exit: impl ::core::convert::Into<crate::app::helpproc::HelpProc_EventHandler>,
92 is_temp_god: impl ::core::convert::Into<bool>,
93 god: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
94 is_temp_ring: impl ::core::convert::Into<bool>,
95 ring: impl ::core::convert::Into<crate::app::unitring::UnitRing>,
96 is_temp_unit: impl ::core::convert::Into<bool>,
97 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
98 ) -> () {
99 unsafe {
100 ::unity::il2cpp_call!((::unity::module_base()+0x2164be0usize)as*mut u8,();
101(crate::app::procinst::ProcInst)::core::convert::Into::into(parent),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(target_object),(crate::app::helpproc::HelpProc_EventHandler)::core::convert::Into::into(enter),(crate::app::helpproc::HelpProc_EventHandler)::core::convert::Into::into(exit),(bool)::core::convert::Into::into(is_temp_god),(crate::app::godunit::GodUnit)::core::convert::Into::into(god),(bool)::core::convert::Into::into(is_temp_ring),(crate::app::unitring::UnitRing)::core::convert::Into::into(ring),(bool)::core::convert::Into::into(is_temp_unit),(crate::app::unit::Unit)::core::convert::Into::into(unit))
102 }
103 }
104
105 #[doc = "`CreateBindUnitStatus(crate::app::procinst::ProcInst, crate::app::helpproc::HelpProc_EventHandler, crate::app::helpproc::HelpProc_EventHandler, crate::app::unit::Unit)` overload"]
106 pub fn create_bind_unit_status(
107 parent: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
108 enter: impl ::core::convert::Into<crate::app::helpproc::HelpProc_EventHandler>,
109 exit: impl ::core::convert::Into<crate::app::helpproc::HelpProc_EventHandler>,
110 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
111 ) -> () {
112 unsafe {
113 ::unity::il2cpp_call!((::unity::module_base()+0x2165160usize)as*mut u8,();
114(crate::app::procinst::ProcInst)::core::convert::Into::into(parent),(crate::app::helpproc::HelpProc_EventHandler)::core::convert::Into::into(enter),(crate::app::helpproc::HelpProc_EventHandler)::core::convert::Into::into(exit),(crate::app::unit::Unit)::core::convert::Into::into(unit))
115 }
116 }
117
118 #[doc = "`CreateBindUnitInfo(crate::app::procinst::ProcInst, crate::app::helpproc::HelpProc_EventHandler, crate::app::helpproc::HelpProc_EventHandler)` overload"]
119 pub fn create_bind_unit_info(
120 parent: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
121 enter: impl ::core::convert::Into<crate::app::helpproc::HelpProc_EventHandler>,
122 exit: impl ::core::convert::Into<crate::app::helpproc::HelpProc_EventHandler>,
123 ) -> () {
124 unsafe {
125 ::unity::il2cpp_call!((::unity::module_base()+0x2165250usize)as*mut u8,();
126(crate::app::procinst::ProcInst)::core::convert::Into::into(parent),(crate::app::helpproc::HelpProc_EventHandler)::core::convert::Into::into(enter),(crate::app::helpproc::HelpProc_EventHandler)::core::convert::Into::into(exit))
127 }
128 }
129
130 #[doc = "`CraeteBindEngageLink(crate::app::procinst::ProcInst, crate::app::helpproc::HelpProc_EventHandler, crate::app::helpproc::HelpProc_EventHandler, crate::unity_engine::gameobject::GameObject, crate::app::godunit::GodUnit, crate::app::unit::Unit)` overload"]
131 pub fn craete_bind_engage_link(
132 parent: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
133 enter: impl ::core::convert::Into<crate::app::helpproc::HelpProc_EventHandler>,
134 exit: impl ::core::convert::Into<crate::app::helpproc::HelpProc_EventHandler>,
135 target_object: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
136 god: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
137 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
138 ) -> () {
139 unsafe {
140 ::unity::il2cpp_call!((::unity::module_base()+0x2165330usize)as*mut u8,();
141(crate::app::procinst::ProcInst)::core::convert::Into::into(parent),(crate::app::helpproc::HelpProc_EventHandler)::core::convert::Into::into(enter),(crate::app::helpproc::HelpProc_EventHandler)::core::convert::Into::into(exit),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(target_object),(crate::app::godunit::GodUnit)::core::convert::Into::into(god),(crate::app::unit::Unit)::core::convert::Into::into(unit))
142 }
143 }
144
145 #[doc = "`CreateBindGodRingSelect(crate::app::procinst::ProcInst, crate::unity_engine::gameobject::GameObject, crate::app::godunit::GodUnit, crate::app::unit::Unit)` overload"]
146 pub fn create_bind_god_ring_select(
147 parent: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
148 target_object: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
149 god: impl ::core::convert::Into<crate::app::godunit::GodUnit>,
150 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
151 ) -> () {
152 unsafe {
153 ::unity::il2cpp_call!((::unity::module_base()+0x21653f0usize)as*mut u8,();
154(crate::app::procinst::ProcInst)::core::convert::Into::into(parent),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(target_object),(crate::app::godunit::GodUnit)::core::convert::Into::into(god),(crate::app::unit::Unit)::core::convert::Into::into(unit))
155 }
156 }
157
158 #[doc = "`CreateBindCommonRingSelect(crate::app::procinst::ProcInst, crate::unity_engine::gameobject::GameObject, crate::app::unitring::UnitRing, crate::app::unit::Unit)` overload"]
159 pub fn create_bind_common_ring_select(
160 parent: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
161 target_object: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
162 ring: impl ::core::convert::Into<crate::app::unitring::UnitRing>,
163 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
164 ) -> () {
165 unsafe {
166 ::unity::il2cpp_call!((::unity::module_base()+0x21654a0usize)as*mut u8,();
167(crate::app::procinst::ProcInst)::core::convert::Into::into(parent),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(target_object),(crate::app::unitring::UnitRing)::core::convert::Into::into(ring),(crate::app::unit::Unit)::core::convert::Into::into(unit))
168 }
169 }
170
171 #[doc = "`CreateBindShopUnitSelect(crate::app::procinst::ProcInst, crate::unity_engine::gameobject::GameObject)` overload"]
172 pub fn create_bind_shop_unit_select(
173 parent: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
174 game_object: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
175 ) -> () {
176 unsafe {
177 ::unity::il2cpp_call!((::unity::module_base()+0x2165550usize)as*mut u8,();
178(crate::app::procinst::ProcInst)::core::convert::Into::into(parent),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(game_object))
179 }
180 }
181
182 #[doc = "`.cctor()` overload"]
183 pub fn cctor() -> () {
184 unsafe {
185 ::unity::il2cpp_call!((::unity::module_base()+0x21655f0usize)as*mut u8,();
186 )
187 }
188 }
189}
190
191#[cfg(feature = "app-helpproc")]
192pub trait IHelpProcMethods: IHelpProc {
193 #[doc = "`Begin()` overload"]
194 fn begin(self) -> () {
195 unsafe {
196 let __receiver = <HelpProc as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
197 ::unity::il2cpp_call!((::unity::module_base()+0x2163430usize)as*mut u8,();
198(HelpProc)__receiver)
199 }
200 }
201 #[doc = "`Tick()` overload"]
202 fn tick(self) -> () {
203 unsafe {
204 let __receiver = <HelpProc as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
205 ::unity::il2cpp_call!((::unity::module_base()+0x2163770usize)as*mut u8,();
206(HelpProc)__receiver)
207 }
208 }
209 #[doc = "`CommitMapPanelTarget()` overload"]
210 fn commit_map_panel_target(self) -> () {
211 unsafe {
212 let __receiver = <HelpProc as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
213 ::unity::il2cpp_call!((::unity::module_base()+0x2164390usize)as*mut u8,();
214(HelpProc)__receiver)
215 }
216 }
217 #[doc = "`End()` overload"]
218 fn end(self) -> () {
219 unsafe {
220 let __receiver = <HelpProc as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
221 ::unity::il2cpp_call!((::unity::module_base()+0x21648e0usize)as*mut u8,();
222(HelpProc)__receiver)
223 }
224 }
225 #[doc = "`.ctor()` overload"]
226 fn ctor(self) -> () {
227 unsafe {
228 let __receiver = <HelpProc as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
229 ::unity::il2cpp_call!((::unity::module_base()+0x21650e0usize)as*mut u8,();
230(HelpProc)__receiver)
231 }
232 }
233}
234
235#[cfg(feature = "app-helpproc")]
236impl<__T: IHelpProc> IHelpProcMethods for __T {}
237
238#[cfg(feature = "app-helpproc")]
239impl HelpProc {
240 pub fn begin_method_info() -> &'static ::unity::il2cpp::MethodInfo {
241 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
242 }
243
244 pub fn tick_method_info() -> &'static ::unity::il2cpp::MethodInfo {
245 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
246 }
247
248 pub fn commit_map_panel_target_method_info() -> &'static ::unity::il2cpp::MethodInfo {
249 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
250 }
251
252 pub fn end_method_info() -> &'static ::unity::il2cpp::MethodInfo {
253 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
254 }
255
256 pub fn enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
257 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
258 }
259
260 pub fn disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
261 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
262 }
263
264 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
265 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
266 }
267
268 pub fn create_bind_unit_status_method_info() -> &'static ::unity::il2cpp::MethodInfo {
269 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
270 }
271
272 pub fn create_bind_unit_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
273 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
274 }
275
276 pub fn craete_bind_engage_link_method_info() -> &'static ::unity::il2cpp::MethodInfo {
277 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
278 }
279
280 pub fn create_bind_god_ring_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
281 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
282 }
283
284 pub fn create_bind_common_ring_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
286 }
287
288 pub fn create_bind_shop_unit_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
289 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
290 }
291
292 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
294 }
295
296 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
298 }
299}
300
301#[cfg(feature = "app-helpproc")]
302impl HelpProc {
303 #[doc = "`.ctor()` — no args"]
304 pub fn new() -> Self {
305 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
306 panic!(
307 "{}
308::{}
309 failed to instantiate",
310 ::core::stringify!(HelpProc),
311 ::core::stringify!(new),
312 )
313 });
314 <Self as IHelpProcMethods>::ctor(this);
315 this
316 }
317}
318
319#[cfg(feature = "app-helpproc")]
320pub trait IHelpProc_EventHandlerMethods: IHelpProc_EventHandler {
321 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
322 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
323 unsafe {
324 let __receiver = <HelpProc_EventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
325 ::unity::il2cpp_call!((::unity::module_base()+0x1ce13c0usize)as*mut u8,();
326(HelpProc_EventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
327 }
328 }
329 #[doc = "`Invoke()` overload"]
330 fn invoke(self) -> () {
331 unsafe {
332 let __receiver = <HelpProc_EventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
333 {
334 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
335 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
336 panic!(
337 "unity: virtual slot {}
338 out of range (vtable len {}
339) on the runtime class behind {}
340 (method `{}
341`)",
342 13usize,
343 __vt.len(),
344 <HelpProc_EventHandler as ::unity::ClassIdentity>::NAME,
345 "Invoke",
346 )
347 });
348 let __inner: extern "C" fn(HelpProc_EventHandler, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
349 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
350 __inner(__receiver, __mi)
351 }
352 }
353 }
354}
355
356#[cfg(feature = "app-helpproc")]
357impl<__T: IHelpProc_EventHandler> IHelpProc_EventHandlerMethods for __T {}
358
359#[cfg(feature = "app-helpproc")]
360impl HelpProc_EventHandler {
361 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
362 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
363 }
364
365 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
366 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
367 }
368}
369
370#[cfg(feature = "app-helpproc")]
371impl HelpProc_EventHandler {
372 #[doc = "Direct (non-virtual) call to `HelpProc_EventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
373 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
374 let __mi = Self::invoke_method_info();
375 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
376 __inner(this.into(), ::core::option::Option::None)
377 }
378}
379
380#[cfg(feature = "app-helpproc")]
381impl HelpProc_EventHandler {
382 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
383 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
384 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
385 panic!(
386 "{}
387::{}
388 failed to instantiate",
389 ::core::stringify!(HelpProc_EventHandler),
390 ::core::stringify!(new),
391 )
392 });
393 <Self as IHelpProc_EventHandlerMethods>::ctor(this, object, method);
394 this
395 }
396}
397
398#[cfg(feature = "app-helpproc")]
399#[doc(hidden)]
400pub mod prelude {
401 pub use super::{HelpProc, HelpProc_EventHandler, IHelpProc, IHelpProcMethods, IHelpProc_EventHandler, IHelpProc_EventHandlerMethods};
402 #[cfg(feature = "app-procinst")]
403 pub use crate::app::procinst::IProcInstMethods;
404 #[cfg(feature = "app-singletonprocinst_1")]
405 pub use crate::app::singletonprocinst_1::ISingletonProcInst_1Methods;
406 #[cfg(feature = "system-delegate")]
407 pub use crate::system::delegate::IDelegateMethods;
408 #[cfg(feature = "system-multicastdelegate")]
409 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
410 #[cfg(feature = "system-object")]
411 pub use crate::system::object::IObjectMethods;
412 pub use crate::{
413 app::{procinst::IProcInst, singletonprocinst_1::ISingletonProcInst_1},
414 system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
415 };
416}