Skip to main content

engage/generated/unity_engine/vfx/
vfxeventattribute.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-vfx-vfxeventattribute-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/unity_engine/vfx/vfxeventattribute/VFXEventAttribute.md"))]
11    #[::unity::class(namespace = "UnityEngine.VFX", name = "VFXEventAttribute")]
12    #[parent(crate::system::object::Object)]
13    pub struct VFXEventAttribute {
14        #[offset(16)]
15        #[rename(name = "m_Ptr")]
16        pub m_ptr: ::unity::IntPtr,
17        #[offset(24)]
18        #[rename(name = "m_Owner")]
19        pub m_owner: bool,
20        #[offset(32)]
21        #[rename(name = "m_VfxAsset")]
22        pub m_vfx_asset: crate::unity_engine::vfx::visualeffectasset::VisualEffectAsset,
23    }
24}
25
26#[cfg(feature = "unity_engine-vfx-vfxeventattribute-types")]
27pub use __types::*;
28
29#[cfg(feature = "unity_engine-vfx-vfxeventattribute")]
30impl VFXEventAttribute {
31    #[doc = "`Internal_Create()` overload"]
32    pub fn internal_create() -> ::unity::IntPtr {
33        unsafe {
34            ::unity::il2cpp_call!((::unity::module_base()+0x3f443b0usize)as*mut u8, ::unity::IntPtr;
35            )
36        }
37    }
38
39    #[doc = "`Internal_InstanciateVFXEventAttribute(crate::unity_engine::vfx::visualeffectasset::VisualEffectAsset)` overload"]
40    pub fn internal_instanciate_vfx_event_attribute(
41        vfx_asset: impl ::core::convert::Into<crate::unity_engine::vfx::visualeffectasset::VisualEffectAsset>,
42    ) -> crate::unity_engine::vfx::vfxeventattribute::VFXEventAttribute {
43        unsafe {
44            ::unity::il2cpp_call!((::unity::module_base()+0x3f443f0usize)as*mut u8,crate::unity_engine::vfx::vfxeventattribute::VFXEventAttribute;
45(crate::unity_engine::vfx::visualeffectasset::VisualEffectAsset)::core::convert::Into::into(vfx_asset))
46        }
47    }
48
49    #[doc = "`Internal_Destroy(::unity::IntPtr)` overload"]
50    pub fn internal_destroy(ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
51        unsafe {
52            ::unity::il2cpp_call!((::unity::module_base()+0x3f445c0usize)as*mut u8,();
53(::unity::IntPtr)::core::convert::Into::into(ptr))
54        }
55    }
56}
57
58#[cfg(feature = "unity_engine-vfx-vfxeventattribute")]
59pub trait IVFXEventAttributeMethods: IVFXEventAttribute {
60    #[doc = "`.ctor(::unity::IntPtr, bool, crate::unity_engine::vfx::visualeffectasset::VisualEffectAsset)` overload"]
61    fn ctor(
62        self,
63        ptr: impl ::core::convert::Into<::unity::IntPtr>,
64        owner: impl ::core::convert::Into<bool>,
65        vfx_asset: impl ::core::convert::Into<crate::unity_engine::vfx::visualeffectasset::VisualEffectAsset>,
66    ) -> () {
67        unsafe {
68            let __receiver = <VFXEventAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
69            ::unity::il2cpp_call!((::unity::module_base()+0x3f44360usize)as*mut u8,();
70(VFXEventAttribute)__receiver,(::unity::IntPtr)::core::convert::Into::into(ptr),(bool)::core::convert::Into::into(owner),(crate::unity_engine::vfx::visualeffectasset::VisualEffectAsset)::core::convert::Into::into(vfx_asset))
71        }
72    }
73    #[doc = "`Internal_InitFromAsset(crate::unity_engine::vfx::visualeffectasset::VisualEffectAsset)` overload"]
74    fn internal_init_from_asset(self, vfx_asset: impl ::core::convert::Into<crate::unity_engine::vfx::visualeffectasset::VisualEffectAsset>) -> () {
75        unsafe {
76            let __receiver = <VFXEventAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
77            ::unity::il2cpp_call!((::unity::module_base()+0x3f444d0usize)as*mut u8,();
78(VFXEventAttribute)__receiver,(crate::unity_engine::vfx::visualeffectasset::VisualEffectAsset)::core::convert::Into::into(vfx_asset))
79        }
80    }
81    #[doc = "`Release()` overload"]
82    fn release(self) -> () {
83        unsafe {
84            let __receiver = <VFXEventAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
85            ::unity::il2cpp_call!((::unity::module_base()+0x3f44520usize)as*mut u8,();
86(VFXEventAttribute)__receiver)
87        }
88    }
89    #[doc = "`Finalize()` overload"]
90    fn finalize(self) -> () {
91        unsafe {
92            let __receiver = <VFXEventAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
93            {
94                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
95                let __vi = *__vt.get(1usize).unwrap_or_else(|| {
96                    panic!(
97                        "unity: virtual slot {}
98 out of range (vtable len {}
99) on the runtime class behind {}
100 (method `{}
101`)",
102                        1usize,
103                        __vt.len(),
104                        <VFXEventAttribute as ::unity::ClassIdentity>::NAME,
105                        "Finalize",
106                    )
107                });
108                let __inner: extern "C" fn(VFXEventAttribute, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
109                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
110                __inner(__receiver, __mi)
111            }
112        }
113    }
114    #[doc = "`Dispose()` overload"]
115    fn dispose(self) -> () {
116        unsafe {
117            let __receiver = <VFXEventAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
118            {
119                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
120                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
121                    panic!(
122                        "unity: virtual slot {}
123 out of range (vtable len {}
124) on the runtime class behind {}
125 (method `{}
126`)",
127                        4usize,
128                        __vt.len(),
129                        <VFXEventAttribute as ::unity::ClassIdentity>::NAME,
130                        "Dispose",
131                    )
132                });
133                let __inner: extern "C" fn(VFXEventAttribute, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
134                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
135                __inner(__receiver, __mi)
136            }
137        }
138    }
139}
140
141#[cfg(feature = "unity_engine-vfx-vfxeventattribute")]
142impl<__T: IVFXEventAttribute> IVFXEventAttributeMethods for __T {}
143
144#[cfg(feature = "unity_engine-vfx-vfxeventattribute")]
145impl VFXEventAttribute {
146    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
148    }
149
150    pub fn internal_create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
151        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
152    }
153
154    pub fn internal_instanciate_vfx_event_attribute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
155        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
156    }
157
158    pub fn internal_init_from_asset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
160    }
161
162    pub fn release_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
164    }
165
166    pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
168    }
169
170    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
171        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
172    }
173
174    pub fn internal_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
175        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
176    }
177}
178
179#[cfg(feature = "unity_engine-vfx-vfxeventattribute")]
180impl VFXEventAttribute {
181    #[doc = "Direct (non-virtual) call to `VFXEventAttribute`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
182    pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
183        let __mi = Self::finalize_method_info();
184        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
185        __inner(this.into(), ::core::option::Option::None)
186    }
187
188    #[doc = "Direct (non-virtual) call to `VFXEventAttribute`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
189    pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
190        let __mi = Self::dispose_method_info();
191        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
192        __inner(this.into(), ::core::option::Option::None)
193    }
194}
195
196#[cfg(feature = "unity_engine-vfx-vfxeventattribute")]
197impl VFXEventAttribute {
198    #[doc = "`.ctor(::unity::IntPtr, bool, crate::unity_engine::vfx::visualeffectasset::VisualEffectAsset)` — overload selector"]
199    pub fn new(ptr: ::unity::IntPtr, owner: bool, vfx_asset: crate::unity_engine::vfx::visualeffectasset::VisualEffectAsset) -> Self {
200        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
201            panic!(
202                "{}
203::{}
204 failed to instantiate",
205                ::core::stringify!(VFXEventAttribute),
206                ::core::stringify!(new),
207            )
208        });
209        <Self as IVFXEventAttributeMethods>::ctor(this, ptr, owner, vfx_asset);
210        this
211    }
212}
213
214#[cfg(feature = "unity_engine-vfx-vfxeventattribute")]
215#[doc(hidden)]
216pub mod prelude {
217    pub use super::{IVFXEventAttribute, IVFXEventAttributeMethods, VFXEventAttribute};
218    pub use crate::system::object::IObject;
219    #[cfg(feature = "system-object")]
220    pub use crate::system::object::IObjectMethods;
221}