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