Skip to main content

engage/generated/root/
akobstructionocclusionvaluesarray.rs

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