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