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