engage/generated/unity_engine/vfx/
vfxspawnercallbacks.rs1#[cfg(feature = "unity_engine-vfx-vfxspawnercallbacks-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::object::{IObject, Object},
10 unity_engine::{
11 object_2::{IObject_2, Object_2},
12 scriptableobject::{IScriptableObject, ScriptableObject},
13 },
14 };
15
16 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/vfx/vfxspawnercallbacks/VFXSpawnerCallbacks.md"))]
17 #[::unity::class(namespace = "UnityEngine.VFX", name = "VFXSpawnerCallbacks")]
18 #[parent(crate::unity_engine::scriptableobject::ScriptableObject)]
19 pub struct VFXSpawnerCallbacks {}
20}
21
22#[cfg(feature = "unity_engine-vfx-vfxspawnercallbacks-types")]
23pub use __types::*;
24
25#[cfg(feature = "unity_engine-vfx-vfxspawnercallbacks")]
26pub trait IVFXSpawnerCallbacksMethods: IVFXSpawnerCallbacks {
27 #[doc = "`OnPlay(crate::unity_engine::vfx::vfxspawnerstate::VFXSpawnerState, crate::unity_engine::vfx::vfxexpressionvalues::VFXExpressionValues, crate::unity_engine::vfx::visualeffect::VisualEffect)` overload"]
28 fn on_play(
29 self,
30 state: impl ::core::convert::Into<crate::unity_engine::vfx::vfxspawnerstate::VFXSpawnerState>,
31 vfx_values: impl ::core::convert::Into<crate::unity_engine::vfx::vfxexpressionvalues::VFXExpressionValues>,
32 vfx_component: impl ::core::convert::Into<crate::unity_engine::vfx::visualeffect::VisualEffect>,
33 ) -> () {
34 unsafe {
35 let __receiver = <VFXSpawnerCallbacks as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
36 {
37 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
38 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
39 panic!(
40 "unity: virtual slot {}
41 out of range (vtable len {}
42) on the runtime class behind {}
43 (method `{}
44`)",
45 4usize,
46 __vt.len(),
47 <VFXSpawnerCallbacks as ::unity::ClassIdentity>::NAME,
48 "OnPlay",
49 )
50 });
51 let __inner: extern "C" fn(
52 VFXSpawnerCallbacks,
53 crate::unity_engine::vfx::vfxspawnerstate::VFXSpawnerState,
54 crate::unity_engine::vfx::vfxexpressionvalues::VFXExpressionValues,
55 crate::unity_engine::vfx::visualeffect::VisualEffect,
56 ::unity::OptionalMethod,
57 ) -> () = ::core::mem::transmute(__vi.method_ptr);
58 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
59 __inner(
60 __receiver,
61 ::core::convert::Into::into(state),
62 ::core::convert::Into::into(vfx_values),
63 ::core::convert::Into::into(vfx_component),
64 __mi,
65 )
66 }
67 }
68 }
69 #[doc = "`OnUpdate(crate::unity_engine::vfx::vfxspawnerstate::VFXSpawnerState, crate::unity_engine::vfx::vfxexpressionvalues::VFXExpressionValues, crate::unity_engine::vfx::visualeffect::VisualEffect)` overload"]
70 fn on_update(
71 self,
72 state: impl ::core::convert::Into<crate::unity_engine::vfx::vfxspawnerstate::VFXSpawnerState>,
73 vfx_values: impl ::core::convert::Into<crate::unity_engine::vfx::vfxexpressionvalues::VFXExpressionValues>,
74 vfx_component: impl ::core::convert::Into<crate::unity_engine::vfx::visualeffect::VisualEffect>,
75 ) -> () {
76 unsafe {
77 let __receiver = <VFXSpawnerCallbacks as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78 {
79 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
80 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
81 panic!(
82 "unity: virtual slot {}
83 out of range (vtable len {}
84) on the runtime class behind {}
85 (method `{}
86`)",
87 5usize,
88 __vt.len(),
89 <VFXSpawnerCallbacks as ::unity::ClassIdentity>::NAME,
90 "OnUpdate",
91 )
92 });
93 let __inner: extern "C" fn(
94 VFXSpawnerCallbacks,
95 crate::unity_engine::vfx::vfxspawnerstate::VFXSpawnerState,
96 crate::unity_engine::vfx::vfxexpressionvalues::VFXExpressionValues,
97 crate::unity_engine::vfx::visualeffect::VisualEffect,
98 ::unity::OptionalMethod,
99 ) -> () = ::core::mem::transmute(__vi.method_ptr);
100 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
101 __inner(
102 __receiver,
103 ::core::convert::Into::into(state),
104 ::core::convert::Into::into(vfx_values),
105 ::core::convert::Into::into(vfx_component),
106 __mi,
107 )
108 }
109 }
110 }
111 #[doc = "`OnStop(crate::unity_engine::vfx::vfxspawnerstate::VFXSpawnerState, crate::unity_engine::vfx::vfxexpressionvalues::VFXExpressionValues, crate::unity_engine::vfx::visualeffect::VisualEffect)` overload"]
112 fn on_stop(
113 self,
114 state: impl ::core::convert::Into<crate::unity_engine::vfx::vfxspawnerstate::VFXSpawnerState>,
115 vfx_values: impl ::core::convert::Into<crate::unity_engine::vfx::vfxexpressionvalues::VFXExpressionValues>,
116 vfx_component: impl ::core::convert::Into<crate::unity_engine::vfx::visualeffect::VisualEffect>,
117 ) -> () {
118 unsafe {
119 let __receiver = <VFXSpawnerCallbacks as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120 {
121 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
122 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
123 panic!(
124 "unity: virtual slot {}
125 out of range (vtable len {}
126) on the runtime class behind {}
127 (method `{}
128`)",
129 6usize,
130 __vt.len(),
131 <VFXSpawnerCallbacks as ::unity::ClassIdentity>::NAME,
132 "OnStop",
133 )
134 });
135 let __inner: extern "C" fn(
136 VFXSpawnerCallbacks,
137 crate::unity_engine::vfx::vfxspawnerstate::VFXSpawnerState,
138 crate::unity_engine::vfx::vfxexpressionvalues::VFXExpressionValues,
139 crate::unity_engine::vfx::visualeffect::VisualEffect,
140 ::unity::OptionalMethod,
141 ) -> () = ::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(
144 __receiver,
145 ::core::convert::Into::into(state),
146 ::core::convert::Into::into(vfx_values),
147 ::core::convert::Into::into(vfx_component),
148 __mi,
149 )
150 }
151 }
152 }
153 #[doc = "`.ctor()` overload"]
154 fn ctor(self) -> () {
155 unsafe {
156 let __receiver = <VFXSpawnerCallbacks as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
157 ::unity::il2cpp_call!((::unity::module_base()+0x3f448a0usize)as*mut u8,();
158(VFXSpawnerCallbacks)__receiver)
159 }
160 }
161}
162
163#[cfg(feature = "unity_engine-vfx-vfxspawnercallbacks")]
164impl<__T: IVFXSpawnerCallbacks> IVFXSpawnerCallbacksMethods for __T {}
165
166#[cfg(feature = "unity_engine-vfx-vfxspawnercallbacks")]
167impl VFXSpawnerCallbacks {
168 pub fn on_play_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
170 }
171
172 pub fn on_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
174 }
175
176 pub fn on_stop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
178 }
179
180 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
182 }
183}
184
185#[cfg(feature = "unity_engine-vfx-vfxspawnercallbacks")]
186impl VFXSpawnerCallbacks {
187 #[doc = "Direct (non-virtual) call to `VFXSpawnerCallbacks`'s own `OnPlay`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
188 pub unsafe fn on_play(
189 this: impl ::core::convert::Into<::unity::IlInstance>,
190 state: crate::unity_engine::vfx::vfxspawnerstate::VFXSpawnerState,
191 vfx_values: crate::unity_engine::vfx::vfxexpressionvalues::VFXExpressionValues,
192 vfx_component: crate::unity_engine::vfx::visualeffect::VisualEffect,
193 ) -> () {
194 let __mi = Self::on_play_method_info();
195 let __inner: extern "C" fn(
196 ::unity::IlInstance,
197 crate::unity_engine::vfx::vfxspawnerstate::VFXSpawnerState,
198 crate::unity_engine::vfx::vfxexpressionvalues::VFXExpressionValues,
199 crate::unity_engine::vfx::visualeffect::VisualEffect,
200 ::unity::OptionalMethod,
201 ) -> () = ::core::mem::transmute(__mi.method_ptr);
202 __inner(this.into(), state, vfx_values, vfx_component, ::core::option::Option::None)
203 }
204
205 #[doc = "Direct (non-virtual) call to `VFXSpawnerCallbacks`'s own `OnUpdate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
206 pub unsafe fn on_update(
207 this: impl ::core::convert::Into<::unity::IlInstance>,
208 state: crate::unity_engine::vfx::vfxspawnerstate::VFXSpawnerState,
209 vfx_values: crate::unity_engine::vfx::vfxexpressionvalues::VFXExpressionValues,
210 vfx_component: crate::unity_engine::vfx::visualeffect::VisualEffect,
211 ) -> () {
212 let __mi = Self::on_update_method_info();
213 let __inner: extern "C" fn(
214 ::unity::IlInstance,
215 crate::unity_engine::vfx::vfxspawnerstate::VFXSpawnerState,
216 crate::unity_engine::vfx::vfxexpressionvalues::VFXExpressionValues,
217 crate::unity_engine::vfx::visualeffect::VisualEffect,
218 ::unity::OptionalMethod,
219 ) -> () = ::core::mem::transmute(__mi.method_ptr);
220 __inner(this.into(), state, vfx_values, vfx_component, ::core::option::Option::None)
221 }
222
223 #[doc = "Direct (non-virtual) call to `VFXSpawnerCallbacks`'s own `OnStop`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
224 pub unsafe fn on_stop(
225 this: impl ::core::convert::Into<::unity::IlInstance>,
226 state: crate::unity_engine::vfx::vfxspawnerstate::VFXSpawnerState,
227 vfx_values: crate::unity_engine::vfx::vfxexpressionvalues::VFXExpressionValues,
228 vfx_component: crate::unity_engine::vfx::visualeffect::VisualEffect,
229 ) -> () {
230 let __mi = Self::on_stop_method_info();
231 let __inner: extern "C" fn(
232 ::unity::IlInstance,
233 crate::unity_engine::vfx::vfxspawnerstate::VFXSpawnerState,
234 crate::unity_engine::vfx::vfxexpressionvalues::VFXExpressionValues,
235 crate::unity_engine::vfx::visualeffect::VisualEffect,
236 ::unity::OptionalMethod,
237 ) -> () = ::core::mem::transmute(__mi.method_ptr);
238 __inner(this.into(), state, vfx_values, vfx_component, ::core::option::Option::None)
239 }
240}
241
242#[cfg(feature = "unity_engine-vfx-vfxspawnercallbacks")]
243impl VFXSpawnerCallbacks {
244 #[doc = "`.ctor()` — no args"]
245 pub fn new() -> Self {
246 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
247 panic!(
248 "{}
249::{}
250 failed to instantiate",
251 ::core::stringify!(VFXSpawnerCallbacks),
252 ::core::stringify!(new),
253 )
254 });
255 <Self as IVFXSpawnerCallbacksMethods>::ctor(this);
256 this
257 }
258}
259
260#[cfg(feature = "unity_engine-vfx-vfxspawnercallbacks")]
261#[doc(hidden)]
262pub mod prelude {
263 pub use super::{IVFXSpawnerCallbacks, IVFXSpawnerCallbacksMethods, VFXSpawnerCallbacks};
264 #[cfg(feature = "system-object")]
265 pub use crate::system::object::IObjectMethods;
266 #[cfg(feature = "unity_engine-object_2")]
267 pub use crate::unity_engine::object_2::IObject_2Methods;
268 #[cfg(feature = "unity_engine-scriptableobject")]
269 pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
270 pub use crate::{
271 system::object::IObject,
272 unity_engine::{object_2::IObject_2, scriptableobject::IScriptableObject},
273 };
274}