engage/generated/combat/
magicsignal.rs1#[cfg(feature = "combat-magicsignal-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/magicsignal/MagicSignal.md"))]
11 #[::unity::class(namespace = "Combat", name = "MagicSignal")]
12 #[parent(crate::system::object::Object)]
13 pub struct MagicSignal {
14 #[offset(16)]
15 #[rename(name = "level")]
16 pub level: crate::combat::magiclevels::MagicLevels,
17 #[offset(20)]
18 #[rename(name = "frame")]
19 pub frame: f32,
20 #[offset(24)]
21 #[rename(name = "command")]
22 pub command: crate::combat::magiccommand::MagicCommand,
23 #[offset(32)]
24 #[rename(name = "prefab")]
25 pub prefab: crate::unity_engine::gameobject::GameObject,
26 #[offset(40)]
27 #[rename(name = "parentName")]
28 pub parent_name: ::unity::Il2CppString,
29 #[offset(48)]
30 #[rename(name = "connect")]
31 pub connect: crate::combat::particleconnect::ParticleConnect,
32 #[offset(52)]
33 #[rename(name = "intParameter")]
34 pub int_parameter: i32,
35 #[offset(56)]
36 #[rename(name = "floatParameter")]
37 pub float_parameter: f32,
38 #[offset(64)]
39 #[rename(name = "stringParameter")]
40 pub string_parameter: ::unity::Il2CppString,
41 }
42}
43
44#[cfg(feature = "combat-magicsignal-types")]
45pub use __types::*;
46
47#[cfg(feature = "combat-magicsignal")]
48impl MagicSignal {
49 #[doc = "`op_Implicit(crate::combat::magicsignal::MagicSignal)` overload"]
50 pub fn op_implicit(a: impl ::core::convert::Into<crate::combat::magicsignal::MagicSignal>) -> bool {
51 unsafe {
52 ::unity::il2cpp_call!((::unity::module_base()+0x1bf3120usize)as*mut u8,bool;
53(crate::combat::magicsignal::MagicSignal)::core::convert::Into::into(a))
54 }
55 }
56}
57
58#[cfg(feature = "combat-magicsignal")]
59pub trait IMagicSignalMethods: IMagicSignal {
60 #[doc = "`get_Time()` overload"]
61 fn get_time(self) -> f32 {
62 unsafe {
63 let __receiver = <MagicSignal as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64 ::unity::il2cpp_call!((::unity::module_base()+0x1bf3130usize)as*mut u8,f32;
65(MagicSignal)__receiver)
66 }
67 }
68 #[doc = "`IsFiredBetween(f32, f32)` overload"]
69 fn is_fired_between(self, prev_time: impl ::core::convert::Into<f32>, curr_time: impl ::core::convert::Into<f32>) -> bool {
70 unsafe {
71 let __receiver = <MagicSignal as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72 ::unity::il2cpp_call!((::unity::module_base()+0x1bf3150usize)as*mut u8,bool;
73(MagicSignal)__receiver,(f32)::core::convert::Into::into(prev_time),(f32)::core::convert::Into::into(curr_time))
74 }
75 }
76 #[doc = "`.ctor()` overload"]
77 fn ctor(self) -> () {
78 unsafe {
79 let __receiver = <MagicSignal as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80 ::unity::il2cpp_call!((::unity::module_base()+0x1bf3180usize)as*mut u8,();
81(MagicSignal)__receiver)
82 }
83 }
84}
85
86#[cfg(feature = "combat-magicsignal")]
87impl<__T: IMagicSignal> IMagicSignalMethods for __T {}
88
89#[cfg(feature = "combat-magicsignal")]
90impl MagicSignal {
91 pub fn op_implicit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
92 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
93 }
94
95 pub fn get_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
96 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
97 }
98
99 pub fn is_fired_between_method_info() -> &'static ::unity::il2cpp::MethodInfo {
100 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
101 }
102
103 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
104 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
105 }
106}
107
108#[cfg(feature = "combat-magicsignal")]
109impl MagicSignal {
110 #[doc = "`.ctor()` — no args"]
111 pub fn new() -> Self {
112 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
113 panic!(
114 "{}
115::{}
116 failed to instantiate",
117 ::core::stringify!(MagicSignal),
118 ::core::stringify!(new),
119 )
120 });
121 <Self as IMagicSignalMethods>::ctor(this);
122 this
123 }
124}
125
126#[cfg(feature = "combat-magicsignal")]
127#[doc(hidden)]
128pub mod prelude {
129 pub use super::{IMagicSignal, IMagicSignalMethods, MagicSignal};
130 pub use crate::system::object::IObject;
131 #[cfg(feature = "system-object")]
132 pub use crate::system::object::IObjectMethods;
133}