Skip to main content

engage/generated/root/
aktriangle.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-aktriangle-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/aktriangle/AkTriangle.md"))]
11    #[::unity::class(namespace = "", name = "AkTriangle")]
12    #[parent(crate::system::object::Object)]
13    pub struct AkTriangle {
14        #[offset(16)]
15        #[rename(name = "swigCPtr")]
16        pub swig_c_ptr: ::unity::IntPtr,
17        #[offset(24)]
18        #[rename(name = "swigCMemOwn")]
19        pub swig_c_mem_own: bool,
20    }
21}
22
23#[cfg(feature = "root-aktriangle-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-aktriangle")]
27impl AkTriangle {
28    #[doc = "`getCPtr(crate::root::aktriangle::AkTriangle)` overload"]
29    pub fn get_c_ptr(obj: impl ::core::convert::Into<crate::root::aktriangle::AkTriangle>) -> ::unity::IntPtr {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x1d29fd0usize)as*mut u8, ::unity::IntPtr;
32(crate::root::aktriangle::AkTriangle)::core::convert::Into::into(obj))
33        }
34    }
35
36    #[doc = "`GetSizeOf()` overload"]
37    pub fn get_size_of() -> i32 {
38        unsafe {
39            ::unity::il2cpp_call!((::unity::module_base()+0x1d2a480usize)as*mut u8,i32;
40            )
41        }
42    }
43}
44
45#[cfg(feature = "root-aktriangle")]
46pub trait IAkTriangleMethods: IAkTriangle {
47    #[doc = "`.ctor(::unity::IntPtr, bool)` overload"]
48    fn ctor(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>, c_memory_own: impl ::core::convert::Into<bool>) -> () {
49        unsafe {
50            let __receiver = <AkTriangle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51            ::unity::il2cpp_call!((::unity::module_base()+0x1d29f90usize)as*mut u8,();
52(AkTriangle)__receiver,(::unity::IntPtr)::core::convert::Into::into(c_ptr),(bool)::core::convert::Into::into(c_memory_own))
53        }
54    }
55    #[doc = "`setCPtr(::unity::IntPtr)` overload"]
56    fn set_c_ptr(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
57        unsafe {
58            let __receiver = <AkTriangle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59            {
60                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
61                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
62                    panic!(
63                        "unity: virtual slot {}
64 out of range (vtable len {}
65) on the runtime class behind {}
66 (method `{}
67`)",
68                        5usize,
69                        __vt.len(),
70                        <AkTriangle as ::unity::ClassIdentity>::NAME,
71                        "setCPtr",
72                    )
73                });
74                let __inner: extern "C" fn(AkTriangle, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
75                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
76                __inner(__receiver, ::core::convert::Into::into(c_ptr), __mi)
77            }
78        }
79    }
80    #[doc = "`Finalize()` overload"]
81    fn finalize(self) -> () {
82        unsafe {
83            let __receiver = <AkTriangle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84            {
85                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
86                let __vi = *__vt.get(1usize).unwrap_or_else(|| {
87                    panic!(
88                        "unity: virtual slot {}
89 out of range (vtable len {}
90) on the runtime class behind {}
91 (method `{}
92`)",
93                        1usize,
94                        __vt.len(),
95                        <AkTriangle as ::unity::ClassIdentity>::NAME,
96                        "Finalize",
97                    )
98                });
99                let __inner: extern "C" fn(AkTriangle, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
100                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
101                __inner(__receiver, __mi)
102            }
103        }
104    }
105    #[doc = "`Dispose()` overload"]
106    fn dispose(self) -> () {
107        unsafe {
108            let __receiver = <AkTriangle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109            {
110                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
111                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
112                    panic!(
113                        "unity: virtual slot {}
114 out of range (vtable len {}
115) on the runtime class behind {}
116 (method `{}
117`)",
118                        6usize,
119                        __vt.len(),
120                        <AkTriangle as ::unity::ClassIdentity>::NAME,
121                        "Dispose",
122                    )
123                });
124                let __inner: extern "C" fn(AkTriangle, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
125                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
126                __inner(__receiver, __mi)
127            }
128        }
129    }
130    #[doc = "`.ctor()` overload"]
131    fn ctor_2(self) -> () {
132        unsafe {
133            let __receiver = <AkTriangle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134            ::unity::il2cpp_call!((::unity::module_base()+0x1d2a250usize)as*mut u8,();
135(AkTriangle)__receiver)
136        }
137    }
138    #[doc = "`.ctor(u16, u16, u16, u16)` overload"]
139    fn ctor_3(
140        self,
141        in_pt0: impl ::core::convert::Into<u16>,
142        in_pt1: impl ::core::convert::Into<u16>,
143        in_pt2: impl ::core::convert::Into<u16>,
144        in_surface_info: impl ::core::convert::Into<u16>,
145    ) -> () {
146        unsafe {
147            let __receiver = <AkTriangle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
148            ::unity::il2cpp_call!((::unity::module_base()+0x1d2a2e0usize)as*mut u8,();
149(AkTriangle)__receiver,(u16)::core::convert::Into::into(in_pt0),(u16)::core::convert::Into::into(in_pt1),(u16)::core::convert::Into::into(in_pt2),(u16)::core::convert::Into::into(in_surface_info))
150        }
151    }
152    #[doc = "`set_point0(u16)` overload"]
153    fn set_point0(self, value: impl ::core::convert::Into<u16>) -> () {
154        unsafe {
155            let __receiver = <AkTriangle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
156            ::unity::il2cpp_call!((::unity::module_base()+0x1d24750usize)as*mut u8,();
157(AkTriangle)__receiver,(u16)::core::convert::Into::into(value))
158        }
159    }
160    #[doc = "`get_point0()` overload"]
161    fn get_point0(self) -> u16 {
162        unsafe {
163            let __receiver = <AkTriangle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
164            ::unity::il2cpp_call!((::unity::module_base()+0x1d24950usize)as*mut u8,u16;
165(AkTriangle)__receiver)
166        }
167    }
168    #[doc = "`set_point1(u16)` overload"]
169    fn set_point1(self, value: impl ::core::convert::Into<u16>) -> () {
170        unsafe {
171            let __receiver = <AkTriangle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
172            ::unity::il2cpp_call!((::unity::module_base()+0x1d247d0usize)as*mut u8,();
173(AkTriangle)__receiver,(u16)::core::convert::Into::into(value))
174        }
175    }
176    #[doc = "`get_point1()` overload"]
177    fn get_point1(self) -> u16 {
178        unsafe {
179            let __receiver = <AkTriangle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
180            ::unity::il2cpp_call!((::unity::module_base()+0x1d249c0usize)as*mut u8,u16;
181(AkTriangle)__receiver)
182        }
183    }
184    #[doc = "`set_point2(u16)` overload"]
185    fn set_point2(self, value: impl ::core::convert::Into<u16>) -> () {
186        unsafe {
187            let __receiver = <AkTriangle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
188            ::unity::il2cpp_call!((::unity::module_base()+0x1d24850usize)as*mut u8,();
189(AkTriangle)__receiver,(u16)::core::convert::Into::into(value))
190        }
191    }
192    #[doc = "`get_point2()` overload"]
193    fn get_point2(self) -> u16 {
194        unsafe {
195            let __receiver = <AkTriangle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
196            ::unity::il2cpp_call!((::unity::module_base()+0x1d24a30usize)as*mut u8,u16;
197(AkTriangle)__receiver)
198        }
199    }
200    #[doc = "`set_surface(u16)` overload"]
201    fn set_surface(self, value: impl ::core::convert::Into<u16>) -> () {
202        unsafe {
203            let __receiver = <AkTriangle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
204            ::unity::il2cpp_call!((::unity::module_base()+0x1d248d0usize)as*mut u8,();
205(AkTriangle)__receiver,(u16)::core::convert::Into::into(value))
206        }
207    }
208    #[doc = "`get_surface()` overload"]
209    fn get_surface(self) -> u16 {
210        unsafe {
211            let __receiver = <AkTriangle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
212            ::unity::il2cpp_call!((::unity::module_base()+0x1d2a3a0usize)as*mut u8,u16;
213(AkTriangle)__receiver)
214        }
215    }
216    #[doc = "`Clear()` overload"]
217    fn clear(self) -> () {
218        unsafe {
219            let __receiver = <AkTriangle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
220            ::unity::il2cpp_call!((::unity::module_base()+0x1d2a410usize)as*mut u8,();
221(AkTriangle)__receiver)
222        }
223    }
224    #[doc = "`Clone(crate::root::aktriangle::AkTriangle)` overload"]
225    fn clone(self, other: impl ::core::convert::Into<crate::root::aktriangle::AkTriangle>) -> () {
226        unsafe {
227            let __receiver = <AkTriangle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
228            ::unity::il2cpp_call!((::unity::module_base()+0x1d2a4f0usize)as*mut u8,();
229(AkTriangle)__receiver,(crate::root::aktriangle::AkTriangle)::core::convert::Into::into(other))
230        }
231    }
232}
233
234#[cfg(feature = "root-aktriangle")]
235impl<__T: IAkTriangle> IAkTriangleMethods for __T {}
236
237#[cfg(feature = "root-aktriangle")]
238impl AkTriangle {
239    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
240        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
241    }
242
243    pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
244        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
245    }
246
247    pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
249    }
250
251    pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
253    }
254
255    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
257    }
258
259    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
261    }
262
263    pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
264        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
265    }
266
267    pub fn set_point0_method_info() -> &'static ::unity::il2cpp::MethodInfo {
268        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
269    }
270
271    pub fn get_point0_method_info() -> &'static ::unity::il2cpp::MethodInfo {
272        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
273    }
274
275    pub fn set_point1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
276        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
277    }
278
279    pub fn get_point1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
280        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
281    }
282
283    pub fn set_point2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
284        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
285    }
286
287    pub fn get_point2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
288        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
289    }
290
291    pub fn set_surface_method_info() -> &'static ::unity::il2cpp::MethodInfo {
292        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
293    }
294
295    pub fn get_surface_method_info() -> &'static ::unity::il2cpp::MethodInfo {
296        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
297    }
298
299    pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
300        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
301    }
302
303    pub fn get_size_of_method_info() -> &'static ::unity::il2cpp::MethodInfo {
304        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
305    }
306
307    pub fn clone_method_info() -> &'static ::unity::il2cpp::MethodInfo {
308        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
309    }
310}
311
312#[cfg(feature = "root-aktriangle")]
313impl AkTriangle {
314    #[doc = "Direct (non-virtual) call to `AkTriangle`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
315    pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
316        let __mi = Self::set_c_ptr_method_info();
317        let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
318        __inner(this.into(), c_ptr, ::core::option::Option::None)
319    }
320
321    #[doc = "Direct (non-virtual) call to `AkTriangle`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
322    pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
323        let __mi = Self::finalize_method_info();
324        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
325        __inner(this.into(), ::core::option::Option::None)
326    }
327
328    #[doc = "Direct (non-virtual) call to `AkTriangle`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
329    pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
330        let __mi = Self::dispose_method_info();
331        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
332        __inner(this.into(), ::core::option::Option::None)
333    }
334}
335
336#[cfg(feature = "root-aktriangle")]
337impl AkTriangle {
338    #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
339    pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
340        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
341            panic!(
342                "{}
343::{}
344 failed to instantiate",
345                ::core::stringify!(AkTriangle),
346                ::core::stringify!(new),
347            )
348        });
349        <Self as IAkTriangleMethods>::ctor(this, c_ptr, c_memory_own);
350        this
351    }
352
353    #[doc = "`.ctor()` — no args"]
354    pub fn new_2() -> Self {
355        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
356            panic!(
357                "{}
358::{}
359 failed to instantiate",
360                ::core::stringify!(AkTriangle),
361                ::core::stringify!(new_2),
362            )
363        });
364        <Self as IAkTriangleMethods>::ctor_2(this);
365        this
366    }
367
368    #[doc = "`.ctor(u16, u16, u16, u16)` — overload selector"]
369    pub fn new_3(in_pt0: u16, in_pt1: u16, in_pt2: u16, in_surface_info: u16) -> Self {
370        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
371            panic!(
372                "{}
373::{}
374 failed to instantiate",
375                ::core::stringify!(AkTriangle),
376                ::core::stringify!(new_3),
377            )
378        });
379        <Self as IAkTriangleMethods>::ctor_3(this, in_pt0, in_pt1, in_pt2, in_surface_info);
380        this
381    }
382}
383
384#[cfg(feature = "root-aktriangle")]
385#[doc(hidden)]
386pub mod prelude {
387    pub use super::{AkTriangle, IAkTriangle, IAkTriangleMethods};
388    pub use crate::system::object::IObject;
389    #[cfg(feature = "system-object")]
390    pub use crate::system::object::IObjectMethods;
391}