Skip to main content

engage/generated/root/
aksourcesettingsarray.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-aksourcesettingsarray-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        root::akbasearray_1::{AkBaseArray_1, IAkBaseArray_1},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/aksourcesettingsarray/AkSourceSettingsArray.md"))]
14    #[::unity::class(namespace = "", name = "AkSourceSettingsArray")]
15    #[parent(crate::root::akbasearray_1::AkBaseArray_1<crate::root::aksourcesettings::AkSourceSettings>)]
16    pub struct AkSourceSettingsArray {}
17}
18
19#[cfg(feature = "root-aksourcesettingsarray-types")]
20pub use __types::*;
21
22#[cfg(feature = "root-aksourcesettingsarray")]
23pub trait IAkSourceSettingsArrayMethods: IAkSourceSettingsArray {
24    #[doc = "`.ctor(i32)` overload"]
25    fn ctor(self, count: impl ::core::convert::Into<i32>) -> () {
26        unsafe {
27            let __receiver = <AkSourceSettingsArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
28            ::unity::il2cpp_call!((::unity::module_base()+0x1d21b30usize)as*mut u8,();
29(AkSourceSettingsArray)__receiver,(i32)::core::convert::Into::into(count))
30        }
31    }
32    #[doc = "`get_StructureSize()` overload"]
33    fn get_structure_size(self) -> i32 {
34        unsafe {
35            let __receiver = <AkSourceSettingsArray 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(6usize).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                        6usize,
46                        __vt.len(),
47                        <AkSourceSettingsArray as ::unity::ClassIdentity>::NAME,
48                        "get_StructureSize",
49                    )
50                });
51                let __inner: extern "C" fn(AkSourceSettingsArray, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
52                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
53                __inner(__receiver, __mi)
54            }
55        }
56    }
57    #[doc = "`DefaultConstructAtIntPtr(::unity::IntPtr)` overload"]
58    fn default_construct_at_int_ptr(self, address: impl ::core::convert::Into<::unity::IntPtr>) -> () {
59        unsafe {
60            let __receiver = <AkSourceSettingsArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
61            {
62                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
63                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
64                    panic!(
65                        "unity: virtual slot {}
66 out of range (vtable len {}
67) on the runtime class behind {}
68 (method `{}
69`)",
70                        7usize,
71                        __vt.len(),
72                        <AkSourceSettingsArray as ::unity::ClassIdentity>::NAME,
73                        "DefaultConstructAtIntPtr",
74                    )
75                });
76                let __inner: extern "C" fn(AkSourceSettingsArray, ::unity::IntPtr, ::unity::OptionalMethod) -> () =
77                    ::core::mem::transmute(__vi.method_ptr);
78                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
79                __inner(__receiver, ::core::convert::Into::into(address), __mi)
80            }
81        }
82    }
83    #[doc = "`CreateNewReferenceFromIntPtr(::unity::IntPtr)` overload"]
84    fn create_new_reference_from_int_ptr(
85        self,
86        address: impl ::core::convert::Into<::unity::IntPtr>,
87    ) -> crate::root::aksourcesettings::AkSourceSettings {
88        unsafe {
89            let __receiver = <AkSourceSettingsArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90            {
91                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
92                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
93                    panic!(
94                        "unity: virtual slot {}
95 out of range (vtable len {}
96) on the runtime class behind {}
97 (method `{}
98`)",
99                        9usize,
100                        __vt.len(),
101                        <AkSourceSettingsArray as ::unity::ClassIdentity>::NAME,
102                        "CreateNewReferenceFromIntPtr",
103                    )
104                });
105                let __inner: extern "C" fn(
106                    AkSourceSettingsArray,
107                    ::unity::IntPtr,
108                    ::unity::OptionalMethod,
109                ) -> crate::root::aksourcesettings::AkSourceSettings = ::core::mem::transmute(__vi.method_ptr);
110                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
111                __inner(__receiver, ::core::convert::Into::into(address), __mi)
112            }
113        }
114    }
115    #[doc = "`CloneIntoReferenceFromIntPtr(::unity::IntPtr, crate::root::aksourcesettings::AkSourceSettings)` overload"]
116    fn clone_into_reference_from_int_ptr(
117        self,
118        address: impl ::core::convert::Into<::unity::IntPtr>,
119        other: impl ::core::convert::Into<crate::root::aksourcesettings::AkSourceSettings>,
120    ) -> () {
121        unsafe {
122            let __receiver = <AkSourceSettingsArray as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123            {
124                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
125                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
126                    panic!(
127                        "unity: virtual slot {}
128 out of range (vtable len {}
129) on the runtime class behind {}
130 (method `{}
131`)",
132                        10usize,
133                        __vt.len(),
134                        <AkSourceSettingsArray as ::unity::ClassIdentity>::NAME,
135                        "CloneIntoReferenceFromIntPtr",
136                    )
137                });
138                let __inner: extern "C" fn(
139                    AkSourceSettingsArray,
140                    ::unity::IntPtr,
141                    crate::root::aksourcesettings::AkSourceSettings,
142                    ::unity::OptionalMethod,
143                ) -> () = ::core::mem::transmute(__vi.method_ptr);
144                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
145                __inner(__receiver, ::core::convert::Into::into(address), ::core::convert::Into::into(other), __mi)
146            }
147        }
148    }
149}
150
151#[cfg(feature = "root-aksourcesettingsarray")]
152impl<__T: IAkSourceSettingsArray> IAkSourceSettingsArrayMethods for __T {}
153
154#[cfg(feature = "root-aksourcesettingsarray")]
155impl AkSourceSettingsArray {
156    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
158    }
159
160    pub fn get_structure_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
162    }
163
164    pub fn default_construct_at_int_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
166    }
167
168    pub fn create_new_reference_from_int_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
170    }
171
172    pub fn clone_into_reference_from_int_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
174    }
175}
176
177#[cfg(feature = "root-aksourcesettingsarray")]
178impl AkSourceSettingsArray {
179    #[doc = "Direct (non-virtual) call to `AkSourceSettingsArray`'s own `get_StructureSize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
180    pub unsafe fn get_structure_size(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
181        let __mi = Self::get_structure_size_method_info();
182        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
183        __inner(this.into(), ::core::option::Option::None)
184    }
185
186    #[doc = "Direct (non-virtual) call to `AkSourceSettingsArray`'s own `DefaultConstructAtIntPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
187    pub unsafe fn default_construct_at_int_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, address: ::unity::IntPtr) -> () {
188        let __mi = Self::default_construct_at_int_ptr_method_info();
189        let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
190        __inner(this.into(), address, ::core::option::Option::None)
191    }
192
193    #[doc = "Direct (non-virtual) call to `AkSourceSettingsArray`'s own `CreateNewReferenceFromIntPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
194    pub unsafe fn create_new_reference_from_int_ptr(
195        this: impl ::core::convert::Into<::unity::IlInstance>,
196        address: ::unity::IntPtr,
197    ) -> crate::root::aksourcesettings::AkSourceSettings {
198        let __mi = Self::create_new_reference_from_int_ptr_method_info();
199        let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> crate::root::aksourcesettings::AkSourceSettings =
200            ::core::mem::transmute(__mi.method_ptr);
201        __inner(this.into(), address, ::core::option::Option::None)
202    }
203
204    #[doc = "Direct (non-virtual) call to `AkSourceSettingsArray`'s own `CloneIntoReferenceFromIntPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
205    pub unsafe fn clone_into_reference_from_int_ptr(
206        this: impl ::core::convert::Into<::unity::IlInstance>,
207        address: ::unity::IntPtr,
208        other: crate::root::aksourcesettings::AkSourceSettings,
209    ) -> () {
210        let __mi = Self::clone_into_reference_from_int_ptr_method_info();
211        let __inner: extern "C" fn(
212            ::unity::IlInstance,
213            ::unity::IntPtr,
214            crate::root::aksourcesettings::AkSourceSettings,
215            ::unity::OptionalMethod,
216        ) -> () = ::core::mem::transmute(__mi.method_ptr);
217        __inner(this.into(), address, other, ::core::option::Option::None)
218    }
219}
220
221#[cfg(feature = "root-aksourcesettingsarray")]
222impl AkSourceSettingsArray {
223    #[doc = "`.ctor(i32)` — overload selector"]
224    pub fn new(count: i32) -> Self {
225        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
226            panic!(
227                "{}
228::{}
229 failed to instantiate",
230                ::core::stringify!(AkSourceSettingsArray),
231                ::core::stringify!(new),
232            )
233        });
234        <Self as IAkSourceSettingsArrayMethods>::ctor(this, count);
235        this
236    }
237}
238
239#[cfg(feature = "root-aksourcesettingsarray")]
240#[doc(hidden)]
241pub mod prelude {
242    pub use super::{AkSourceSettingsArray, IAkSourceSettingsArray, IAkSourceSettingsArrayMethods};
243    #[cfg(feature = "root-akbasearray_1")]
244    pub use crate::root::akbasearray_1::IAkBaseArray_1Methods;
245    #[cfg(feature = "system-object")]
246    pub use crate::system::object::IObjectMethods;
247    pub use crate::{root::akbasearray_1::IAkBaseArray_1, system::object::IObject};
248}