Skip to main content

engage/generated/root/
akvector.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-akvector-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/akvector/AkVector.md"))]
11    #[::unity::class(namespace = "", name = "AkVector")]
12    #[parent(crate::system::object::Object)]
13    pub struct AkVector {
14        #[offset(16)]
15        #[rename(name = "Vector")]
16        pub vector: crate::unity_engine::vector3::Vector3,
17    }
18}
19
20#[cfg(feature = "root-akvector-types")]
21pub use __types::*;
22
23#[cfg(feature = "root-akvector")]
24impl AkVector {
25    #[doc = "`op_Implicit(crate::root::akvector::AkVector)` overload"]
26    pub fn op_implicit(vector: impl ::core::convert::Into<crate::root::akvector::AkVector>) -> crate::unity_engine::vector3::Vector3 {
27        unsafe {
28            ::unity::il2cpp_call!((::unity::module_base()+0x1d2c320usize)as*mut u8,crate::unity_engine::vector3::Vector3;
29(crate::root::akvector::AkVector)::core::convert::Into::into(vector))
30        }
31    }
32}
33
34#[cfg(feature = "root-akvector")]
35pub trait IAkVectorMethods: IAkVector {
36    #[doc = "`Zero()` overload"]
37    fn zero(self) -> () {
38        unsafe {
39            let __receiver = <AkVector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40            ::unity::il2cpp_call!((::unity::module_base()+0x1d2c2b0usize)as*mut u8,();
41(AkVector)__receiver)
42        }
43    }
44    #[doc = "`set_X(f32)` overload"]
45    fn set_x(self, value: impl ::core::convert::Into<f32>) -> () {
46        unsafe {
47            let __receiver = <AkVector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48            ::unity::il2cpp_call!((::unity::module_base()+0x1d2c2c0usize)as*mut u8,();
49(AkVector)__receiver,(f32)::core::convert::Into::into(value))
50        }
51    }
52    #[doc = "`get_X()` overload"]
53    fn get_x(self) -> f32 {
54        unsafe {
55            let __receiver = <AkVector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56            ::unity::il2cpp_call!((::unity::module_base()+0x1d2c2d0usize)as*mut u8,f32;
57(AkVector)__receiver)
58        }
59    }
60    #[doc = "`set_Y(f32)` overload"]
61    fn set_y(self, value: impl ::core::convert::Into<f32>) -> () {
62        unsafe {
63            let __receiver = <AkVector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64            ::unity::il2cpp_call!((::unity::module_base()+0x1d2c2e0usize)as*mut u8,();
65(AkVector)__receiver,(f32)::core::convert::Into::into(value))
66        }
67    }
68    #[doc = "`get_Y()` overload"]
69    fn get_y(self) -> f32 {
70        unsafe {
71            let __receiver = <AkVector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72            ::unity::il2cpp_call!((::unity::module_base()+0x1d2c2f0usize)as*mut u8,f32;
73(AkVector)__receiver)
74        }
75    }
76    #[doc = "`set_Z(f32)` overload"]
77    fn set_z(self, value: impl ::core::convert::Into<f32>) -> () {
78        unsafe {
79            let __receiver = <AkVector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80            ::unity::il2cpp_call!((::unity::module_base()+0x1d2c300usize)as*mut u8,();
81(AkVector)__receiver,(f32)::core::convert::Into::into(value))
82        }
83    }
84    #[doc = "`get_Z()` overload"]
85    fn get_z(self) -> f32 {
86        unsafe {
87            let __receiver = <AkVector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88            ::unity::il2cpp_call!((::unity::module_base()+0x1d2c310usize)as*mut u8,f32;
89(AkVector)__receiver)
90        }
91    }
92    #[doc = "`.ctor()` overload"]
93    fn ctor(self) -> () {
94        unsafe {
95            let __receiver = <AkVector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96            ::unity::il2cpp_call!((::unity::module_base()+0x1d2c330usize)as*mut u8,();
97(AkVector)__receiver)
98        }
99    }
100}
101
102#[cfg(feature = "root-akvector")]
103impl<__T: IAkVector> IAkVectorMethods for __T {}
104
105#[cfg(feature = "root-akvector")]
106impl AkVector {
107    pub fn zero_method_info() -> &'static ::unity::il2cpp::MethodInfo {
108        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
109    }
110
111    pub fn set_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
112        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
113    }
114
115    pub fn get_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
116        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
117    }
118
119    pub fn set_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
120        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
121    }
122
123    pub fn get_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
124        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
125    }
126
127    pub fn set_z_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
129    }
130
131    pub fn get_z_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
133    }
134
135    pub fn op_implicit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
137    }
138
139    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
141    }
142}
143
144#[cfg(feature = "root-akvector")]
145impl AkVector {
146    #[doc = "`.ctor()` — no args"]
147    pub fn new() -> Self {
148        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
149            panic!(
150                "{}
151::{}
152 failed to instantiate",
153                ::core::stringify!(AkVector),
154                ::core::stringify!(new),
155            )
156        });
157        <Self as IAkVectorMethods>::ctor(this);
158        this
159    }
160}
161
162#[cfg(feature = "root-akvector")]
163#[doc(hidden)]
164pub mod prelude {
165    pub use super::{AkVector, IAkVector, IAkVectorMethods};
166    pub use crate::system::object::IObject;
167    #[cfg(feature = "system-object")]
168    pub use crate::system::object::IObjectMethods;
169}