1#[cfg(feature = "combat-decorator-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/decorator/Decorator.md"))]
11 #[::unity::class(namespace = "Combat", name = "Decorator")]
12 #[parent(crate::system::object::Object)]
13 pub struct Decorator {
14 #[offset(16)]
15 #[rename(name = "m_Side")]
16 pub m_side: i32,
17 }
18}
19
20#[cfg(feature = "combat-decorator-types")]
21pub use __types::*;
22
23#[cfg(feature = "combat-decorator")]
24pub trait IDecoratorMethods: IDecorator {
25 #[doc = "`get_Name()` overload"]
26 fn get_name(self) -> ::unity::Il2CppString {
27 unsafe {
28 let __receiver = <Decorator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
29 {
30 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
31 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
32 panic!(
33 "unity: virtual slot {}
34 out of range (vtable len {}
35) on the runtime class behind {}
36 (method `{}
37`)",
38 4usize,
39 __vt.len(),
40 <Decorator as ::unity::ClassIdentity>::NAME,
41 "get_Name",
42 )
43 });
44 let __inner: extern "C" fn(Decorator, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
45 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
46 __inner(__receiver, __mi)
47 }
48 }
49 }
50 #[doc = "`get_m_Phase()` overload"]
51 fn get_m_phase(self) -> crate::combat::phase::Phase {
52 unsafe {
53 let __receiver = <Decorator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54 ::unity::il2cpp_call!((::unity::module_base()+0x1cea020usize)as*mut u8,crate::combat::phase::Phase;
55(Decorator)__receiver)
56 }
57 }
58 #[doc = "`set_m_Phase(crate::combat::phase::Phase)` overload"]
59 fn set_m_phase(self, value: impl ::core::convert::Into<crate::combat::phase::Phase>) -> () {
60 unsafe {
61 let __receiver = <Decorator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62 ::unity::il2cpp_call!((::unity::module_base()+0x1cea030usize)as*mut u8,();
63(Decorator)__receiver,(crate::combat::phase::Phase)::core::convert::Into::into(value))
64 }
65 }
66 #[doc = "`get_m_Chrs()` overload"]
67 fn get_m_chrs(self) -> ::unity::Array<crate::combat::character::Character> {
68 unsafe {
69 let __receiver = <Decorator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
70 ::unity::il2cpp_call!((::unity::module_base()+0x1ce9810usize)as*mut u8, ::unity::Array<crate::combat::character::Character> ;
71(Decorator)__receiver)
72 }
73 }
74 #[doc = "`get_m_Master()` overload"]
75 fn get_m_master(self) -> crate::combat::character::Character {
76 unsafe {
77 let __receiver = <Decorator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78 ::unity::il2cpp_call!((::unity::module_base()+0x1ce7e20usize)as*mut u8,crate::combat::character::Character;
79(Decorator)__receiver)
80 }
81 }
82 #[doc = "`get_m_Enemy()` overload"]
83 fn get_m_enemy(self) -> crate::combat::character::Character {
84 unsafe {
85 let __receiver = <Decorator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
86 ::unity::il2cpp_call!((::unity::module_base()+0x1ce8450usize)as*mut u8,crate::combat::character::Character;
87(Decorator)__receiver)
88 }
89 }
90 #[doc = "`get_m_Grandew()` overload"]
91 fn get_m_grandew(self) -> crate::combat::character::Character {
92 unsafe {
93 let __receiver = <Decorator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
94 ::unity::il2cpp_call!((::unity::module_base()+0x1cea040usize)as*mut u8,crate::combat::character::Character;
95(Decorator)__receiver)
96 }
97 }
98 #[doc = "`get_m_EnemyGrandew()` overload"]
99 fn get_m_enemy_grandew(self) -> crate::combat::character::Character {
100 unsafe {
101 let __receiver = <Decorator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
102 ::unity::il2cpp_call!((::unity::module_base()+0x1cea050usize)as*mut u8,crate::combat::character::Character;
103(Decorator)__receiver)
104 }
105 }
106 #[doc = "`UseOnArrivalTimePredicted()` overload"]
107 fn use_on_arrival_time_predicted(self) -> () {
108 unsafe {
109 let __receiver = <Decorator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
110 ::unity::il2cpp_call!((::unity::module_base()+0x1ce9360usize)as*mut u8,();
111(Decorator)__receiver)
112 }
113 }
114 #[doc = "`UseOnHitTimePredicted()` overload"]
115 fn use_on_hit_time_predicted(self) -> () {
116 unsafe {
117 let __receiver = <Decorator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
118 ::unity::il2cpp_call!((::unity::module_base()+0x1cea0a0usize)as*mut u8,();
119(Decorator)__receiver)
120 }
121 }
122 #[doc = "`UseOnEnemyDamage()` overload"]
123 fn use_on_enemy_damage(self) -> () {
124 unsafe {
125 let __receiver = <Decorator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126 ::unity::il2cpp_call!((::unity::module_base()+0x1ce7bd0usize)as*mut u8,();
127(Decorator)__receiver)
128 }
129 }
130 #[doc = "`UseOnBackwardCancel(crate::combat::character::Character)` overload"]
131 fn use_on_backward_cancel(self, chr: impl ::core::convert::Into<crate::combat::character::Character>) -> () {
132 unsafe {
133 let __receiver = <Decorator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134 ::unity::il2cpp_call!((::unity::module_base()+0x1cea220usize)as*mut u8,();
135(Decorator)__receiver,(crate::combat::character::Character)::core::convert::Into::into(chr))
136 }
137 }
138 #[doc = "`OnEnter()` overload"]
139 fn on_enter(self) -> () {
140 unsafe {
141 let __receiver = <Decorator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142 {
143 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
144 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
145 panic!(
146 "unity: virtual slot {}
147 out of range (vtable len {}
148) on the runtime class behind {}
149 (method `{}
150`)",
151 5usize,
152 __vt.len(),
153 <Decorator as ::unity::ClassIdentity>::NAME,
154 "OnEnter",
155 )
156 });
157 let __inner: extern "C" fn(Decorator, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
158 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
159 __inner(__receiver, __mi)
160 }
161 }
162 }
163 #[doc = "`OnEnterAttack()` overload"]
164 fn on_enter_attack(self) -> () {
165 unsafe {
166 let __receiver = <Decorator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
167 {
168 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
169 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
170 panic!(
171 "unity: virtual slot {}
172 out of range (vtable len {}
173) on the runtime class behind {}
174 (method `{}
175`)",
176 6usize,
177 __vt.len(),
178 <Decorator as ::unity::ClassIdentity>::NAME,
179 "OnEnterAttack",
180 )
181 });
182 let __inner: extern "C" fn(Decorator, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
183 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
184 __inner(__receiver, __mi)
185 }
186 }
187 }
188 #[doc = "`OnUpdate()` overload"]
189 fn on_update(self) -> () {
190 unsafe {
191 let __receiver = <Decorator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
192 {
193 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
194 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
195 panic!(
196 "unity: virtual slot {}
197 out of range (vtable len {}
198) on the runtime class behind {}
199 (method `{}
200`)",
201 7usize,
202 __vt.len(),
203 <Decorator as ::unity::ClassIdentity>::NAME,
204 "OnUpdate",
205 )
206 });
207 let __inner: extern "C" fn(Decorator, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
208 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
209 __inner(__receiver, __mi)
210 }
211 }
212 }
213 #[doc = "`OnExit()` overload"]
214 fn on_exit(self) -> () {
215 unsafe {
216 let __receiver = <Decorator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
217 {
218 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
219 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
220 panic!(
221 "unity: virtual slot {}
222 out of range (vtable len {}
223) on the runtime class behind {}
224 (method `{}
225`)",
226 8usize,
227 __vt.len(),
228 <Decorator as ::unity::ClassIdentity>::NAME,
229 "OnExit",
230 )
231 });
232 let __inner: extern "C" fn(Decorator, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
233 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
234 __inner(__receiver, __mi)
235 }
236 }
237 }
238 #[doc = "`OnArrivalTimePredicted_(f32)` overload"]
239 fn on_arrival_time_predicted(self, world_arrival_time: impl ::core::convert::Into<f32>) -> () {
240 unsafe {
241 let __receiver = <Decorator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
242 {
243 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
244 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
245 panic!(
246 "unity: virtual slot {}
247 out of range (vtable len {}
248) on the runtime class behind {}
249 (method `{}
250`)",
251 9usize,
252 __vt.len(),
253 <Decorator as ::unity::ClassIdentity>::NAME,
254 "OnArrivalTimePredicted_",
255 )
256 });
257 let __inner: extern "C" fn(Decorator, f32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
258 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
259 __inner(__receiver, ::core::convert::Into::into(world_arrival_time), __mi)
260 }
261 }
262 }
263 #[doc = "`OnHitTimePredicted_(f32, crate::combat::weaponstyle::WeaponStyle)` overload"]
264 fn on_hit_time_predicted(
265 self,
266 world_hit_time: impl ::core::convert::Into<f32>,
267 weapon_style: impl ::core::convert::Into<crate::combat::weaponstyle::WeaponStyle>,
268 ) -> () {
269 unsafe {
270 let __receiver = <Decorator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
271 {
272 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
273 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
274 panic!(
275 "unity: virtual slot {}
276 out of range (vtable len {}
277) on the runtime class behind {}
278 (method `{}
279`)",
280 10usize,
281 __vt.len(),
282 <Decorator as ::unity::ClassIdentity>::NAME,
283 "OnHitTimePredicted_",
284 )
285 });
286 let __inner: extern "C" fn(Decorator, f32, crate::combat::weaponstyle::WeaponStyle, ::unity::OptionalMethod) -> () =
287 ::core::mem::transmute(__vi.method_ptr);
288 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
289 __inner(
290 __receiver,
291 ::core::convert::Into::into(world_hit_time),
292 ::core::convert::Into::into(weapon_style),
293 __mi,
294 )
295 }
296 }
297 }
298 #[doc = "`OnShoot(crate::unity_engine::animationevent::AnimationEvent)` overload"]
299 fn on_shoot(self, ev: impl ::core::convert::Into<crate::unity_engine::animationevent::AnimationEvent>) -> () {
300 unsafe {
301 let __receiver = <Decorator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
302 {
303 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
304 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
305 panic!(
306 "unity: virtual slot {}
307 out of range (vtable len {}
308) on the runtime class behind {}
309 (method `{}
310`)",
311 11usize,
312 __vt.len(),
313 <Decorator as ::unity::ClassIdentity>::NAME,
314 "OnShoot",
315 )
316 });
317 let __inner: extern "C" fn(Decorator, crate::unity_engine::animationevent::AnimationEvent, ::unity::OptionalMethod) -> () =
318 ::core::mem::transmute(__vi.method_ptr);
319 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
320 __inner(__receiver, ::core::convert::Into::into(ev), __mi)
321 }
322 }
323 }
324 #[doc = "`OnMissPassed(crate::unity_engine::animationevent::AnimationEvent)` overload"]
325 fn on_miss_passed(self, ev: impl ::core::convert::Into<crate::unity_engine::animationevent::AnimationEvent>) -> () {
326 unsafe {
327 let __receiver = <Decorator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
328 {
329 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
330 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
331 panic!(
332 "unity: virtual slot {}
333 out of range (vtable len {}
334) on the runtime class behind {}
335 (method `{}
336`)",
337 12usize,
338 __vt.len(),
339 <Decorator as ::unity::ClassIdentity>::NAME,
340 "OnMissPassed",
341 )
342 });
343 let __inner: extern "C" fn(Decorator, crate::unity_engine::animationevent::AnimationEvent, ::unity::OptionalMethod) -> () =
344 ::core::mem::transmute(__vi.method_ptr);
345 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
346 __inner(__receiver, ::core::convert::Into::into(ev), __mi)
347 }
348 }
349 }
350 #[doc = "`OnHitPassed(crate::unity_engine::animationevent::AnimationEvent)` overload"]
351 fn on_hit_passed(self, ev: impl ::core::convert::Into<crate::unity_engine::animationevent::AnimationEvent>) -> () {
352 unsafe {
353 let __receiver = <Decorator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
354 {
355 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
356 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
357 panic!(
358 "unity: virtual slot {}
359 out of range (vtable len {}
360) on the runtime class behind {}
361 (method `{}
362`)",
363 13usize,
364 __vt.len(),
365 <Decorator as ::unity::ClassIdentity>::NAME,
366 "OnHitPassed",
367 )
368 });
369 let __inner: extern "C" fn(Decorator, crate::unity_engine::animationevent::AnimationEvent, ::unity::OptionalMethod) -> () =
370 ::core::mem::transmute(__vi.method_ptr);
371 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
372 __inner(__receiver, ::core::convert::Into::into(ev), __mi)
373 }
374 }
375 }
376 #[doc = "`OnEnemyDamage_(crate::unity_engine::animationevent::AnimationEvent)` overload"]
377 fn on_enemy_damage(self, ev: impl ::core::convert::Into<crate::unity_engine::animationevent::AnimationEvent>) -> () {
378 unsafe {
379 let __receiver = <Decorator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
380 {
381 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
382 let __vi = *__vt.get(14usize).unwrap_or_else(|| {
383 panic!(
384 "unity: virtual slot {}
385 out of range (vtable len {}
386) on the runtime class behind {}
387 (method `{}
388`)",
389 14usize,
390 __vt.len(),
391 <Decorator as ::unity::ClassIdentity>::NAME,
392 "OnEnemyDamage_",
393 )
394 });
395 let __inner: extern "C" fn(Decorator, crate::unity_engine::animationevent::AnimationEvent, ::unity::OptionalMethod) -> () =
396 ::core::mem::transmute(__vi.method_ptr);
397 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
398 __inner(__receiver, ::core::convert::Into::into(ev), __mi)
399 }
400 }
401 }
402 #[doc = "`OnBackwardCancel_()` overload"]
403 fn on_backward_cancel(self) -> () {
404 unsafe {
405 let __receiver = <Decorator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
406 {
407 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
408 let __vi = *__vt.get(15usize).unwrap_or_else(|| {
409 panic!(
410 "unity: virtual slot {}
411 out of range (vtable len {}
412) on the runtime class behind {}
413 (method `{}
414`)",
415 15usize,
416 __vt.len(),
417 <Decorator as ::unity::ClassIdentity>::NAME,
418 "OnBackwardCancel_",
419 )
420 });
421 let __inner: extern "C" fn(Decorator, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
422 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
423 __inner(__receiver, __mi)
424 }
425 }
426 }
427 #[doc = "`.ctor()` overload"]
428 fn ctor(self) -> () {
429 unsafe {
430 let __receiver = <Decorator as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
431 ::unity::il2cpp_call!((::unity::module_base()+0x1ce7d50usize)as*mut u8,();
432(Decorator)__receiver)
433 }
434 }
435}
436
437#[cfg(feature = "combat-decorator")]
438impl<__T: IDecorator> IDecoratorMethods for __T {}
439
440#[cfg(feature = "combat-decorator")]
441impl Decorator {
442 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
443 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
444 }
445
446 pub fn get_m_phase_method_info() -> &'static ::unity::il2cpp::MethodInfo {
447 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
448 }
449
450 pub fn set_m_phase_method_info() -> &'static ::unity::il2cpp::MethodInfo {
451 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
452 }
453
454 pub fn get_m_chrs_method_info() -> &'static ::unity::il2cpp::MethodInfo {
455 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
456 }
457
458 pub fn get_m_master_method_info() -> &'static ::unity::il2cpp::MethodInfo {
459 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
460 }
461
462 pub fn get_m_enemy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
463 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
464 }
465
466 pub fn get_m_grandew_method_info() -> &'static ::unity::il2cpp::MethodInfo {
467 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
468 }
469
470 pub fn get_m_enemy_grandew_method_info() -> &'static ::unity::il2cpp::MethodInfo {
471 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
472 }
473
474 pub fn use_on_arrival_time_predicted_method_info() -> &'static ::unity::il2cpp::MethodInfo {
475 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
476 }
477
478 pub fn use_on_hit_time_predicted_method_info() -> &'static ::unity::il2cpp::MethodInfo {
479 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
480 }
481
482 pub fn use_on_enemy_damage_method_info() -> &'static ::unity::il2cpp::MethodInfo {
483 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
484 }
485
486 pub fn use_on_backward_cancel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
487 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
488 }
489
490 pub fn on_enter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
491 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
492 }
493
494 pub fn on_enter_attack_method_info() -> &'static ::unity::il2cpp::MethodInfo {
495 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
496 }
497
498 pub fn on_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
499 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
500 }
501
502 pub fn on_exit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
503 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
504 }
505
506 pub fn on_arrival_time_predicted_method_info() -> &'static ::unity::il2cpp::MethodInfo {
507 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
508 }
509
510 pub fn on_hit_time_predicted_method_info() -> &'static ::unity::il2cpp::MethodInfo {
511 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
512 }
513
514 pub fn on_shoot_method_info() -> &'static ::unity::il2cpp::MethodInfo {
515 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
516 }
517
518 pub fn on_miss_passed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
519 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
520 }
521
522 pub fn on_hit_passed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
523 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
524 }
525
526 pub fn on_enemy_damage_method_info() -> &'static ::unity::il2cpp::MethodInfo {
527 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
528 }
529
530 pub fn on_backward_cancel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
531 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
532 }
533
534 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
535 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
536 }
537}
538
539#[cfg(feature = "combat-decorator")]
540impl Decorator {
541 #[doc = "Direct (non-virtual) call to `Decorator`'s own `get_Name`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
542 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
543 let __mi = Self::get_name_method_info();
544 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
545 __inner(this.into(), ::core::option::Option::None)
546 }
547
548 #[doc = "Direct (non-virtual) call to `Decorator`'s own `OnEnter`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
549 pub unsafe fn on_enter(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
550 let __mi = Self::on_enter_method_info();
551 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
552 __inner(this.into(), ::core::option::Option::None)
553 }
554
555 #[doc = "Direct (non-virtual) call to `Decorator`'s own `OnEnterAttack`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
556 pub unsafe fn on_enter_attack(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
557 let __mi = Self::on_enter_attack_method_info();
558 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
559 __inner(this.into(), ::core::option::Option::None)
560 }
561
562 #[doc = "Direct (non-virtual) call to `Decorator`'s own `OnUpdate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
563 pub unsafe fn on_update(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
564 let __mi = Self::on_update_method_info();
565 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
566 __inner(this.into(), ::core::option::Option::None)
567 }
568
569 #[doc = "Direct (non-virtual) call to `Decorator`'s own `OnExit`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
570 pub unsafe fn on_exit(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
571 let __mi = Self::on_exit_method_info();
572 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
573 __inner(this.into(), ::core::option::Option::None)
574 }
575
576 #[doc = "Direct (non-virtual) call to `Decorator`'s own `OnArrivalTimePredicted_`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
577 pub unsafe fn on_arrival_time_predicted(this: impl ::core::convert::Into<::unity::IlInstance>, world_arrival_time: f32) -> () {
578 let __mi = Self::on_arrival_time_predicted_method_info();
579 let __inner: extern "C" fn(::unity::IlInstance, f32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
580 __inner(this.into(), world_arrival_time, ::core::option::Option::None)
581 }
582
583 #[doc = "Direct (non-virtual) call to `Decorator`'s own `OnHitTimePredicted_`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
584 pub unsafe fn on_hit_time_predicted(
585 this: impl ::core::convert::Into<::unity::IlInstance>,
586 world_hit_time: f32,
587 weapon_style: crate::combat::weaponstyle::WeaponStyle,
588 ) -> () {
589 let __mi = Self::on_hit_time_predicted_method_info();
590 let __inner: extern "C" fn(::unity::IlInstance, f32, crate::combat::weaponstyle::WeaponStyle, ::unity::OptionalMethod) -> () =
591 ::core::mem::transmute(__mi.method_ptr);
592 __inner(this.into(), world_hit_time, weapon_style, ::core::option::Option::None)
593 }
594
595 #[doc = "Direct (non-virtual) call to `Decorator`'s own `OnShoot`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
596 pub unsafe fn on_shoot(this: impl ::core::convert::Into<::unity::IlInstance>, ev: crate::unity_engine::animationevent::AnimationEvent) -> () {
597 let __mi = Self::on_shoot_method_info();
598 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::animationevent::AnimationEvent, ::unity::OptionalMethod) -> () =
599 ::core::mem::transmute(__mi.method_ptr);
600 __inner(this.into(), ev, ::core::option::Option::None)
601 }
602
603 #[doc = "Direct (non-virtual) call to `Decorator`'s own `OnMissPassed`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
604 pub unsafe fn on_miss_passed(
605 this: impl ::core::convert::Into<::unity::IlInstance>,
606 ev: crate::unity_engine::animationevent::AnimationEvent,
607 ) -> () {
608 let __mi = Self::on_miss_passed_method_info();
609 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::animationevent::AnimationEvent, ::unity::OptionalMethod) -> () =
610 ::core::mem::transmute(__mi.method_ptr);
611 __inner(this.into(), ev, ::core::option::Option::None)
612 }
613
614 #[doc = "Direct (non-virtual) call to `Decorator`'s own `OnHitPassed`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
615 pub unsafe fn on_hit_passed(
616 this: impl ::core::convert::Into<::unity::IlInstance>,
617 ev: crate::unity_engine::animationevent::AnimationEvent,
618 ) -> () {
619 let __mi = Self::on_hit_passed_method_info();
620 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::animationevent::AnimationEvent, ::unity::OptionalMethod) -> () =
621 ::core::mem::transmute(__mi.method_ptr);
622 __inner(this.into(), ev, ::core::option::Option::None)
623 }
624
625 #[doc = "Direct (non-virtual) call to `Decorator`'s own `OnEnemyDamage_`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
626 pub unsafe fn on_enemy_damage(
627 this: impl ::core::convert::Into<::unity::IlInstance>,
628 ev: crate::unity_engine::animationevent::AnimationEvent,
629 ) -> () {
630 let __mi = Self::on_enemy_damage_method_info();
631 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::animationevent::AnimationEvent, ::unity::OptionalMethod) -> () =
632 ::core::mem::transmute(__mi.method_ptr);
633 __inner(this.into(), ev, ::core::option::Option::None)
634 }
635
636 #[doc = "Direct (non-virtual) call to `Decorator`'s own `OnBackwardCancel_`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
637 pub unsafe fn on_backward_cancel(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
638 let __mi = Self::on_backward_cancel_method_info();
639 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
640 __inner(this.into(), ::core::option::Option::None)
641 }
642}
643
644#[cfg(feature = "combat-decorator")]
645impl Decorator {
646 #[doc = "`.ctor()` — no args"]
647 pub fn new() -> Self {
648 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
649 panic!(
650 "{}
651::{}
652 failed to instantiate",
653 ::core::stringify!(Decorator),
654 ::core::stringify!(new),
655 )
656 });
657 <Self as IDecoratorMethods>::ctor(this);
658 this
659 }
660}
661
662#[cfg(feature = "combat-decorator")]
663#[doc(hidden)]
664pub mod prelude {
665 pub use super::{Decorator, IDecorator, IDecoratorMethods};
666 pub use crate::system::object::IObject;
667 #[cfg(feature = "system-object")]
668 pub use crate::system::object::IObjectMethods;
669}