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