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