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