Skip to main content

engage/generated/root/
akvertexarray.rs

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