Skip to main content

engage/generated/root/
akobjectinfoarray.rs

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