1#[cfg(feature = "combat-magic-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 combat::launchbehaviour::{ILaunchBehaviour, LaunchBehaviour},
10 system::object::{IObject, Object},
11 unity_engine::{
12 behaviour::{Behaviour, IBehaviour},
13 component::{Component, IComponent},
14 monobehaviour::{IMonoBehaviour, MonoBehaviour},
15 object_2::{IObject_2, Object_2},
16 },
17 };
18
19 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/magic/Magic.md"))]
20 #[::unity::class(namespace = "Combat", name = "Magic")]
21 #[parent(crate::combat::launchbehaviour::LaunchBehaviour)]
22 pub struct Magic {
23 #[offset(56)]
24 #[rename(name = "BulletSettings")]
25 pub bullet_settings: crate::combat::magicbulletsettings::MagicBulletSettings,
26 #[offset(64)]
27 #[rename(name = "m_SignalProcessor")]
28 pub m_signal_processor: crate::combat::magicsignalprocessor::MagicSignalProcessor,
29 #[offset(96)]
30 #[rename(name = "Track開始時処理")]
31 pub track開始時処理: crate::combat::magicsignaltrack::MagicSignalTrack,
32 #[offset(104)]
33 #[rename(name = "Track魔法動作1処理")]
34 pub track魔法動作1処理: crate::combat::magicsignaltrack::MagicSignalTrack,
35 #[offset(112)]
36 #[rename(name = "Track魔法動作2処理")]
37 pub track魔法動作2処理: crate::combat::magicsignaltrack::MagicSignalTrack,
38 #[offset(120)]
39 #[rename(name = "Track魔法動作3処理")]
40 pub track魔法動作3処理: crate::combat::magicsignaltrack::MagicSignalTrack,
41 #[offset(128)]
42 #[rename(name = "Trackヒット時処理")]
43 pub trackヒット時処理: crate::combat::magicsignaltrack::MagicSignalTrack,
44 #[offset(136)]
45 #[rename(name = "Trackミス時処理")]
46 pub trackミス時処理: crate::combat::magicsignaltrack::MagicSignalTrack,
47 #[offset(144)]
48 #[rename(name = "Trackガード時処理")]
49 pub trackガード時処理: crate::combat::magicsignaltrack::MagicSignalTrack,
50 #[offset(152)]
51 #[rename(name = "Trackパリィ時処理")]
52 pub trackパリィ時処理: crate::combat::magicsignaltrack::MagicSignalTrack,
53 #[offset(160)]
54 #[rename(name = "Track衝突時処理")]
55 pub track衝突時処理: crate::combat::magicsignaltrack::MagicSignalTrack,
56 #[offset(168)]
57 #[rename(name = "Track自然消滅処理")]
58 pub track自然消滅処理: crate::combat::magicsignaltrack::MagicSignalTrack,
59 #[offset(176)]
60 #[rename(name = "Track打撃命中処理")]
61 pub track打撃命中処理: crate::combat::magicsignaltrack::MagicSignalTrack,
62 #[offset(184)]
63 #[rename(name = "_homeNode")]
64 pub home_node: crate::unity_engine::transform::Transform,
65 #[offset(192)]
66 #[rename(name = "_targetNode")]
67 pub target_node: crate::unity_engine::transform::Transform,
68 }
69}
70
71#[cfg(feature = "combat-magic-types")]
72pub use __types::*;
73
74#[cfg(feature = "combat-magic")]
75pub trait IMagicMethods: IMagic {
76 #[doc = "`get_InitialStartPos()` overload"]
77 fn get_initial_start_pos(self) -> crate::unity_engine::vector3::Vector3 {
78 unsafe {
79 let __receiver = <Magic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80 ::unity::il2cpp_call!((::unity::module_base()+0x1bf17d0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
81(Magic)__receiver)
82 }
83 }
84 #[doc = "`set_InitialStartPos(crate::unity_engine::vector3::Vector3)` overload"]
85 fn set_initial_start_pos(self, value: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
86 unsafe {
87 let __receiver = <Magic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88 ::unity::il2cpp_call!((::unity::module_base()+0x1bf17e0usize)as*mut u8,();
89(Magic)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(value))
90 }
91 }
92 #[doc = "`get_InitialEndPos()` overload"]
93 fn get_initial_end_pos(self) -> crate::unity_engine::vector3::Vector3 {
94 unsafe {
95 let __receiver = <Magic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96 ::unity::il2cpp_call!((::unity::module_base()+0x1bf17f0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
97(Magic)__receiver)
98 }
99 }
100 #[doc = "`set_InitialEndPos(crate::unity_engine::vector3::Vector3)` overload"]
101 fn set_initial_end_pos(self, value: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
102 unsafe {
103 let __receiver = <Magic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
104 ::unity::il2cpp_call!((::unity::module_base()+0x1bf1800usize)as*mut u8,();
105(Magic)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(value))
106 }
107 }
108 #[doc = "`Track(i32)` overload"]
109 fn track(self, i: impl ::core::convert::Into<i32>) -> crate::combat::magicsignaltrack::MagicSignalTrack {
110 unsafe {
111 let __receiver = <Magic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
112 ::unity::il2cpp_call!((::unity::module_base()+0x1bf1810usize)as*mut u8,crate::combat::magicsignaltrack::MagicSignalTrack;
113(Magic)__receiver,(i32)::core::convert::Into::into(i))
114 }
115 }
116 #[doc = "`get_HomeNode()` overload"]
117 fn get_home_node(self) -> crate::unity_engine::transform::Transform {
118 unsafe {
119 let __receiver = <Magic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120 ::unity::il2cpp_call!((::unity::module_base()+0x1bf18c0usize)as*mut u8,crate::unity_engine::transform::Transform;
121(Magic)__receiver)
122 }
123 }
124 #[doc = "`get_TargetNode()` overload"]
125 fn get_target_node(self) -> crate::unity_engine::transform::Transform {
126 unsafe {
127 let __receiver = <Magic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128 ::unity::il2cpp_call!((::unity::module_base()+0x1bf1980usize)as*mut u8,crate::unity_engine::transform::Transform;
129(Magic)__receiver)
130 }
131 }
132 #[doc = "`get_TargetPosition()` overload"]
133 fn get_target_position(self) -> crate::unity_engine::vector3::Vector3 {
134 unsafe {
135 let __receiver = <Magic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
136 ::unity::il2cpp_call!((::unity::module_base()+0x1bf1a40usize)as*mut u8,crate::unity_engine::vector3::Vector3;
137(Magic)__receiver)
138 }
139 }
140 #[doc = "`RecalcFlyingTime()` overload"]
141 fn recalc_flying_time(self) -> () {
142 unsafe {
143 let __receiver = <Magic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
144 {
145 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
146 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
147 panic!(
148 "unity: virtual slot {}
149 out of range (vtable len {}
150) on the runtime class behind {}
151 (method `{}
152`)",
153 7usize,
154 __vt.len(),
155 <Magic as ::unity::ClassIdentity>::NAME,
156 "RecalcFlyingTime",
157 )
158 });
159 let __inner: extern "C" fn(Magic, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
160 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
161 __inner(__receiver, __mi)
162 }
163 }
164 }
165 #[doc = "`OnCharacterSetup(crate::combat::character::Character)` overload"]
166 fn on_character_setup(self, owner: impl ::core::convert::Into<crate::combat::character::Character>) -> () {
167 unsafe {
168 let __receiver = <Magic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
169 {
170 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
171 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
172 panic!(
173 "unity: virtual slot {}
174 out of range (vtable len {}
175) on the runtime class behind {}
176 (method `{}
177`)",
178 4usize,
179 __vt.len(),
180 <Magic as ::unity::ClassIdentity>::NAME,
181 "OnCharacterSetup",
182 )
183 });
184 let __inner: extern "C" fn(Magic, crate::combat::character::Character, ::unity::OptionalMethod) -> () =
185 ::core::mem::transmute(__vi.method_ptr);
186 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
187 __inner(__receiver, ::core::convert::Into::into(owner), __mi)
188 }
189 }
190 }
191 #[doc = "`OnEnterAttack()` overload"]
192 fn on_enter_attack(self) -> () {
193 unsafe {
194 let __receiver = <Magic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
195 {
196 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
197 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
198 panic!(
199 "unity: virtual slot {}
200 out of range (vtable len {}
201) on the runtime class behind {}
202 (method `{}
203`)",
204 5usize,
205 __vt.len(),
206 <Magic as ::unity::ClassIdentity>::NAME,
207 "OnEnterAttack",
208 )
209 });
210 let __inner: extern "C" fn(Magic, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
211 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
212 __inner(__receiver, __mi)
213 }
214 }
215 }
216 #[doc = "`OnHitTimePredicted(f32)` overload"]
217 fn on_hit_time_predicted(self, world_hit_time: impl ::core::convert::Into<f32>) -> () {
218 unsafe {
219 let __receiver = <Magic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
220 {
221 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
222 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
223 panic!(
224 "unity: virtual slot {}
225 out of range (vtable len {}
226) on the runtime class behind {}
227 (method `{}
228`)",
229 6usize,
230 __vt.len(),
231 <Magic as ::unity::ClassIdentity>::NAME,
232 "OnHitTimePredicted",
233 )
234 });
235 let __inner: extern "C" fn(Magic, f32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
236 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
237 __inner(__receiver, ::core::convert::Into::into(world_hit_time), __mi)
238 }
239 }
240 }
241 #[doc = "`OnHitMagicSwordHit()` overload"]
242 fn on_hit_magic_sword_hit(self) -> () {
243 unsafe {
244 let __receiver = <Magic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
245 ::unity::il2cpp_call!((::unity::module_base()+0x1bf25b0usize)as*mut u8,();
246(Magic)__receiver)
247 }
248 }
249 #[doc = "`GetIceRockSkippedPrefab仕方なく()` overload"]
250 fn get_ice_rock_skipped_prefab仕方なく(self) -> crate::unity_engine::gameobject::GameObject {
251 unsafe {
252 let __receiver = <Magic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
253 ::unity::il2cpp_call!((::unity::module_base()+0x1bf2600usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
254(Magic)__receiver)
255 }
256 }
257 #[doc = "`.ctor()` overload"]
258 fn ctor(self) -> () {
259 unsafe {
260 let __receiver = <Magic as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
261 ::unity::il2cpp_call!((::unity::module_base()+0x1bf2810usize)as*mut u8,();
262(Magic)__receiver)
263 }
264 }
265}
266
267#[cfg(feature = "combat-magic")]
268impl<__T: IMagic> IMagicMethods for __T {}
269
270#[cfg(feature = "combat-magic")]
271impl Magic {
272 pub fn get_initial_start_pos_method_info() -> &'static ::unity::il2cpp::MethodInfo {
273 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
274 }
275
276 pub fn set_initial_start_pos_method_info() -> &'static ::unity::il2cpp::MethodInfo {
277 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
278 }
279
280 pub fn get_initial_end_pos_method_info() -> &'static ::unity::il2cpp::MethodInfo {
281 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
282 }
283
284 pub fn set_initial_end_pos_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
286 }
287
288 pub fn track_method_info() -> &'static ::unity::il2cpp::MethodInfo {
289 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
290 }
291
292 pub fn get_home_node_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
294 }
295
296 pub fn get_target_node_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
298 }
299
300 pub fn get_target_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
302 }
303
304 pub fn recalc_flying_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
306 }
307
308 pub fn on_character_setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
310 }
311
312 pub fn on_enter_attack_method_info() -> &'static ::unity::il2cpp::MethodInfo {
313 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
314 }
315
316 pub fn on_hit_time_predicted_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
318 }
319
320 pub fn on_hit_magic_sword_hit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
321 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
322 }
323
324 pub fn get_ice_rock_skipped_prefab仕方なく_method_info() -> &'static ::unity::il2cpp::MethodInfo {
325 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
326 }
327
328 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
329 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
330 }
331}
332
333#[cfg(feature = "combat-magic")]
334impl Magic {
335 #[doc = "Direct (non-virtual) call to `Magic`'s own `RecalcFlyingTime`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
336 pub unsafe fn recalc_flying_time(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
337 let __mi = Self::recalc_flying_time_method_info();
338 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
339 __inner(this.into(), ::core::option::Option::None)
340 }
341
342 #[doc = "Direct (non-virtual) call to `Magic`'s own `OnCharacterSetup`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
343 pub unsafe fn on_character_setup(this: impl ::core::convert::Into<::unity::IlInstance>, owner: crate::combat::character::Character) -> () {
344 let __mi = Self::on_character_setup_method_info();
345 let __inner: extern "C" fn(::unity::IlInstance, crate::combat::character::Character, ::unity::OptionalMethod) -> () =
346 ::core::mem::transmute(__mi.method_ptr);
347 __inner(this.into(), owner, ::core::option::Option::None)
348 }
349
350 #[doc = "Direct (non-virtual) call to `Magic`'s own `OnEnterAttack`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
351 pub unsafe fn on_enter_attack(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
352 let __mi = Self::on_enter_attack_method_info();
353 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
354 __inner(this.into(), ::core::option::Option::None)
355 }
356
357 #[doc = "Direct (non-virtual) call to `Magic`'s own `OnHitTimePredicted`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
358 pub unsafe fn on_hit_time_predicted(this: impl ::core::convert::Into<::unity::IlInstance>, world_hit_time: f32) -> () {
359 let __mi = Self::on_hit_time_predicted_method_info();
360 let __inner: extern "C" fn(::unity::IlInstance, f32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
361 __inner(this.into(), world_hit_time, ::core::option::Option::None)
362 }
363}
364
365#[cfg(feature = "combat-magic")]
366impl Magic {
367 #[doc = "`.ctor()` — no args"]
368 pub fn new() -> Self {
369 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
370 panic!(
371 "{}
372::{}
373 failed to instantiate",
374 ::core::stringify!(Magic),
375 ::core::stringify!(new),
376 )
377 });
378 <Self as IMagicMethods>::ctor(this);
379 this
380 }
381}
382
383#[cfg(feature = "combat-magic")]
384#[doc(hidden)]
385pub mod prelude {
386 pub use super::{IMagic, IMagicMethods, Magic};
387 #[cfg(feature = "combat-launchbehaviour")]
388 pub use crate::combat::launchbehaviour::ILaunchBehaviourMethods;
389 #[cfg(feature = "system-object")]
390 pub use crate::system::object::IObjectMethods;
391 #[cfg(feature = "unity_engine-behaviour")]
392 pub use crate::unity_engine::behaviour::IBehaviourMethods;
393 #[cfg(feature = "unity_engine-component")]
394 pub use crate::unity_engine::component::IComponentMethods;
395 #[cfg(feature = "unity_engine-monobehaviour")]
396 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
397 #[cfg(feature = "unity_engine-object_2")]
398 pub use crate::unity_engine::object_2::IObject_2Methods;
399 pub use crate::{
400 combat::launchbehaviour::ILaunchBehaviour,
401 system::object::IObject,
402 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
403 };
404}