Skip to main content

engage/generated/root/
akacousticsurfacearray.rs

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