Skip to main content

engage/generated/root/
akvertex.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-akvertex-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/akvertex/AkVertex.md"))]
11    #[::unity::class(namespace = "", name = "AkVertex")]
12    #[parent(crate::system::object::Object)]
13    pub struct AkVertex {
14        #[offset(16)]
15        #[rename(name = "Vector")]
16        pub vector: crate::unity_engine::vector3::Vector3,
17    }
18}
19
20#[cfg(feature = "root-akvertex-types")]
21pub use __types::*;
22
23#[cfg(feature = "root-akvertex")]
24impl AkVertex {
25    #[doc = "`op_Implicit(crate::root::akvertex::AkVertex)` overload"]
26    pub fn op_implicit(vector: impl ::core::convert::Into<crate::root::akvertex::AkVertex>) -> crate::unity_engine::vector3::Vector3 {
27        unsafe {
28            ::unity::il2cpp_call!((::unity::module_base()+0x1d2c3e0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
29(crate::root::akvertex::AkVertex)::core::convert::Into::into(vector))
30        }
31    }
32
33    #[doc = "`GetSizeOf()` overload"]
34    pub fn get_size_of() -> i32 {
35        unsafe {
36            ::unity::il2cpp_call!((::unity::module_base()+0x1d2c4b0usize)as*mut u8,i32;
37            )
38        }
39    }
40}
41
42#[cfg(feature = "root-akvertex")]
43pub trait IAkVertexMethods: IAkVertex {
44    #[doc = "`Zero()` overload"]
45    fn zero(self) -> () {
46        unsafe {
47            let __receiver = <AkVertex as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48            ::unity::il2cpp_call!((::unity::module_base()+0x1d2c370usize)as*mut u8,();
49(AkVertex)__receiver)
50        }
51    }
52    #[doc = "`set_X(f32)` overload"]
53    fn set_x(self, value: impl ::core::convert::Into<f32>) -> () {
54        unsafe {
55            let __receiver = <AkVertex as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56            ::unity::il2cpp_call!((::unity::module_base()+0x1d2c380usize)as*mut u8,();
57(AkVertex)__receiver,(f32)::core::convert::Into::into(value))
58        }
59    }
60    #[doc = "`get_X()` overload"]
61    fn get_x(self) -> f32 {
62        unsafe {
63            let __receiver = <AkVertex as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64            ::unity::il2cpp_call!((::unity::module_base()+0x1d2c390usize)as*mut u8,f32;
65(AkVertex)__receiver)
66        }
67    }
68    #[doc = "`set_Y(f32)` overload"]
69    fn set_y(self, value: impl ::core::convert::Into<f32>) -> () {
70        unsafe {
71            let __receiver = <AkVertex as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72            ::unity::il2cpp_call!((::unity::module_base()+0x1d2c3a0usize)as*mut u8,();
73(AkVertex)__receiver,(f32)::core::convert::Into::into(value))
74        }
75    }
76    #[doc = "`get_Y()` overload"]
77    fn get_y(self) -> f32 {
78        unsafe {
79            let __receiver = <AkVertex as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80            ::unity::il2cpp_call!((::unity::module_base()+0x1d2c3b0usize)as*mut u8,f32;
81(AkVertex)__receiver)
82        }
83    }
84    #[doc = "`set_Z(f32)` overload"]
85    fn set_z(self, value: impl ::core::convert::Into<f32>) -> () {
86        unsafe {
87            let __receiver = <AkVertex as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88            ::unity::il2cpp_call!((::unity::module_base()+0x1d2c3c0usize)as*mut u8,();
89(AkVertex)__receiver,(f32)::core::convert::Into::into(value))
90        }
91    }
92    #[doc = "`get_Z()` overload"]
93    fn get_z(self) -> f32 {
94        unsafe {
95            let __receiver = <AkVertex as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96            ::unity::il2cpp_call!((::unity::module_base()+0x1d2c3d0usize)as*mut u8,f32;
97(AkVertex)__receiver)
98        }
99    }
100    #[doc = "`.ctor()` overload"]
101    fn ctor(self) -> () {
102        unsafe {
103            let __receiver = <AkVertex as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
104            ::unity::il2cpp_call!((::unity::module_base()+0x1d2c3f0usize)as*mut u8,();
105(AkVertex)__receiver)
106        }
107    }
108    #[doc = "`.ctor(f32, f32, f32)` overload"]
109    fn ctor_2(self, x: impl ::core::convert::Into<f32>, y: impl ::core::convert::Into<f32>, z: impl ::core::convert::Into<f32>) -> () {
110        unsafe {
111            let __receiver = <AkVertex as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
112            ::unity::il2cpp_call!((::unity::module_base()+0x1d2c430usize)as*mut u8,();
113(AkVertex)__receiver,(f32)::core::convert::Into::into(x),(f32)::core::convert::Into::into(y),(f32)::core::convert::Into::into(z))
114        }
115    }
116    #[doc = "`Clear()` overload"]
117    fn clear(self) -> () {
118        unsafe {
119            let __receiver = <AkVertex as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120            ::unity::il2cpp_call!((::unity::module_base()+0x1d2c4a0usize)as*mut u8,();
121(AkVertex)__receiver)
122        }
123    }
124    #[doc = "`Clone(crate::root::akvertex::AkVertex)` overload"]
125    fn clone(self, other: impl ::core::convert::Into<crate::root::akvertex::AkVertex>) -> () {
126        unsafe {
127            let __receiver = <AkVertex as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128            ::unity::il2cpp_call!((::unity::module_base()+0x1d2c4c0usize)as*mut u8,();
129(AkVertex)__receiver,(crate::root::akvertex::AkVertex)::core::convert::Into::into(other))
130        }
131    }
132}
133
134#[cfg(feature = "root-akvertex")]
135impl<__T: IAkVertex> IAkVertexMethods for __T {}
136
137#[cfg(feature = "root-akvertex")]
138impl AkVertex {
139    pub fn zero_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
141    }
142
143    pub fn set_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
145    }
146
147    pub fn get_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
149    }
150
151    pub fn set_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
153    }
154
155    pub fn get_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
157    }
158
159    pub fn set_z_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
161    }
162
163    pub fn get_z_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
165    }
166
167    pub fn op_implicit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
169    }
170
171    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
173    }
174
175    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
176        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
177    }
178
179    pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
180        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
181    }
182
183    pub fn get_size_of_method_info() -> &'static ::unity::il2cpp::MethodInfo {
184        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
185    }
186
187    pub fn clone_method_info() -> &'static ::unity::il2cpp::MethodInfo {
188        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
189    }
190}
191
192#[cfg(feature = "root-akvertex")]
193impl AkVertex {
194    #[doc = "`.ctor()` — no args"]
195    pub fn new() -> Self {
196        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
197            panic!(
198                "{}
199::{}
200 failed to instantiate",
201                ::core::stringify!(AkVertex),
202                ::core::stringify!(new),
203            )
204        });
205        <Self as IAkVertexMethods>::ctor(this);
206        this
207    }
208
209    #[doc = "`.ctor(f32, f32, f32)` — overload selector"]
210    pub fn new_2(x: f32, y: f32, z: f32) -> Self {
211        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
212            panic!(
213                "{}
214::{}
215 failed to instantiate",
216                ::core::stringify!(AkVertex),
217                ::core::stringify!(new_2),
218            )
219        });
220        <Self as IAkVertexMethods>::ctor_2(this, x, y, z);
221        this
222    }
223}
224
225#[cfg(feature = "root-akvertex")]
226#[doc(hidden)]
227pub mod prelude {
228    pub use super::{AkVertex, IAkVertex, IAkVertexMethods};
229    pub use crate::system::object::IObject;
230    #[cfg(feature = "system-object")]
231    pub use crate::system::object::IObjectMethods;
232}