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