engage/generated/combat/
evasionspeed.rs1#[cfg(feature = "combat-evasionspeed-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/evasionspeed/EvasionSpeed.md"))]
11 #[::unity::class(namespace = "Combat", name = "EvasionSpeed")]
12 #[parent(crate::system::object::Object)]
13 pub struct EvasionSpeed {
14 #[offset(16)]
15 #[rename(name = "m_EvasionSpeedCurve")]
16 pub m_evasion_speed_curve: crate::unity_engine::animationcurve::AnimationCurve,
17 #[offset(24)]
18 #[rename(name = "t")]
19 pub t: f32,
20 }
21}
22
23#[cfg(feature = "combat-evasionspeed-types")]
24pub use __types::*;
25
26#[cfg(feature = "combat-evasionspeed")]
27pub trait IEvasionSpeedMethods: IEvasionSpeed {
28 #[doc = "`get_Speed()` overload"]
29 fn get_speed(self) -> f32 {
30 unsafe {
31 let __receiver = <EvasionSpeed as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32 ::unity::il2cpp_call!((::unity::module_base()+0x22eb290usize)as*mut u8,f32;
33(EvasionSpeed)__receiver)
34 }
35 }
36 #[doc = "`.ctor(crate::unity_engine::animationcurve::AnimationCurve)` overload"]
37 fn ctor(self, curve: impl ::core::convert::Into<crate::unity_engine::animationcurve::AnimationCurve>) -> () {
38 unsafe {
39 let __receiver = <EvasionSpeed as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40 ::unity::il2cpp_call!((::unity::module_base()+0x22eb2c0usize)as*mut u8,();
41(EvasionSpeed)__receiver,(crate::unity_engine::animationcurve::AnimationCurve)::core::convert::Into::into(curve))
42 }
43 }
44 #[doc = "`Dispose()` overload"]
45 fn dispose(self) -> () {
46 unsafe {
47 let __receiver = <EvasionSpeed as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48 {
49 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
50 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
51 panic!(
52 "unity: virtual slot {}
53 out of range (vtable len {}
54) on the runtime class behind {}
55 (method `{}
56`)",
57 4usize,
58 __vt.len(),
59 <EvasionSpeed as ::unity::ClassIdentity>::NAME,
60 "Dispose",
61 )
62 });
63 let __inner: extern "C" fn(EvasionSpeed, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
64 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
65 __inner(__receiver, __mi)
66 }
67 }
68 }
69 #[doc = "`Start()` overload"]
70 fn start(self) -> () {
71 unsafe {
72 let __receiver = <EvasionSpeed as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73 ::unity::il2cpp_call!((::unity::module_base()+0x22eb310usize)as*mut u8,();
74(EvasionSpeed)__receiver)
75 }
76 }
77 #[doc = "`Update()` overload"]
78 fn update(self) -> () {
79 unsafe {
80 let __receiver = <EvasionSpeed as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81 ::unity::il2cpp_call!((::unity::module_base()+0x22eb320usize)as*mut u8,();
82(EvasionSpeed)__receiver)
83 }
84 }
85}
86
87#[cfg(feature = "combat-evasionspeed")]
88impl<__T: IEvasionSpeed> IEvasionSpeedMethods for __T {}
89
90#[cfg(feature = "combat-evasionspeed")]
91impl EvasionSpeed {
92 pub fn get_speed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
93 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
94 }
95
96 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
97 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
98 }
99
100 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
101 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
102 }
103
104 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
105 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
106 }
107
108 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
109 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
110 }
111}
112
113#[cfg(feature = "combat-evasionspeed")]
114impl EvasionSpeed {
115 #[doc = "Direct (non-virtual) call to `EvasionSpeed`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
116 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
117 let __mi = Self::dispose_method_info();
118 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
119 __inner(this.into(), ::core::option::Option::None)
120 }
121}
122
123#[cfg(feature = "combat-evasionspeed")]
124impl EvasionSpeed {
125 #[doc = "`.ctor(crate::unity_engine::animationcurve::AnimationCurve)` — overload selector"]
126 pub fn new(curve: crate::unity_engine::animationcurve::AnimationCurve) -> Self {
127 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
128 panic!(
129 "{}
130::{}
131 failed to instantiate",
132 ::core::stringify!(EvasionSpeed),
133 ::core::stringify!(new),
134 )
135 });
136 <Self as IEvasionSpeedMethods>::ctor(this, curve);
137 this
138 }
139}
140
141#[cfg(feature = "combat-evasionspeed")]
142#[doc(hidden)]
143pub mod prelude {
144 pub use super::{EvasionSpeed, IEvasionSpeed, IEvasionSpeedMethods};
145 pub use crate::system::object::IObject;
146 #[cfg(feature = "system-object")]
147 pub use crate::system::object::IObjectMethods;
148}