engage/generated/combat/
deco_skill.rs1#[cfg(feature = "combat-deco_skill-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 combat::decorator::{Decorator, IDecorator},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/deco_skill/Deco_Skill.md"))]
14 #[::unity::class(namespace = "Combat", name = "Deco_Skill")]
15 #[parent(crate::combat::decorator::Decorator)]
16 pub struct Deco_Skill {
17 #[offset(40)]
18 #[rename(name = "m_Pair")]
19 pub m_pair: crate::combat::skillstack::SkillStack_Packet,
20 #[offset(48)]
21 #[rename(name = "m_bNameShown")]
22 pub m_b_name_shown: bool,
23 }
24}
25
26#[cfg(feature = "combat-deco_skill-types")]
27pub use __types::*;
28
29#[cfg(feature = "combat-deco_skill")]
30impl Deco_Skill {
31 #[doc = "`IsAvailable(crate::combat::decoratorargs::DecoratorArgs, crate::combat::skillstack::SkillStack_Packet)` overload"]
32 pub fn is_available(
33 that: impl ::core::convert::Into<crate::combat::decoratorargs::DecoratorArgs>,
34 pair: impl ::core::convert::Into<crate::combat::skillstack::SkillStack_Packet>,
35 ) -> bool {
36 unsafe {
37 ::unity::il2cpp_call!((::unity::module_base()+0x1ce92e0usize)as*mut u8,bool;
38(crate::combat::decoratorargs::DecoratorArgs)::core::convert::Into::into(that),(crate::combat::skillstack::SkillStack_Packet)::core::convert::Into::into(pair))
39 }
40 }
41
42 #[doc = "`DrawSkillDamages(crate::combat::phase::Phase, crate::combat::skillstack::SkillStack)` overload"]
43 pub fn draw_skill_damages(
44 phase: impl ::core::convert::Into<crate::combat::phase::Phase>,
45 skills: impl ::core::convert::Into<crate::combat::skillstack::SkillStack>,
46 ) -> () {
47 unsafe {
48 ::unity::il2cpp_call!((::unity::module_base()+0x1ce9860usize)as*mut u8,();
49(crate::combat::phase::Phase)::core::convert::Into::into(phase),(crate::combat::skillstack::SkillStack)::core::convert::Into::into(skills))
50 }
51 }
52
53 #[doc = "`IsSubspace(crate::combat::character::Character)` overload"]
54 pub fn is_subspace(c: impl ::core::convert::Into<crate::combat::character::Character>) -> bool {
55 unsafe {
56 ::unity::il2cpp_call!((::unity::module_base()+0x1ce9830usize)as*mut u8,bool;
57(crate::combat::character::Character)::core::convert::Into::into(c))
58 }
59 }
60}
61
62#[cfg(feature = "combat-deco_skill")]
63pub trait IDeco_SkillMethods: IDeco_Skill {
64 #[doc = "`get_Name()` overload"]
65 fn get_name(self) -> ::unity::Il2CppString {
66 unsafe {
67 let __receiver = <Deco_Skill as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
68 {
69 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
70 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
71 panic!(
72 "unity: virtual slot {}
73 out of range (vtable len {}
74) on the runtime class behind {}
75 (method `{}
76`)",
77 4usize,
78 __vt.len(),
79 <Deco_Skill as ::unity::ClassIdentity>::NAME,
80 "get_Name",
81 )
82 });
83 let __inner: extern "C" fn(Deco_Skill, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
84 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
85 __inner(__receiver, __mi)
86 }
87 }
88 }
89 #[doc = "`set_Pair(crate::combat::skillstack::SkillStack_Packet)` overload"]
90 fn set_pair(self, value: impl ::core::convert::Into<crate::combat::skillstack::SkillStack_Packet>) -> () {
91 unsafe {
92 let __receiver = <Deco_Skill as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
93 ::unity::il2cpp_call!((::unity::module_base()+0x1ce92d0usize)as*mut u8,();
94(Deco_Skill)__receiver,(crate::combat::skillstack::SkillStack_Packet)::core::convert::Into::into(value))
95 }
96 }
97 #[doc = "`OnEnter()` overload"]
98 fn on_enter(self) -> () {
99 unsafe {
100 let __receiver = <Deco_Skill as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
101 {
102 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
103 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
104 panic!(
105 "unity: virtual slot {}
106 out of range (vtable len {}
107) on the runtime class behind {}
108 (method `{}
109`)",
110 5usize,
111 __vt.len(),
112 <Deco_Skill as ::unity::ClassIdentity>::NAME,
113 "OnEnter",
114 )
115 });
116 let __inner: extern "C" fn(Deco_Skill, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
117 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
118 __inner(__receiver, __mi)
119 }
120 }
121 }
122 #[doc = "`OnEnterAttack()` overload"]
123 fn on_enter_attack(self) -> () {
124 unsafe {
125 let __receiver = <Deco_Skill as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126 {
127 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
128 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
129 panic!(
130 "unity: virtual slot {}
131 out of range (vtable len {}
132) on the runtime class behind {}
133 (method `{}
134`)",
135 6usize,
136 __vt.len(),
137 <Deco_Skill as ::unity::ClassIdentity>::NAME,
138 "OnEnterAttack",
139 )
140 });
141 let __inner: extern "C" fn(Deco_Skill, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
142 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
143 __inner(__receiver, __mi)
144 }
145 }
146 }
147 #[doc = "`OnEnemyDamage_(crate::unity_engine::animationevent::AnimationEvent)` overload"]
148 fn on_enemy_damage(self, ev: impl ::core::convert::Into<crate::unity_engine::animationevent::AnimationEvent>) -> () {
149 unsafe {
150 let __receiver = <Deco_Skill as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151 {
152 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
153 let __vi = *__vt.get(14usize).unwrap_or_else(|| {
154 panic!(
155 "unity: virtual slot {}
156 out of range (vtable len {}
157) on the runtime class behind {}
158 (method `{}
159`)",
160 14usize,
161 __vt.len(),
162 <Deco_Skill as ::unity::ClassIdentity>::NAME,
163 "OnEnemyDamage_",
164 )
165 });
166 let __inner: extern "C" fn(Deco_Skill, crate::unity_engine::animationevent::AnimationEvent, ::unity::OptionalMethod) -> () =
167 ::core::mem::transmute(__vi.method_ptr);
168 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
169 __inner(__receiver, ::core::convert::Into::into(ev), __mi)
170 }
171 }
172 }
173 #[doc = "`.ctor()` overload"]
174 fn ctor(self) -> () {
175 unsafe {
176 let __receiver = <Deco_Skill as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
177 ::unity::il2cpp_call!((::unity::module_base()+0x1ce9f10usize)as*mut u8,();
178(Deco_Skill)__receiver)
179 }
180 }
181}
182
183#[cfg(feature = "combat-deco_skill")]
184impl<__T: IDeco_Skill> IDeco_SkillMethods for __T {}
185
186#[cfg(feature = "combat-deco_skill")]
187impl Deco_Skill {
188 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
190 }
191
192 pub fn set_pair_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
194 }
195
196 pub fn is_available_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
198 }
199
200 pub fn on_enter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
202 }
203
204 pub fn on_enter_attack_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
206 }
207
208 pub fn on_enemy_damage_method_info() -> &'static ::unity::il2cpp::MethodInfo {
209 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
210 }
211
212 pub fn draw_skill_damages_method_info() -> &'static ::unity::il2cpp::MethodInfo {
213 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
214 }
215
216 pub fn is_subspace_method_info() -> &'static ::unity::il2cpp::MethodInfo {
217 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
218 }
219
220 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
221 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
222 }
223}
224
225#[cfg(feature = "combat-deco_skill")]
226impl Deco_Skill {
227 #[doc = "Direct (non-virtual) call to `Deco_Skill`'s own `get_Name`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
228 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
229 let __mi = Self::get_name_method_info();
230 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
231 __inner(this.into(), ::core::option::Option::None)
232 }
233
234 #[doc = "Direct (non-virtual) call to `Deco_Skill`'s own `OnEnter`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
235 pub unsafe fn on_enter(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
236 let __mi = Self::on_enter_method_info();
237 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
238 __inner(this.into(), ::core::option::Option::None)
239 }
240
241 #[doc = "Direct (non-virtual) call to `Deco_Skill`'s own `OnEnterAttack`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
242 pub unsafe fn on_enter_attack(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
243 let __mi = Self::on_enter_attack_method_info();
244 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
245 __inner(this.into(), ::core::option::Option::None)
246 }
247
248 #[doc = "Direct (non-virtual) call to `Deco_Skill`'s own `OnEnemyDamage_`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
249 pub unsafe fn on_enemy_damage(
250 this: impl ::core::convert::Into<::unity::IlInstance>,
251 ev: crate::unity_engine::animationevent::AnimationEvent,
252 ) -> () {
253 let __mi = Self::on_enemy_damage_method_info();
254 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::animationevent::AnimationEvent, ::unity::OptionalMethod) -> () =
255 ::core::mem::transmute(__mi.method_ptr);
256 __inner(this.into(), ev, ::core::option::Option::None)
257 }
258}
259
260#[cfg(feature = "combat-deco_skill")]
261impl Deco_Skill {
262 #[doc = "`.ctor()` — no args"]
263 pub fn new() -> Self {
264 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
265 panic!(
266 "{}
267::{}
268 failed to instantiate",
269 ::core::stringify!(Deco_Skill),
270 ::core::stringify!(new),
271 )
272 });
273 <Self as IDeco_SkillMethods>::ctor(this);
274 this
275 }
276}
277
278#[cfg(feature = "combat-deco_skill")]
279#[doc(hidden)]
280pub mod prelude {
281 pub use super::{Deco_Skill, IDeco_Skill, IDeco_SkillMethods};
282 #[cfg(feature = "combat-decorator")]
283 pub use crate::combat::decorator::IDecoratorMethods;
284 #[cfg(feature = "system-object")]
285 pub use crate::system::object::IObjectMethods;
286 pub use crate::{combat::decorator::IDecorator, system::object::IObject};
287}