Skip to main content

engage/generated/root/
aktransform.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-aktransform-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/aktransform/AkTransform.md"))]
11    #[::unity::class(namespace = "", name = "AkTransform")]
12    #[parent(crate::system::object::Object)]
13    pub struct AkTransform {
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-aktransform-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-aktransform")]
27impl AkTransform {
28    #[doc = "`getCPtr(crate::root::aktransform::AkTransform)` overload"]
29    pub fn get_c_ptr(obj: impl ::core::convert::Into<crate::root::aktransform::AkTransform>) -> ::unity::IntPtr {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x1d14f70usize)as*mut u8, ::unity::IntPtr;
32(crate::root::aktransform::AkTransform)::core::convert::Into::into(obj))
33        }
34    }
35}
36
37#[cfg(feature = "root-aktransform")]
38pub trait IAkTransformMethods: IAkTransform {
39    #[doc = "`.ctor(::unity::IntPtr, bool)` overload"]
40    fn ctor(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>, c_memory_own: impl ::core::convert::Into<bool>) -> () {
41        unsafe {
42            let __receiver = <AkTransform as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            ::unity::il2cpp_call!((::unity::module_base()+0x1d29650usize)as*mut u8,();
44(AkTransform)__receiver,(::unity::IntPtr)::core::convert::Into::into(c_ptr),(bool)::core::convert::Into::into(c_memory_own))
45        }
46    }
47    #[doc = "`setCPtr(::unity::IntPtr)` overload"]
48    fn set_c_ptr(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
49        unsafe {
50            let __receiver = <AkTransform as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51            {
52                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
53                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
54                    panic!(
55                        "unity: virtual slot {}
56 out of range (vtable len {}
57) on the runtime class behind {}
58 (method `{}
59`)",
60                        5usize,
61                        __vt.len(),
62                        <AkTransform as ::unity::ClassIdentity>::NAME,
63                        "setCPtr",
64                    )
65                });
66                let __inner: extern "C" fn(AkTransform, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
67                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
68                __inner(__receiver, ::core::convert::Into::into(c_ptr), __mi)
69            }
70        }
71    }
72    #[doc = "`Finalize()` overload"]
73    fn finalize(self) -> () {
74        unsafe {
75            let __receiver = <AkTransform as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76            {
77                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
78                let __vi = *__vt.get(1usize).unwrap_or_else(|| {
79                    panic!(
80                        "unity: virtual slot {}
81 out of range (vtable len {}
82) on the runtime class behind {}
83 (method `{}
84`)",
85                        1usize,
86                        __vt.len(),
87                        <AkTransform as ::unity::ClassIdentity>::NAME,
88                        "Finalize",
89                    )
90                });
91                let __inner: extern "C" fn(AkTransform, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
92                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
93                __inner(__receiver, __mi)
94            }
95        }
96    }
97    #[doc = "`Dispose()` overload"]
98    fn dispose(self) -> () {
99        unsafe {
100            let __receiver = <AkTransform as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
101            {
102                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
103                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
104                    panic!(
105                        "unity: virtual slot {}
106 out of range (vtable len {}
107) on the runtime class behind {}
108 (method `{}
109`)",
110                        6usize,
111                        __vt.len(),
112                        <AkTransform as ::unity::ClassIdentity>::NAME,
113                        "Dispose",
114                    )
115                });
116                let __inner: extern "C" fn(AkTransform, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
117                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
118                __inner(__receiver, __mi)
119            }
120        }
121    }
122    #[doc = "`Position()` overload"]
123    fn position(self) -> crate::unity_engine::vector3::Vector3 {
124        unsafe {
125            let __receiver = <AkTransform as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126            ::unity::il2cpp_call!((::unity::module_base()+0x1d298b0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
127(AkTransform)__receiver)
128        }
129    }
130    #[doc = "`OrientationFront()` overload"]
131    fn orientation_front(self) -> crate::unity_engine::vector3::Vector3 {
132        unsafe {
133            let __receiver = <AkTransform as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134            ::unity::il2cpp_call!((::unity::module_base()+0x1d29920usize)as*mut u8,crate::unity_engine::vector3::Vector3;
135(AkTransform)__receiver)
136        }
137    }
138    #[doc = "`OrientationTop()` overload"]
139    fn orientation_top(self) -> crate::unity_engine::vector3::Vector3 {
140        unsafe {
141            let __receiver = <AkTransform as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142            ::unity::il2cpp_call!((::unity::module_base()+0x1d29990usize)as*mut u8,crate::unity_engine::vector3::Vector3;
143(AkTransform)__receiver)
144        }
145    }
146    #[doc = "`Set(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3)` overload"]
147    fn set(
148        self,
149        in_position: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
150        in_orientation_front: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
151        in_orientation_top: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
152    ) -> () {
153        unsafe {
154            let __receiver = <AkTransform as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
155            ::unity::il2cpp_call!((::unity::module_base()+0x1d29a00usize)as*mut u8,();
156(AkTransform)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(in_position),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(in_orientation_front),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(in_orientation_top))
157        }
158    }
159    #[doc = "`Set(f32, f32, f32, f32, f32, f32, f32, f32, f32)` overload"]
160    fn set_2(
161        self,
162        in_position_x: impl ::core::convert::Into<f32>,
163        in_position_y: impl ::core::convert::Into<f32>,
164        in_position_z: impl ::core::convert::Into<f32>,
165        in_orient_front_x: impl ::core::convert::Into<f32>,
166        in_orient_front_y: impl ::core::convert::Into<f32>,
167        in_orient_front_z: impl ::core::convert::Into<f32>,
168        in_orient_top_x: impl ::core::convert::Into<f32>,
169        in_orient_top_y: impl ::core::convert::Into<f32>,
170        in_orient_top_z: impl ::core::convert::Into<f32>,
171    ) -> () {
172        unsafe {
173            let __receiver = <AkTransform as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
174            ::unity::il2cpp_call!((::unity::module_base()+0x1d29b10usize)as*mut u8,();
175(AkTransform)__receiver,(f32)::core::convert::Into::into(in_position_x),(f32)::core::convert::Into::into(in_position_y),(f32)::core::convert::Into::into(in_position_z),(f32)::core::convert::Into::into(in_orient_front_x),(f32)::core::convert::Into::into(in_orient_front_y),(f32)::core::convert::Into::into(in_orient_front_z),(f32)::core::convert::Into::into(in_orient_top_x),(f32)::core::convert::Into::into(in_orient_top_y),(f32)::core::convert::Into::into(in_orient_top_z))
176        }
177    }
178    #[doc = "`SetPosition(crate::unity_engine::vector3::Vector3)` overload"]
179    fn set_position(self, in_position: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
180        unsafe {
181            let __receiver = <AkTransform as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
182            ::unity::il2cpp_call!((::unity::module_base()+0x1d29c40usize)as*mut u8,();
183(AkTransform)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(in_position))
184        }
185    }
186    #[doc = "`SetPosition(f32, f32, f32)` overload"]
187    fn set_position_2(
188        self,
189        in_x: impl ::core::convert::Into<f32>,
190        in_y: impl ::core::convert::Into<f32>,
191        in_z: impl ::core::convert::Into<f32>,
192    ) -> () {
193        unsafe {
194            let __receiver = <AkTransform as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
195            ::unity::il2cpp_call!((::unity::module_base()+0x1d29ce0usize)as*mut u8,();
196(AkTransform)__receiver,(f32)::core::convert::Into::into(in_x),(f32)::core::convert::Into::into(in_y),(f32)::core::convert::Into::into(in_z))
197        }
198    }
199    #[doc = "`SetOrientation(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3)` overload"]
200    fn set_orientation(
201        self,
202        in_orientation_front: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
203        in_orientation_top: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
204    ) -> () {
205        unsafe {
206            let __receiver = <AkTransform as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
207            ::unity::il2cpp_call!((::unity::module_base()+0x1d29d80usize)as*mut u8,();
208(AkTransform)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(in_orientation_front),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(in_orientation_top))
209        }
210    }
211    #[doc = "`SetOrientation(f32, f32, f32, f32, f32, f32)` overload"]
212    fn set_orientation_2(
213        self,
214        in_orient_front_x: impl ::core::convert::Into<f32>,
215        in_orient_front_y: impl ::core::convert::Into<f32>,
216        in_orient_front_z: impl ::core::convert::Into<f32>,
217        in_orient_top_x: impl ::core::convert::Into<f32>,
218        in_orient_top_y: impl ::core::convert::Into<f32>,
219        in_orient_top_z: impl ::core::convert::Into<f32>,
220    ) -> () {
221        unsafe {
222            let __receiver = <AkTransform as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
223            ::unity::il2cpp_call!((::unity::module_base()+0x1d29e40usize)as*mut u8,();
224(AkTransform)__receiver,(f32)::core::convert::Into::into(in_orient_front_x),(f32)::core::convert::Into::into(in_orient_front_y),(f32)::core::convert::Into::into(in_orient_front_z),(f32)::core::convert::Into::into(in_orient_top_x),(f32)::core::convert::Into::into(in_orient_top_y),(f32)::core::convert::Into::into(in_orient_top_z))
225        }
226    }
227    #[doc = "`.ctor()` overload"]
228    fn ctor_2(self) -> () {
229        unsafe {
230            let __receiver = <AkTransform as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
231            ::unity::il2cpp_call!((::unity::module_base()+0x1d29f00usize)as*mut u8,();
232(AkTransform)__receiver)
233        }
234    }
235}
236
237#[cfg(feature = "root-aktransform")]
238impl<__T: IAkTransform> IAkTransformMethods for __T {}
239
240#[cfg(feature = "root-aktransform")]
241impl AkTransform {
242    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
243        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
244    }
245
246    pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
247        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
248    }
249
250    pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
251        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
252    }
253
254    pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
255        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
256    }
257
258    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
259        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
260    }
261
262    pub fn position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
263        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
264    }
265
266    pub fn orientation_front_method_info() -> &'static ::unity::il2cpp::MethodInfo {
267        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
268    }
269
270    pub fn orientation_top_method_info() -> &'static ::unity::il2cpp::MethodInfo {
271        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
272    }
273
274    pub fn set_method_info() -> &'static ::unity::il2cpp::MethodInfo {
275        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
276    }
277
278    pub fn set_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
279        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
280    }
281
282    pub fn set_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
283        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
284    }
285
286    pub fn set_position_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
287        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
288    }
289
290    pub fn set_orientation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
291        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
292    }
293
294    pub fn set_orientation_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
295        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
296    }
297
298    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
299        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
300    }
301}
302
303#[cfg(feature = "root-aktransform")]
304impl AkTransform {
305    #[doc = "Direct (non-virtual) call to `AkTransform`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
306    pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
307        let __mi = Self::set_c_ptr_method_info();
308        let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
309        __inner(this.into(), c_ptr, ::core::option::Option::None)
310    }
311
312    #[doc = "Direct (non-virtual) call to `AkTransform`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
313    pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
314        let __mi = Self::finalize_method_info();
315        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
316        __inner(this.into(), ::core::option::Option::None)
317    }
318
319    #[doc = "Direct (non-virtual) call to `AkTransform`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
320    pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
321        let __mi = Self::dispose_method_info();
322        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
323        __inner(this.into(), ::core::option::Option::None)
324    }
325}
326
327#[cfg(feature = "root-aktransform")]
328impl AkTransform {
329    #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
330    pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
331        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
332            panic!(
333                "{}
334::{}
335 failed to instantiate",
336                ::core::stringify!(AkTransform),
337                ::core::stringify!(new),
338            )
339        });
340        <Self as IAkTransformMethods>::ctor(this, c_ptr, c_memory_own);
341        this
342    }
343
344    #[doc = "`.ctor()` — no args"]
345    pub fn new_2() -> Self {
346        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
347            panic!(
348                "{}
349::{}
350 failed to instantiate",
351                ::core::stringify!(AkTransform),
352                ::core::stringify!(new_2),
353            )
354        });
355        <Self as IAkTransformMethods>::ctor_2(this);
356        this
357    }
358}
359
360#[cfg(feature = "root-aktransform")]
361#[doc(hidden)]
362pub mod prelude {
363    pub use super::{AkTransform, IAkTransform, IAkTransformMethods};
364    pub use crate::system::object::IObject;
365    #[cfg(feature = "system-object")]
366    pub use crate::system::object::IObjectMethods;
367}