engage/generated/combat/
actiongrandamage.rs1#[cfg(feature = "combat-actiongrandamage-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 combat::{
10 actionbase::{ActionBase, IActionBase},
11 actiondisposerholder::{ActionDisposerHolder, IActionDisposerHolder},
12 actiongranbase::{ActionGranBase, IActionGranBase},
13 state::{IState, State},
14 },
15 system::object::{IObject, Object},
16 };
17
18 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/actiongrandamage/ActionGranDamage.md"))]
19 #[::unity::class(namespace = "Combat", name = "ActionGranDamage")]
20 #[parent(crate::combat::actiongranbase::ActionGranBase)]
21 pub struct ActionGranDamage {
22 #[offset(64)]
23 #[rename(name = "m_TimeToEraseInAir")]
24 pub m_time_to_erase_in_air: f32,
25 }
26}
27
28#[cfg(feature = "combat-actiongrandamage-types")]
29pub use __types::*;
30
31#[cfg(feature = "combat-actiongrandamage")]
32pub trait IActionGranDamageMethods: IActionGranDamage {
33 #[doc = "`get_Name()` overload"]
34 fn get_name(self) -> ::unity::Il2CppString {
35 unsafe {
36 let __receiver = <ActionGranDamage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
37 {
38 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
39 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
40 panic!(
41 "unity: virtual slot {}
42 out of range (vtable len {}
43) on the runtime class behind {}
44 (method `{}
45`)",
46 5usize,
47 __vt.len(),
48 <ActionGranDamage as ::unity::ClassIdentity>::NAME,
49 "get_Name",
50 )
51 });
52 let __inner: extern "C" fn(ActionGranDamage, ::unity::OptionalMethod) -> ::unity::Il2CppString =
53 ::core::mem::transmute(__vi.method_ptr);
54 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
55 __inner(__receiver, __mi)
56 }
57 }
58 }
59 #[doc = "`.ctor(crate::combat::character::Character)` overload"]
60 fn ctor(self, chr: impl ::core::convert::Into<crate::combat::character::Character>) -> () {
61 unsafe {
62 let __receiver = <ActionGranDamage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63 ::unity::il2cpp_call!((::unity::module_base()+0x2bc6e20usize)as*mut u8,();
64(ActionGranDamage)__receiver,(crate::combat::character::Character)::core::convert::Into::into(chr))
65 }
66 }
67 #[doc = "`OnEnter()` overload"]
68 fn on_enter(self) -> () {
69 unsafe {
70 let __receiver = <ActionGranDamage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71 {
72 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
73 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
74 panic!(
75 "unity: virtual slot {}
76 out of range (vtable len {}
77) on the runtime class behind {}
78 (method `{}
79`)",
80 6usize,
81 __vt.len(),
82 <ActionGranDamage as ::unity::ClassIdentity>::NAME,
83 "OnEnter",
84 )
85 });
86 let __inner: extern "C" fn(ActionGranDamage, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
87 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
88 __inner(__receiver, __mi)
89 }
90 }
91 }
92 #[doc = "`OnUpdate()` overload"]
93 fn on_update(self) -> () {
94 unsafe {
95 let __receiver = <ActionGranDamage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96 {
97 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
98 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
99 panic!(
100 "unity: virtual slot {}
101 out of range (vtable len {}
102) on the runtime class behind {}
103 (method `{}
104`)",
105 7usize,
106 __vt.len(),
107 <ActionGranDamage as ::unity::ClassIdentity>::NAME,
108 "OnUpdate",
109 )
110 });
111 let __inner: extern "C" fn(ActionGranDamage, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
112 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
113 __inner(__receiver, __mi)
114 }
115 }
116 }
117 #[doc = "`OnExit()` overload"]
118 fn on_exit(self) -> () {
119 unsafe {
120 let __receiver = <ActionGranDamage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
121 {
122 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
123 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
124 panic!(
125 "unity: virtual slot {}
126 out of range (vtable len {}
127) on the runtime class behind {}
128 (method `{}
129`)",
130 9usize,
131 __vt.len(),
132 <ActionGranDamage as ::unity::ClassIdentity>::NAME,
133 "OnExit",
134 )
135 });
136 let __inner: extern "C" fn(ActionGranDamage, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
137 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
138 __inner(__receiver, __mi)
139 }
140 }
141 }
142}
143
144#[cfg(feature = "combat-actiongrandamage")]
145impl<__T: IActionGranDamage> IActionGranDamageMethods for __T {}
146
147#[cfg(feature = "combat-actiongrandamage")]
148impl ActionGranDamage {
149 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
150 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
151 }
152
153 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
154 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
155 }
156
157 pub fn on_enter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
158 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
159 }
160
161 pub fn on_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
163 }
164
165 pub fn on_exit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
167 }
168}
169
170#[cfg(feature = "combat-actiongrandamage")]
171impl ActionGranDamage {
172 #[doc = "Direct (non-virtual) call to `ActionGranDamage`'s own `get_Name`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
173 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
174 let __mi = Self::get_name_method_info();
175 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
176 __inner(this.into(), ::core::option::Option::None)
177 }
178
179 #[doc = "Direct (non-virtual) call to `ActionGranDamage`'s own `OnEnter`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
180 pub unsafe fn on_enter(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
181 let __mi = Self::on_enter_method_info();
182 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
183 __inner(this.into(), ::core::option::Option::None)
184 }
185
186 #[doc = "Direct (non-virtual) call to `ActionGranDamage`'s own `OnUpdate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
187 pub unsafe fn on_update(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
188 let __mi = Self::on_update_method_info();
189 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
190 __inner(this.into(), ::core::option::Option::None)
191 }
192
193 #[doc = "Direct (non-virtual) call to `ActionGranDamage`'s own `OnExit`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
194 pub unsafe fn on_exit(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
195 let __mi = Self::on_exit_method_info();
196 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
197 __inner(this.into(), ::core::option::Option::None)
198 }
199}
200
201#[cfg(feature = "combat-actiongrandamage")]
202impl ActionGranDamage {
203 #[doc = "`.ctor(crate::combat::character::Character)` — overload selector"]
204 pub fn new(chr: crate::combat::character::Character) -> Self {
205 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
206 panic!(
207 "{}
208::{}
209 failed to instantiate",
210 ::core::stringify!(ActionGranDamage),
211 ::core::stringify!(new),
212 )
213 });
214 <Self as IActionGranDamageMethods>::ctor(this, chr);
215 this
216 }
217}
218
219#[cfg(feature = "combat-actiongrandamage")]
220#[doc(hidden)]
221pub mod prelude {
222 pub use super::{ActionGranDamage, IActionGranDamage, IActionGranDamageMethods};
223 #[cfg(feature = "combat-actionbase")]
224 pub use crate::combat::actionbase::IActionBaseMethods;
225 #[cfg(feature = "combat-actiondisposerholder")]
226 pub use crate::combat::actiondisposerholder::IActionDisposerHolderMethods;
227 #[cfg(feature = "combat-actiongranbase")]
228 pub use crate::combat::actiongranbase::IActionGranBaseMethods;
229 #[cfg(feature = "combat-state")]
230 pub use crate::combat::state::IStateMethods;
231 #[cfg(feature = "system-object")]
232 pub use crate::system::object::IObjectMethods;
233 pub use crate::{
234 combat::{actionbase::IActionBase, actiondisposerholder::IActionDisposerHolder, actiongranbase::IActionGranBase, state::IState},
235 system::object::IObject,
236 };
237}