Skip to main content

engage/generated/root/
akimagesourceparams.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-akimagesourceparams-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/root/akimagesourceparams/AkImageSourceParams.md"))]
11    #[::unity::class(namespace = "", name = "AkImageSourceParams")]
12    #[parent(crate::system::object::Object)]
13    pub struct AkImageSourceParams {
14        #[offset(16)]
15        #[rename(name = "swigCPtr")]
16        pub swig_c_ptr: ::unity::IntPtr,
17        #[offset(24)]
18        #[rename(name = "swigCMemOwn")]
19        pub swig_c_mem_own: bool,
20    }
21}
22
23#[cfg(feature = "root-akimagesourceparams-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-akimagesourceparams")]
27impl AkImageSourceParams {
28    #[doc = "`getCPtr(crate::root::akimagesourceparams::AkImageSourceParams)` overload"]
29    pub fn get_c_ptr(obj: impl ::core::convert::Into<crate::root::akimagesourceparams::AkImageSourceParams>) -> ::unity::IntPtr {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x2f1f750usize)as*mut u8, ::unity::IntPtr;
32(crate::root::akimagesourceparams::AkImageSourceParams)::core::convert::Into::into(obj))
33        }
34    }
35}
36
37#[cfg(feature = "root-akimagesourceparams")]
38pub trait IAkImageSourceParamsMethods: IAkImageSourceParams {
39    #[doc = "`.ctor(::unity::IntPtr, bool)` overload"]
40    fn ctor(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>, c_memory_own: impl ::core::convert::Into<bool>) -> () {
41        unsafe {
42            let __receiver = <AkImageSourceParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            ::unity::il2cpp_call!((::unity::module_base()+0x2f1f710usize)as*mut u8,();
44(AkImageSourceParams)__receiver,(::unity::IntPtr)::core::convert::Into::into(c_ptr),(bool)::core::convert::Into::into(c_memory_own))
45        }
46    }
47    #[doc = "`setCPtr(::unity::IntPtr)` overload"]
48    fn set_c_ptr(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
49        unsafe {
50            let __receiver = <AkImageSourceParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51            {
52                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
53                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
54                    panic!(
55                        "unity: virtual slot {}
56 out of range (vtable len {}
57) on the runtime class behind {}
58 (method `{}
59`)",
60                        5usize,
61                        __vt.len(),
62                        <AkImageSourceParams as ::unity::ClassIdentity>::NAME,
63                        "setCPtr",
64                    )
65                });
66                let __inner: extern "C" fn(AkImageSourceParams, ::unity::IntPtr, ::unity::OptionalMethod) -> () =
67                    ::core::mem::transmute(__vi.method_ptr);
68                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
69                __inner(__receiver, ::core::convert::Into::into(c_ptr), __mi)
70            }
71        }
72    }
73    #[doc = "`Finalize()` overload"]
74    fn finalize(self) -> () {
75        unsafe {
76            let __receiver = <AkImageSourceParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
77            {
78                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
79                let __vi = *__vt.get(1usize).unwrap_or_else(|| {
80                    panic!(
81                        "unity: virtual slot {}
82 out of range (vtable len {}
83) on the runtime class behind {}
84 (method `{}
85`)",
86                        1usize,
87                        __vt.len(),
88                        <AkImageSourceParams as ::unity::ClassIdentity>::NAME,
89                        "Finalize",
90                    )
91                });
92                let __inner: extern "C" fn(AkImageSourceParams, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
93                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
94                __inner(__receiver, __mi)
95            }
96        }
97    }
98    #[doc = "`Dispose()` overload"]
99    fn dispose(self) -> () {
100        unsafe {
101            let __receiver = <AkImageSourceParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
102            {
103                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
104                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
105                    panic!(
106                        "unity: virtual slot {}
107 out of range (vtable len {}
108) on the runtime class behind {}
109 (method `{}
110`)",
111                        6usize,
112                        __vt.len(),
113                        <AkImageSourceParams as ::unity::ClassIdentity>::NAME,
114                        "Dispose",
115                    )
116                });
117                let __inner: extern "C" fn(AkImageSourceParams, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
118                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
119                __inner(__receiver, __mi)
120            }
121        }
122    }
123    #[doc = "`.ctor()` overload"]
124    fn ctor_2(self) -> () {
125        unsafe {
126            let __receiver = <AkImageSourceParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127            ::unity::il2cpp_call!((::unity::module_base()+0x2f1f9e0usize)as*mut u8,();
128(AkImageSourceParams)__receiver)
129        }
130    }
131    #[doc = "`.ctor(crate::unity_engine::vector3::Vector3, f32, f32)` overload"]
132    fn ctor_3(
133        self,
134        in_source_position: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
135        in_f_distance_scaling_factor: impl ::core::convert::Into<f32>,
136        in_f_level: impl ::core::convert::Into<f32>,
137    ) -> () {
138        unsafe {
139            let __receiver = <AkImageSourceParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
140            ::unity::il2cpp_call!((::unity::module_base()+0x2f1fa70usize)as*mut u8,();
141(AkImageSourceParams)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(in_source_position),(f32)::core::convert::Into::into(in_f_distance_scaling_factor),(f32)::core::convert::Into::into(in_f_level))
142        }
143    }
144    #[doc = "`set_sourcePosition(crate::unity_engine::vector3::Vector3)` overload"]
145    fn set_source_position(self, value: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
146        unsafe {
147            let __receiver = <AkImageSourceParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
148            ::unity::il2cpp_call!((::unity::module_base()+0x2f1fb40usize)as*mut u8,();
149(AkImageSourceParams)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(value))
150        }
151    }
152    #[doc = "`get_sourcePosition()` overload"]
153    fn get_source_position(self) -> crate::unity_engine::vector3::Vector3 {
154        unsafe {
155            let __receiver = <AkImageSourceParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
156            ::unity::il2cpp_call!((::unity::module_base()+0x2f1fbe0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
157(AkImageSourceParams)__receiver)
158        }
159    }
160    #[doc = "`set_fDistanceScalingFactor(f32)` overload"]
161    fn set_f_distance_scaling_factor(self, value: impl ::core::convert::Into<f32>) -> () {
162        unsafe {
163            let __receiver = <AkImageSourceParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
164            ::unity::il2cpp_call!((::unity::module_base()+0x2f1fc50usize)as*mut u8,();
165(AkImageSourceParams)__receiver,(f32)::core::convert::Into::into(value))
166        }
167    }
168    #[doc = "`get_fDistanceScalingFactor()` overload"]
169    fn get_f_distance_scaling_factor(self) -> f32 {
170        unsafe {
171            let __receiver = <AkImageSourceParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
172            ::unity::il2cpp_call!((::unity::module_base()+0x2f1fcd0usize)as*mut u8,f32;
173(AkImageSourceParams)__receiver)
174        }
175    }
176    #[doc = "`set_fLevel(f32)` overload"]
177    fn set_f_level(self, value: impl ::core::convert::Into<f32>) -> () {
178        unsafe {
179            let __receiver = <AkImageSourceParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
180            ::unity::il2cpp_call!((::unity::module_base()+0x2f1fd40usize)as*mut u8,();
181(AkImageSourceParams)__receiver,(f32)::core::convert::Into::into(value))
182        }
183    }
184    #[doc = "`get_fLevel()` overload"]
185    fn get_f_level(self) -> f32 {
186        unsafe {
187            let __receiver = <AkImageSourceParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
188            ::unity::il2cpp_call!((::unity::module_base()+0x2f1fdc0usize)as*mut u8,f32;
189(AkImageSourceParams)__receiver)
190        }
191    }
192    #[doc = "`set_fDiffraction(f32)` overload"]
193    fn set_f_diffraction(self, value: impl ::core::convert::Into<f32>) -> () {
194        unsafe {
195            let __receiver = <AkImageSourceParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
196            ::unity::il2cpp_call!((::unity::module_base()+0x2f1fe30usize)as*mut u8,();
197(AkImageSourceParams)__receiver,(f32)::core::convert::Into::into(value))
198        }
199    }
200    #[doc = "`get_fDiffraction()` overload"]
201    fn get_f_diffraction(self) -> f32 {
202        unsafe {
203            let __receiver = <AkImageSourceParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
204            ::unity::il2cpp_call!((::unity::module_base()+0x2f1feb0usize)as*mut u8,f32;
205(AkImageSourceParams)__receiver)
206        }
207    }
208    #[doc = "`set_uDiffractionEmitterSide(u8)` overload"]
209    fn set_u_diffraction_emitter_side(self, value: impl ::core::convert::Into<u8>) -> () {
210        unsafe {
211            let __receiver = <AkImageSourceParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
212            ::unity::il2cpp_call!((::unity::module_base()+0x2f1ff20usize)as*mut u8,();
213(AkImageSourceParams)__receiver,(u8)::core::convert::Into::into(value))
214        }
215    }
216    #[doc = "`get_uDiffractionEmitterSide()` overload"]
217    fn get_u_diffraction_emitter_side(self) -> u8 {
218        unsafe {
219            let __receiver = <AkImageSourceParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
220            ::unity::il2cpp_call!((::unity::module_base()+0x2f1ffa0usize)as*mut u8,u8;
221(AkImageSourceParams)__receiver)
222        }
223    }
224    #[doc = "`set_uDiffractionListenerSide(u8)` overload"]
225    fn set_u_diffraction_listener_side(self, value: impl ::core::convert::Into<u8>) -> () {
226        unsafe {
227            let __receiver = <AkImageSourceParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
228            ::unity::il2cpp_call!((::unity::module_base()+0x2f20010usize)as*mut u8,();
229(AkImageSourceParams)__receiver,(u8)::core::convert::Into::into(value))
230        }
231    }
232    #[doc = "`get_uDiffractionListenerSide()` overload"]
233    fn get_u_diffraction_listener_side(self) -> u8 {
234        unsafe {
235            let __receiver = <AkImageSourceParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
236            ::unity::il2cpp_call!((::unity::module_base()+0x2f20090usize)as*mut u8,u8;
237(AkImageSourceParams)__receiver)
238        }
239    }
240}
241
242#[cfg(feature = "root-akimagesourceparams")]
243impl<__T: IAkImageSourceParams> IAkImageSourceParamsMethods for __T {}
244
245#[cfg(feature = "root-akimagesourceparams")]
246impl AkImageSourceParams {
247    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
249    }
250
251    pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
253    }
254
255    pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
257    }
258
259    pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
261    }
262
263    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
264        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
265    }
266
267    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
268        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
269    }
270
271    pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
272        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
273    }
274
275    pub fn set_source_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
276        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
277    }
278
279    pub fn get_source_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
280        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
281    }
282
283    pub fn set_f_distance_scaling_factor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
284        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
285    }
286
287    pub fn get_f_distance_scaling_factor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
288        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
289    }
290
291    pub fn set_f_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
292        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
293    }
294
295    pub fn get_f_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
296        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
297    }
298
299    pub fn set_f_diffraction_method_info() -> &'static ::unity::il2cpp::MethodInfo {
300        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
301    }
302
303    pub fn get_f_diffraction_method_info() -> &'static ::unity::il2cpp::MethodInfo {
304        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
305    }
306
307    pub fn set_u_diffraction_emitter_side_method_info() -> &'static ::unity::il2cpp::MethodInfo {
308        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
309    }
310
311    pub fn get_u_diffraction_emitter_side_method_info() -> &'static ::unity::il2cpp::MethodInfo {
312        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
313    }
314
315    pub fn set_u_diffraction_listener_side_method_info() -> &'static ::unity::il2cpp::MethodInfo {
316        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
317    }
318
319    pub fn get_u_diffraction_listener_side_method_info() -> &'static ::unity::il2cpp::MethodInfo {
320        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
321    }
322}
323
324#[cfg(feature = "root-akimagesourceparams")]
325impl AkImageSourceParams {
326    #[doc = "Direct (non-virtual) call to `AkImageSourceParams`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
327    pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
328        let __mi = Self::set_c_ptr_method_info();
329        let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
330        __inner(this.into(), c_ptr, ::core::option::Option::None)
331    }
332
333    #[doc = "Direct (non-virtual) call to `AkImageSourceParams`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
334    pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
335        let __mi = Self::finalize_method_info();
336        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
337        __inner(this.into(), ::core::option::Option::None)
338    }
339
340    #[doc = "Direct (non-virtual) call to `AkImageSourceParams`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
341    pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
342        let __mi = Self::dispose_method_info();
343        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
344        __inner(this.into(), ::core::option::Option::None)
345    }
346}
347
348#[cfg(feature = "root-akimagesourceparams")]
349impl AkImageSourceParams {
350    #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
351    pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
352        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
353            panic!(
354                "{}
355::{}
356 failed to instantiate",
357                ::core::stringify!(AkImageSourceParams),
358                ::core::stringify!(new),
359            )
360        });
361        <Self as IAkImageSourceParamsMethods>::ctor(this, c_ptr, c_memory_own);
362        this
363    }
364
365    #[doc = "`.ctor()` — no args"]
366    pub fn new_2() -> Self {
367        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
368            panic!(
369                "{}
370::{}
371 failed to instantiate",
372                ::core::stringify!(AkImageSourceParams),
373                ::core::stringify!(new_2),
374            )
375        });
376        <Self as IAkImageSourceParamsMethods>::ctor_2(this);
377        this
378    }
379
380    #[doc = "`.ctor(crate::unity_engine::vector3::Vector3, f32, f32)` — overload selector"]
381    pub fn new_3(in_source_position: crate::unity_engine::vector3::Vector3, in_f_distance_scaling_factor: f32, in_f_level: f32) -> Self {
382        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
383            panic!(
384                "{}
385::{}
386 failed to instantiate",
387                ::core::stringify!(AkImageSourceParams),
388                ::core::stringify!(new_3),
389            )
390        });
391        <Self as IAkImageSourceParamsMethods>::ctor_3(this, in_source_position, in_f_distance_scaling_factor, in_f_level);
392        this
393    }
394}
395
396#[cfg(feature = "root-akimagesourceparams")]
397#[doc(hidden)]
398pub mod prelude {
399    pub use super::{AkImageSourceParams, IAkImageSourceParams, IAkImageSourceParamsMethods};
400    pub use crate::system::object::IObject;
401    #[cfg(feature = "system-object")]
402    pub use crate::system::object::IObjectMethods;
403}