1#[cfg(feature = "app-damageinfo-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::object::{IObject, Object},
14 };
15
16 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/damageinfo/DamageInfo_InfoWindow.md"))]
17 #[::unity::class(namespace = "App", name = "DamageInfo.InfoWindow")]
18 #[parent(crate::system::object::Object)]
19 pub struct DamageInfo_InfoWindow {
20 #[offset(16)]
21 #[rename(name = "m_IsShow")]
22 pub m_is_show: bool,
23 #[offset(24)]
24 #[rename(name = "m_Info")]
25 pub m_info: crate::app::damageinfo::DamageInfo_Info,
26 #[offset(32)]
27 #[rename(name = "m_RootObject")]
28 pub m_root_object: crate::unity_engine::gameobject::GameObject,
29 #[offset(40)]
30 #[rename(name = "m_WindowImage")]
31 pub m_window_image: crate::unity_engine::ui::image::Image,
32 #[offset(48)]
33 #[rename(name = "m_UnitIcon")]
34 pub m_unit_icon: crate::app::uniticon::UnitIcon,
35 #[offset(56)]
36 #[rename(name = "m_SkillIconImage")]
37 pub m_skill_icon_image: crate::unity_engine::ui::image::Image,
38 #[offset(64)]
39 #[rename(name = "m_UnitNameText")]
40 pub m_unit_name_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
41 #[offset(72)]
42 #[rename(name = "m_SkillNameText")]
43 pub m_skill_name_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
44 #[offset(80)]
45 #[rename(name = "m_DamageText")]
46 pub m_damage_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
47 }
48
49 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/damageinfo/DamageInfo_Info.md"))]
50 #[::unity::class(namespace = "App", name = "DamageInfo.Info")]
51 #[parent(crate::system::object::Object)]
52 pub struct DamageInfo_Info {}
53
54 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/damageinfo/DamageInfo.md"))]
55 #[::unity::class(namespace = "App", name = "DamageInfo")]
56 #[parent(crate::app::singletonprocinst_1::SingletonProcInst_1<crate::app::damageinfo::DamageInfo>)]
57 pub struct DamageInfo {
58 #[static_field]
59 #[rename(name = "InfoWindowMax")]
60 pub info_window_max: i32,
61 #[offset(114)]
62 #[rename(name = "m_IsShow")]
63 pub m_is_show: bool,
64 #[offset(120)]
65 #[rename(name = "m_LayoutPrefab")]
66 pub m_layout_prefab: crate::unity_engine::gameobject::GameObject,
67 #[offset(128)]
68 #[rename(name = "m_InfoList")]
69 pub m_info_list: crate::system::collections::generic::list_1::List_1<crate::app::damageinfo::DamageInfo_Info>,
70 #[offset(136)]
71 #[rename(name = "m_InfoWindowArray")]
72 pub m_info_window_array: ::unity::Array<crate::app::damageinfo::DamageInfo_InfoWindow>,
73 #[offset(144)]
74 #[rename(name = "m_BattleInfo")]
75 pub m_battle_info: crate::app::battleinfo::BattleInfo,
76 #[offset(152)]
77 #[rename(name = "m_BattleCalculator")]
78 pub m_battle_calculator: crate::app::battlecalculator::BattleCalculator,
79 #[offset(160)]
80 #[rename(name = "m_PreDefenceUnit")]
81 pub m_pre_defence_unit: crate::app::unit::Unit,
82 }
83
84 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/damageinfo/DamageInfo_InfoComparer.md"))]
85 #[::unity::class(namespace = "App", name = "DamageInfo.InfoComparer")]
86 #[parent(crate::system::object::Object)]
87 pub struct DamageInfo_InfoComparer {}
88}
89
90#[cfg(feature = "app-damageinfo-types")]
91pub use __types::*;
92
93#[cfg(feature = "app-damageinfo")]
94pub trait IDamageInfo_InfoWindowMethods: IDamageInfo_InfoWindow {
95 #[doc = "`IsShow()` overload"]
96 fn is_show(self) -> bool {
97 unsafe {
98 let __receiver = <DamageInfo_InfoWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99 ::unity::il2cpp_call!((::unity::module_base()+0x19ceec0usize)as*mut u8,bool;
100(DamageInfo_InfoWindow)__receiver)
101 }
102 }
103 #[doc = "`.ctor(crate::unity_engine::gameobject::GameObject)` overload"]
104 fn ctor(self, root_object: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
105 unsafe {
106 let __receiver = <DamageInfo_InfoWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107 ::unity::il2cpp_call!((::unity::module_base()+0x19cef70usize)as*mut u8,();
108(DamageInfo_InfoWindow)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(root_object))
109 }
110 }
111 #[doc = "`Tick()` overload"]
112 fn tick(self) -> () {
113 unsafe {
114 let __receiver = <DamageInfo_InfoWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
115 ::unity::il2cpp_call!((::unity::module_base()+0x19cf230usize)as*mut u8,();
116(DamageInfo_InfoWindow)__receiver)
117 }
118 }
119 #[doc = "`SetInfo(crate::app::damageinfo::DamageInfo_Info)` overload"]
120 fn set_info(self, info: impl ::core::convert::Into<crate::app::damageinfo::DamageInfo_Info>) -> () {
121 unsafe {
122 let __receiver = <DamageInfo_InfoWindow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123 ::unity::il2cpp_call!((::unity::module_base()+0x19cf2e0usize)as*mut u8,();
124(DamageInfo_InfoWindow)__receiver,(crate::app::damageinfo::DamageInfo_Info)::core::convert::Into::into(info))
125 }
126 }
127}
128
129#[cfg(feature = "app-damageinfo")]
130impl<__T: IDamageInfo_InfoWindow> IDamageInfo_InfoWindowMethods for __T {}
131
132#[cfg(feature = "app-damageinfo")]
133impl DamageInfo_InfoWindow {
134 pub fn is_show_method_info() -> &'static ::unity::il2cpp::MethodInfo {
135 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
136 }
137
138 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
140 }
141
142 pub fn tick_method_info() -> &'static ::unity::il2cpp::MethodInfo {
143 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
144 }
145
146 pub fn set_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
148 }
149}
150
151#[cfg(feature = "app-damageinfo")]
152impl DamageInfo_InfoWindow {
153 #[doc = "`.ctor(crate::unity_engine::gameobject::GameObject)` — overload selector"]
154 pub fn new(root_object: crate::unity_engine::gameobject::GameObject) -> Self {
155 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
156 panic!(
157 "{}
158::{}
159 failed to instantiate",
160 ::core::stringify!(DamageInfo_InfoWindow),
161 ::core::stringify!(new),
162 )
163 });
164 <Self as IDamageInfo_InfoWindowMethods>::ctor(this, root_object);
165 this
166 }
167}
168
169#[cfg(feature = "app-damageinfo")]
170pub trait IDamageInfo_InfoMethods: IDamageInfo_Info {
171 #[doc = "`get_Unit()` overload"]
172 fn get_unit(self) -> crate::app::unit::Unit {
173 unsafe {
174 let __receiver = <DamageInfo_Info as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
175 ::unity::il2cpp_call!((::unity::module_base()+0x19cee30usize)as*mut u8,crate::app::unit::Unit;
176(DamageInfo_Info)__receiver)
177 }
178 }
179 #[doc = "`set_Unit(crate::app::unit::Unit)` overload"]
180 fn set_unit(self, value: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
181 unsafe {
182 let __receiver = <DamageInfo_Info as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
183 ::unity::il2cpp_call!((::unity::module_base()+0x19cee40usize)as*mut u8,();
184(DamageInfo_Info)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(value))
185 }
186 }
187 #[doc = "`get_Skill()` overload"]
188 fn get_skill(self) -> crate::app::skilldata::SkillData {
189 unsafe {
190 let __receiver = <DamageInfo_Info as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
191 ::unity::il2cpp_call!((::unity::module_base()+0x19cee50usize)as*mut u8,crate::app::skilldata::SkillData;
192(DamageInfo_Info)__receiver)
193 }
194 }
195 #[doc = "`set_Skill(crate::app::skilldata::SkillData)` overload"]
196 fn set_skill(self, value: impl ::core::convert::Into<crate::app::skilldata::SkillData>) -> () {
197 unsafe {
198 let __receiver = <DamageInfo_Info as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
199 ::unity::il2cpp_call!((::unity::module_base()+0x19cee60usize)as*mut u8,();
200(DamageInfo_Info)__receiver,(crate::app::skilldata::SkillData)::core::convert::Into::into(value))
201 }
202 }
203 #[doc = "`get_Damage()` overload"]
204 fn get_damage(self) -> i32 {
205 unsafe {
206 let __receiver = <DamageInfo_Info as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
207 ::unity::il2cpp_call!((::unity::module_base()+0x19cee70usize)as*mut u8,i32;
208(DamageInfo_Info)__receiver)
209 }
210 }
211 #[doc = "`set_Damage(i32)` overload"]
212 fn set_damage(self, value: impl ::core::convert::Into<i32>) -> () {
213 unsafe {
214 let __receiver = <DamageInfo_Info as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
215 ::unity::il2cpp_call!((::unity::module_base()+0x19cee80usize)as*mut u8,();
216(DamageInfo_Info)__receiver,(i32)::core::convert::Into::into(value))
217 }
218 }
219 #[doc = "`.ctor()` overload"]
220 fn ctor(self) -> () {
221 unsafe {
222 let __receiver = <DamageInfo_Info as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
223 ::unity::il2cpp_call!((::unity::module_base()+0x19cee90usize)as*mut u8,();
224(DamageInfo_Info)__receiver)
225 }
226 }
227}
228
229#[cfg(feature = "app-damageinfo")]
230impl<__T: IDamageInfo_Info> IDamageInfo_InfoMethods for __T {}
231
232#[cfg(feature = "app-damageinfo")]
233impl DamageInfo_Info {
234 pub fn get_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
236 }
237
238 pub fn set_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
239 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
240 }
241
242 pub fn get_skill_method_info() -> &'static ::unity::il2cpp::MethodInfo {
243 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
244 }
245
246 pub fn set_skill_method_info() -> &'static ::unity::il2cpp::MethodInfo {
247 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
248 }
249
250 pub fn get_damage_method_info() -> &'static ::unity::il2cpp::MethodInfo {
251 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
252 }
253
254 pub fn set_damage_method_info() -> &'static ::unity::il2cpp::MethodInfo {
255 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
256 }
257
258 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
259 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
260 }
261}
262
263#[cfg(feature = "app-damageinfo")]
264impl DamageInfo_Info {
265 #[doc = "`.ctor()` — no args"]
266 pub fn new() -> Self {
267 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
268 panic!(
269 "{}
270::{}
271 failed to instantiate",
272 ::core::stringify!(DamageInfo_Info),
273 ::core::stringify!(new),
274 )
275 });
276 <Self as IDamageInfo_InfoMethods>::ctor(this);
277 this
278 }
279}
280
281#[cfg(feature = "app-damageinfo")]
282impl DamageInfo {
283 #[doc = "`SetUnit(crate::app::unit::Unit)` overload"]
284 pub fn set_unit(unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
285 unsafe {
286 ::unity::il2cpp_call!((::unity::module_base()+0x29f6000usize)as*mut u8,();
287(crate::app::unit::Unit)::core::convert::Into::into(unit))
288 }
289 }
290
291 #[doc = "`UpdateInfo()` overload"]
292 pub fn update_info() -> () {
293 unsafe {
294 ::unity::il2cpp_call!((::unity::module_base()+0x29f60d0usize)as*mut u8,();
295 )
296 }
297 }
298
299 #[doc = "`SetVisible(bool)` overload"]
300 pub fn set_visible(is_visible: impl ::core::convert::Into<bool>) -> () {
301 unsafe {
302 ::unity::il2cpp_call!((::unity::module_base()+0x29f6190usize)as*mut u8,();
303(bool)::core::convert::Into::into(is_visible))
304 }
305 }
306
307 #[doc = "`Create(crate::app::procinst::ProcInst)` overload"]
308 pub fn create(super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> () {
309 unsafe {
310 ::unity::il2cpp_call!((::unity::module_base()+0x29f6240usize)as*mut u8,();
311(crate::app::procinst::ProcInst)::core::convert::Into::into(super_))
312 }
313 }
314}
315
316#[cfg(feature = "app-damageinfo")]
317pub trait IDamageInfoMethods: IDamageInfo {
318 #[doc = "`get_GlobalAssetPath()` overload"]
319 fn get_global_asset_path(self) -> ::unity::Il2CppString {
320 unsafe {
321 let __receiver = <DamageInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
322 {
323 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
324 let __vi = *__vt.get(19usize).unwrap_or_else(|| {
325 panic!(
326 "unity: virtual slot {}
327 out of range (vtable len {}
328) on the runtime class behind {}
329 (method `{}
330`)",
331 19usize,
332 __vt.len(),
333 <DamageInfo as ::unity::ClassIdentity>::NAME,
334 "get_GlobalAssetPath",
335 )
336 });
337 let __inner: extern "C" fn(DamageInfo, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
338 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
339 __inner(__receiver, __mi)
340 }
341 }
342 }
343 #[doc = "`LoadLayoutPrefab()` overload"]
344 fn load_layout_prefab(self) -> () {
345 unsafe {
346 let __receiver = <DamageInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
347 ::unity::il2cpp_call!((::unity::module_base()+0x29f4fa0usize)as*mut u8,();
348(DamageInfo)__receiver)
349 }
350 }
351 #[doc = "`IsLoadingLayoutPrefab()` overload"]
352 fn is_loading_layout_prefab(self) -> bool {
353 unsafe {
354 let __receiver = <DamageInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
355 ::unity::il2cpp_call!((::unity::module_base()+0x29f5000usize)as*mut u8,bool;
356(DamageInfo)__receiver)
357 }
358 }
359 #[doc = "`IsShow()` overload"]
360 fn is_show(self) -> bool {
361 unsafe {
362 let __receiver = <DamageInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
363 ::unity::il2cpp_call!((::unity::module_base()+0x29f5060usize)as*mut u8,bool;
364(DamageInfo)__receiver)
365 }
366 }
367 #[doc = "`Init()` overload"]
368 fn init(self) -> () {
369 unsafe {
370 let __receiver = <DamageInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
371 ::unity::il2cpp_call!((::unity::module_base()+0x29f5100usize)as*mut u8,();
372(DamageInfo)__receiver)
373 }
374 }
375 #[doc = "`OnDispose()` overload"]
376 fn on_dispose(self) -> () {
377 unsafe {
378 let __receiver = <DamageInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
379 {
380 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
381 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
382 panic!(
383 "unity: virtual slot {}
384 out of range (vtable len {}
385) on the runtime class behind {}
386 (method `{}
387`)",
388 10usize,
389 __vt.len(),
390 <DamageInfo as ::unity::ClassIdentity>::NAME,
391 "OnDispose",
392 )
393 });
394 let __inner: extern "C" fn(DamageInfo, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
395 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
396 __inner(__receiver, __mi)
397 }
398 }
399 }
400 #[doc = "`Tick()` overload"]
401 fn tick(self) -> () {
402 unsafe {
403 let __receiver = <DamageInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
404 ::unity::il2cpp_call!((::unity::module_base()+0x29f5530usize)as*mut u8,();
405(DamageInfo)__receiver)
406 }
407 }
408 #[doc = "`CalcInfoList(crate::app::unit::Unit)` overload"]
409 fn calc_info_list(self, defence_unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
410 unsafe {
411 let __receiver = <DamageInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
412 ::unity::il2cpp_call!((::unity::module_base()+0x29f55b0usize)as*mut u8,();
413(DamageInfo)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(defence_unit))
414 }
415 }
416 #[doc = "`CalcInfoList()` overload"]
417 fn calc_info_list_2(self) -> () {
418 unsafe {
419 let __receiver = <DamageInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
420 ::unity::il2cpp_call!((::unity::module_base()+0x29f5d10usize)as*mut u8,();
421(DamageInfo)__receiver)
422 }
423 }
424 #[doc = "`CalcDamage(crate::app::unit::Unit, crate::app::unit::Unit, crate::app::skilldata::SkillData)` overload"]
425 fn calc_damage(
426 self,
427 offence_unit: impl ::core::convert::Into<crate::app::unit::Unit>,
428 defence_unit: impl ::core::convert::Into<crate::app::unit::Unit>,
429 engage_skill: impl ::core::convert::Into<crate::app::skilldata::SkillData>,
430 ) -> i32 {
431 unsafe {
432 let __receiver = <DamageInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
433 ::unity::il2cpp_call!((::unity::module_base()+0x29f5b60usize)as*mut u8,i32;
434(DamageInfo)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(offence_unit),(crate::app::unit::Unit)::core::convert::Into::into(defence_unit),(crate::app::skilldata::SkillData)::core::convert::Into::into(engage_skill))
435 }
436 }
437 #[doc = "`GetProcDesc()` overload"]
438 fn get_proc_desc(self) -> ::unity::Array<crate::app::procdesc::ProcDesc> {
439 unsafe {
440 let __receiver = <DamageInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
441 ::unity::il2cpp_call!((::unity::module_base()+0x29f5d20usize)as*mut u8, ::unity::Array<crate::app::procdesc::ProcDesc> ;
442(DamageInfo)__receiver)
443 }
444 }
445 #[doc = "`.ctor()` overload"]
446 fn ctor(self) -> () {
447 unsafe {
448 let __receiver = <DamageInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
449 ::unity::il2cpp_call!((::unity::module_base()+0x29f62c0usize)as*mut u8,();
450(DamageInfo)__receiver)
451 }
452 }
453}
454
455#[cfg(feature = "app-damageinfo")]
456impl<__T: IDamageInfo> IDamageInfoMethods for __T {}
457
458#[cfg(feature = "app-damageinfo")]
459impl DamageInfo {
460 pub fn get_global_asset_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
461 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
462 }
463
464 pub fn load_layout_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
465 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
466 }
467
468 pub fn is_loading_layout_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
469 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
470 }
471
472 pub fn is_show_method_info() -> &'static ::unity::il2cpp::MethodInfo {
473 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
474 }
475
476 pub fn init_method_info() -> &'static ::unity::il2cpp::MethodInfo {
477 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
478 }
479
480 pub fn on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
481 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
482 }
483
484 pub fn tick_method_info() -> &'static ::unity::il2cpp::MethodInfo {
485 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
486 }
487
488 pub fn calc_info_list_method_info() -> &'static ::unity::il2cpp::MethodInfo {
489 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
490 }
491
492 pub fn calc_info_list_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
493 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
494 }
495
496 pub fn calc_damage_method_info() -> &'static ::unity::il2cpp::MethodInfo {
497 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
498 }
499
500 pub fn get_proc_desc_method_info() -> &'static ::unity::il2cpp::MethodInfo {
501 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
502 }
503
504 pub fn set_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
505 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
506 }
507
508 pub fn update_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
509 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
510 }
511
512 pub fn set_visible_method_info() -> &'static ::unity::il2cpp::MethodInfo {
513 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
514 }
515
516 pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
517 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
518 }
519
520 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
521 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
522 }
523}
524
525#[cfg(feature = "app-damageinfo")]
526impl DamageInfo {
527 #[doc = "Direct (non-virtual) call to `DamageInfo`'s own `get_GlobalAssetPath`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
528 pub unsafe fn get_global_asset_path(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
529 let __mi = Self::get_global_asset_path_method_info();
530 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
531 __inner(this.into(), ::core::option::Option::None)
532 }
533
534 #[doc = "Direct (non-virtual) call to `DamageInfo`'s own `OnDispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
535 pub unsafe fn on_dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
536 let __mi = Self::on_dispose_method_info();
537 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
538 __inner(this.into(), ::core::option::Option::None)
539 }
540}
541
542#[cfg(feature = "app-damageinfo")]
543impl DamageInfo {
544 #[doc = "`.ctor()` — no args"]
545 pub fn new() -> Self {
546 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
547 panic!(
548 "{}
549::{}
550 failed to instantiate",
551 ::core::stringify!(DamageInfo),
552 ::core::stringify!(new),
553 )
554 });
555 <Self as IDamageInfoMethods>::ctor(this);
556 this
557 }
558}
559
560#[cfg(feature = "app-damageinfo")]
561pub trait IDamageInfo_InfoComparerMethods: IDamageInfo_InfoComparer {
562 #[doc = "`Compare(crate::app::damageinfo::DamageInfo_Info, crate::app::damageinfo::DamageInfo_Info)` overload"]
563 fn compare(
564 self,
565 a: impl ::core::convert::Into<crate::app::damageinfo::DamageInfo_Info>,
566 b: impl ::core::convert::Into<crate::app::damageinfo::DamageInfo_Info>,
567 ) -> i32 {
568 unsafe {
569 let __receiver =
570 <DamageInfo_InfoComparer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
571 {
572 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
573 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
574 panic!(
575 "unity: virtual slot {}
576 out of range (vtable len {}
577) on the runtime class behind {}
578 (method `{}
579`)",
580 4usize,
581 __vt.len(),
582 <DamageInfo_InfoComparer as ::unity::ClassIdentity>::NAME,
583 "Compare",
584 )
585 });
586 let __inner: extern "C" fn(
587 DamageInfo_InfoComparer,
588 crate::app::damageinfo::DamageInfo_Info,
589 crate::app::damageinfo::DamageInfo_Info,
590 ::unity::OptionalMethod,
591 ) -> i32 = ::core::mem::transmute(__vi.method_ptr);
592 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
593 __inner(__receiver, ::core::convert::Into::into(a), ::core::convert::Into::into(b), __mi)
594 }
595 }
596 }
597 #[doc = "`.ctor()` overload"]
598 fn ctor(self) -> () {
599 unsafe {
600 let __receiver =
601 <DamageInfo_InfoComparer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
602 ::unity::il2cpp_call!((::unity::module_base()+0x19ceeb0usize)as*mut u8,();
603(DamageInfo_InfoComparer)__receiver)
604 }
605 }
606}
607
608#[cfg(feature = "app-damageinfo")]
609impl<__T: IDamageInfo_InfoComparer> IDamageInfo_InfoComparerMethods for __T {}
610
611#[cfg(feature = "app-damageinfo")]
612impl DamageInfo_InfoComparer {
613 pub fn compare_method_info() -> &'static ::unity::il2cpp::MethodInfo {
614 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
615 }
616
617 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
618 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
619 }
620}
621
622#[cfg(feature = "app-damageinfo")]
623impl DamageInfo_InfoComparer {
624 #[doc = "Direct (non-virtual) call to `DamageInfo_InfoComparer`'s own `Compare`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
625 pub unsafe fn compare(
626 this: impl ::core::convert::Into<::unity::IlInstance>,
627 a: crate::app::damageinfo::DamageInfo_Info,
628 b: crate::app::damageinfo::DamageInfo_Info,
629 ) -> i32 {
630 let __mi = Self::compare_method_info();
631 let __inner: extern "C" fn(
632 ::unity::IlInstance,
633 crate::app::damageinfo::DamageInfo_Info,
634 crate::app::damageinfo::DamageInfo_Info,
635 ::unity::OptionalMethod,
636 ) -> i32 = ::core::mem::transmute(__mi.method_ptr);
637 __inner(this.into(), a, b, ::core::option::Option::None)
638 }
639}
640
641#[cfg(feature = "app-damageinfo")]
642impl DamageInfo_InfoComparer {
643 #[doc = "`.ctor()` — no args"]
644 pub fn new() -> Self {
645 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
646 panic!(
647 "{}
648::{}
649 failed to instantiate",
650 ::core::stringify!(DamageInfo_InfoComparer),
651 ::core::stringify!(new),
652 )
653 });
654 <Self as IDamageInfo_InfoComparerMethods>::ctor(this);
655 this
656 }
657}
658
659#[cfg(feature = "app-damageinfo")]
660#[doc(hidden)]
661pub mod prelude {
662 pub use super::{
663 DamageInfo, DamageInfo_Info, DamageInfo_InfoComparer, DamageInfo_InfoWindow, IDamageInfo, IDamageInfoMethods, IDamageInfo_Info,
664 IDamageInfo_InfoComparer, IDamageInfo_InfoComparerMethods, IDamageInfo_InfoMethods, IDamageInfo_InfoWindow, IDamageInfo_InfoWindowMethods,
665 };
666 #[cfg(feature = "app-procinst")]
667 pub use crate::app::procinst::IProcInstMethods;
668 #[cfg(feature = "app-singletonprocinst_1")]
669 pub use crate::app::singletonprocinst_1::ISingletonProcInst_1Methods;
670 #[cfg(feature = "system-object")]
671 pub use crate::system::object::IObjectMethods;
672 pub use crate::{
673 app::{procinst::IProcInst, singletonprocinst_1::ISingletonProcInst_1},
674 system::object::IObject,
675 };
676}