1#[cfg(feature = "app-effectshoot-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::{
10 delegate::{Delegate, IDelegate},
11 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
12 object::{IObject, Object},
13 },
14 unity_engine::{
15 behaviour::{Behaviour, IBehaviour},
16 component::{Component, IComponent},
17 monobehaviour::{IMonoBehaviour, MonoBehaviour},
18 object_2::{IObject_2, Object_2},
19 },
20 };
21
22 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/effectshoot/EffectShoot.md"))]
23 #[::unity::class(namespace = "App", name = "EffectShoot")]
24 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
25 pub struct EffectShoot {
26 #[offset(24)]
27 #[rename(name = "m_Start")]
28 pub m_start: crate::unity_engine::vector3::Vector3,
29 #[offset(36)]
30 #[rename(name = "m_Goal")]
31 pub m_goal: crate::unity_engine::vector3::Vector3,
32 #[offset(48)]
33 #[rename(name = "m_Time")]
34 pub m_time: f32,
35 #[offset(52)]
36 #[rename(name = "m_TotalTime")]
37 pub m_total_time: f32,
38 #[offset(56)]
39 #[rename(name = "m_DeltaTime")]
40 pub m_delta_time: f32,
41 #[offset(60)]
42 #[rename(name = "m_Position0")]
43 pub m_position0: crate::unity_engine::vector3::Vector3,
44 #[offset(72)]
45 #[rename(name = "m_Position1")]
46 pub m_position1: crate::unity_engine::vector3::Vector3,
47 #[offset(84)]
48 #[rename(name = "m_Position2")]
49 pub m_position2: crate::unity_engine::vector3::Vector3,
50 #[offset(96)]
51 #[rename(name = "m_Position3")]
52 pub m_position3: crate::unity_engine::vector3::Vector3,
53 #[offset(112)]
54 #[rename(name = "m_Callback")]
55 pub m_callback: crate::app::effectshoot::EffectShoot_Callback,
56 #[offset(120)]
57 #[rename(name = "m_ParticleSystems")]
58 pub m_particle_systems: ::unity::Array<crate::unity_engine::particlesystem::ParticleSystem>,
59 }
60
61 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/effectshoot/EffectShoot_Callback.md"))]
62 #[::unity::class(namespace = "App", name = "EffectShoot.Callback")]
63 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
64 pub struct EffectShoot_Callback {}
65}
66
67#[cfg(feature = "app-effectshoot-types")]
68pub use __types::*;
69
70#[cfg(feature = "app-effectshoot")]
71pub trait IEffectShootMethods: IEffectShoot {
72 #[doc = "`Update()` overload"]
73 fn update(self) -> () {
74 unsafe {
75 let __receiver = <EffectShoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76 ::unity::il2cpp_call!((::unity::module_base()+0x22d9bc0usize)as*mut u8,();
77(EffectShoot)__receiver)
78 }
79 }
80 #[doc = "`Shoot()` overload"]
81 fn shoot(self) -> () {
82 unsafe {
83 let __receiver = <EffectShoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84 ::unity::il2cpp_call!((::unity::module_base()+0x22d9ed0usize)as*mut u8,();
85(EffectShoot)__receiver)
86 }
87 }
88 #[doc = "`Shoot(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, f32, crate::app::effectshoot::EffectShoot_Callback)` overload"]
89 fn shoot_2(
90 self,
91 start: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
92 goal: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
93 time: impl ::core::convert::Into<f32>,
94 callback: impl ::core::convert::Into<crate::app::effectshoot::EffectShoot_Callback>,
95 ) -> () {
96 unsafe {
97 let __receiver = <EffectShoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98 ::unity::il2cpp_call!((::unity::module_base()+0x22da100usize)as*mut u8,();
99(EffectShoot)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(start),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(goal),(f32)::core::convert::Into::into(time),(crate::app::effectshoot::EffectShoot_Callback)::core::convert::Into::into(callback))
100 }
101 }
102 #[doc = "`SetLoop(bool)` overload"]
103 fn set_loop(self, enable: impl ::core::convert::Into<bool>) -> () {
104 unsafe {
105 let __receiver = <EffectShoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106 ::unity::il2cpp_call!((::unity::module_base()+0x22d9de0usize)as*mut u8,();
107(EffectShoot)__receiver,(bool)::core::convert::Into::into(enable))
108 }
109 }
110 #[doc = "`Stop()` overload"]
111 fn stop(self) -> () {
112 unsafe {
113 let __receiver = <EffectShoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
114 ::unity::il2cpp_call!((::unity::module_base()+0x22da150usize)as*mut u8,();
115(EffectShoot)__receiver)
116 }
117 }
118 #[doc = "`.ctor()` overload"]
119 fn ctor(self) -> () {
120 unsafe {
121 let __receiver = <EffectShoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
122 ::unity::il2cpp_call!((::unity::module_base()+0x22da160usize)as*mut u8,();
123(EffectShoot)__receiver)
124 }
125 }
126}
127
128#[cfg(feature = "app-effectshoot")]
129impl<__T: IEffectShoot> IEffectShootMethods for __T {}
130
131#[cfg(feature = "app-effectshoot")]
132impl EffectShoot {
133 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
134 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
135 }
136
137 pub fn shoot_method_info() -> &'static ::unity::il2cpp::MethodInfo {
138 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
139 }
140
141 pub fn shoot_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
142 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
143 }
144
145 pub fn set_loop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
146 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
147 }
148
149 pub fn stop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
150 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
151 }
152
153 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
154 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
155 }
156}
157
158#[cfg(feature = "app-effectshoot")]
159impl EffectShoot {
160 #[doc = "`.ctor()` — no args"]
161 pub fn new() -> Self {
162 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
163 panic!(
164 "{}
165::{}
166 failed to instantiate",
167 ::core::stringify!(EffectShoot),
168 ::core::stringify!(new),
169 )
170 });
171 <Self as IEffectShootMethods>::ctor(this);
172 this
173 }
174}
175
176#[cfg(feature = "app-effectshoot")]
177pub trait IEffectShoot_CallbackMethods: IEffectShoot_Callback {
178 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
179 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
180 unsafe {
181 let __receiver = <EffectShoot_Callback as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
182 ::unity::il2cpp_call!((::unity::module_base()+0x1bd6600usize)as*mut u8,();
183(EffectShoot_Callback)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
184 }
185 }
186 #[doc = "`Invoke(crate::app::effectshoot::EffectShoot)` overload"]
187 fn invoke(self, shoot: impl ::core::convert::Into<crate::app::effectshoot::EffectShoot>) -> () {
188 unsafe {
189 let __receiver = <EffectShoot_Callback as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
190 {
191 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
192 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
193 panic!(
194 "unity: virtual slot {}
195 out of range (vtable len {}
196) on the runtime class behind {}
197 (method `{}
198`)",
199 13usize,
200 __vt.len(),
201 <EffectShoot_Callback as ::unity::ClassIdentity>::NAME,
202 "Invoke",
203 )
204 });
205 let __inner: extern "C" fn(EffectShoot_Callback, crate::app::effectshoot::EffectShoot, ::unity::OptionalMethod) -> () =
206 ::core::mem::transmute(__vi.method_ptr);
207 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
208 __inner(__receiver, ::core::convert::Into::into(shoot), __mi)
209 }
210 }
211 }
212}
213
214#[cfg(feature = "app-effectshoot")]
215impl<__T: IEffectShoot_Callback> IEffectShoot_CallbackMethods for __T {}
216
217#[cfg(feature = "app-effectshoot")]
218impl EffectShoot_Callback {
219 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
220 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
221 }
222
223 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
224 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
225 }
226}
227
228#[cfg(feature = "app-effectshoot")]
229impl EffectShoot_Callback {
230 #[doc = "Direct (non-virtual) call to `EffectShoot_Callback`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
231 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, shoot: crate::app::effectshoot::EffectShoot) -> () {
232 let __mi = Self::invoke_method_info();
233 let __inner: extern "C" fn(::unity::IlInstance, crate::app::effectshoot::EffectShoot, ::unity::OptionalMethod) -> () =
234 ::core::mem::transmute(__mi.method_ptr);
235 __inner(this.into(), shoot, ::core::option::Option::None)
236 }
237}
238
239#[cfg(feature = "app-effectshoot")]
240impl EffectShoot_Callback {
241 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
242 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
243 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
244 panic!(
245 "{}
246::{}
247 failed to instantiate",
248 ::core::stringify!(EffectShoot_Callback),
249 ::core::stringify!(new),
250 )
251 });
252 <Self as IEffectShoot_CallbackMethods>::ctor(this, object, method);
253 this
254 }
255}
256
257#[cfg(feature = "app-effectshoot")]
258#[doc(hidden)]
259pub mod prelude {
260 pub use super::{EffectShoot, EffectShoot_Callback, IEffectShoot, IEffectShootMethods, IEffectShoot_Callback, IEffectShoot_CallbackMethods};
261 #[cfg(feature = "system-delegate")]
262 pub use crate::system::delegate::IDelegateMethods;
263 #[cfg(feature = "system-multicastdelegate")]
264 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
265 #[cfg(feature = "system-object")]
266 pub use crate::system::object::IObjectMethods;
267 #[cfg(feature = "unity_engine-behaviour")]
268 pub use crate::unity_engine::behaviour::IBehaviourMethods;
269 #[cfg(feature = "unity_engine-component")]
270 pub use crate::unity_engine::component::IComponentMethods;
271 #[cfg(feature = "unity_engine-monobehaviour")]
272 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
273 #[cfg(feature = "unity_engine-object_2")]
274 pub use crate::unity_engine::object_2::IObject_2Methods;
275 pub use crate::{
276 system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
277 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
278 };
279}