engage/generated/unity_engine/
vector3int.rs1#[cfg(feature = "unity_engine-vector3int-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 valuetype::{IValueType, ValueType},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/vector3int/Vector3Int.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct Vector3Int {
17 pub m_x: i32,
18 pub m_y: i32,
19 pub m_z: i32,
20 }
21 impl ::unity::ClassIdentity for Vector3Int {
22 const NAME: &'static str = "Vector3Int";
23 const NAMESPACE: &'static str = "UnityEngine";
24
25 fn class() -> ::unity::Class {
26 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
27 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
28 }
29 }
30 impl ::unity::IlType for Vector3Int {
31 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
32 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
33 }
34 }
35 impl Vector3Int {
36 #[inline]
37 pub fn s_zero() -> crate::unity_engine::vector3int::Vector3Int {
38 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
39 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "s_Zero");
40 ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
41 }
42
43 #[inline]
44 pub fn set_s_zero(value: crate::unity_engine::vector3int::Vector3Int) {
45 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
46 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "s_Zero");
47 ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
48 }
49
50 #[inline]
51 pub fn s_one() -> crate::unity_engine::vector3int::Vector3Int {
52 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
53 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "s_One");
54 ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
55 }
56
57 #[inline]
58 pub fn set_s_one(value: crate::unity_engine::vector3int::Vector3Int) {
59 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
60 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "s_One");
61 ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
62 }
63
64 #[inline]
65 pub fn s_up() -> crate::unity_engine::vector3int::Vector3Int {
66 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
67 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "s_Up");
68 ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
69 }
70
71 #[inline]
72 pub fn set_s_up(value: crate::unity_engine::vector3int::Vector3Int) {
73 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
74 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "s_Up");
75 ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
76 }
77
78 #[inline]
79 pub fn s_down() -> crate::unity_engine::vector3int::Vector3Int {
80 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
81 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "s_Down");
82 ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
83 }
84
85 #[inline]
86 pub fn set_s_down(value: crate::unity_engine::vector3int::Vector3Int) {
87 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
88 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "s_Down");
89 ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
90 }
91
92 #[inline]
93 pub fn s_left() -> crate::unity_engine::vector3int::Vector3Int {
94 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
95 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "s_Left");
96 ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
97 }
98
99 #[inline]
100 pub fn set_s_left(value: crate::unity_engine::vector3int::Vector3Int) {
101 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
102 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "s_Left");
103 ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
104 }
105
106 #[inline]
107 pub fn s_right() -> crate::unity_engine::vector3int::Vector3Int {
108 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
109 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "s_Right");
110 ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
111 }
112
113 #[inline]
114 pub fn set_s_right(value: crate::unity_engine::vector3int::Vector3Int) {
115 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
116 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "s_Right");
117 ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
118 }
119
120 #[inline]
121 pub fn s_forward() -> crate::unity_engine::vector3int::Vector3Int {
122 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
123 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "s_Forward");
124 ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
125 }
126
127 #[inline]
128 pub fn set_s_forward(value: crate::unity_engine::vector3int::Vector3Int) {
129 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
130 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "s_Forward");
131 ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
132 }
133
134 #[inline]
135 pub fn s_back() -> crate::unity_engine::vector3int::Vector3Int {
136 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
137 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "s_Back");
138 ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
139 }
140
141 #[inline]
142 pub fn set_s_back(value: crate::unity_engine::vector3int::Vector3Int) {
143 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
144 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "s_Back");
145 ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
146 }
147 }
148}
149
150#[cfg(feature = "unity_engine-vector3int-types")]
151pub use __types::*;
152
153#[cfg(feature = "unity_engine-vector3int")]
154impl Vector3Int {
155 #[doc = "`op_Equality(crate::unity_engine::vector3int::Vector3Int, crate::unity_engine::vector3int::Vector3Int)` overload"]
156 pub fn op_equality(
157 lhs: impl ::core::convert::Into<crate::unity_engine::vector3int::Vector3Int>,
158 rhs: impl ::core::convert::Into<crate::unity_engine::vector3int::Vector3Int>,
159 ) -> bool {
160 unsafe {
161 ::unity::il2cpp_call!((::unity::module_base()+0x3799060usize)as*mut u8,bool;
162(crate::unity_engine::vector3int::Vector3Int)::core::convert::Into::into(lhs),(crate::unity_engine::vector3int::Vector3Int)::core::convert::Into::into(rhs))
163 }
164 }
165
166 #[doc = "`.cctor()` overload"]
167 pub fn cctor() -> () {
168 unsafe {
169 ::unity::il2cpp_call!((::unity::module_base()+0x3799440usize)as*mut u8,();
170 )
171 }
172 }
173}
174
175#[cfg(feature = "unity_engine-vector3int")]
176impl Vector3Int {
177 #[doc = "`get_x()` overload"]
178 pub fn get_x(&mut self) -> i32 {
179 unsafe {
180 ::unity::il2cpp_call!((::unity::module_base()+0x3798ff0usize)as*mut u8,i32;
181(*mut Vector3Int)self as*mut Vector3Int)
182 }
183 }
184
185 #[doc = "`set_x(i32)` overload"]
186 pub fn set_x(&mut self, value: impl ::core::convert::Into<i32>) -> () {
187 unsafe {
188 ::unity::il2cpp_call!((::unity::module_base()+0x3799000usize)as*mut u8,();
189(*mut Vector3Int)self as*mut Vector3Int,(i32)::core::convert::Into::into(value))
190 }
191 }
192
193 #[doc = "`get_y()` overload"]
194 pub fn get_y(&mut self) -> i32 {
195 unsafe {
196 ::unity::il2cpp_call!((::unity::module_base()+0x3799010usize)as*mut u8,i32;
197(*mut Vector3Int)self as*mut Vector3Int)
198 }
199 }
200
201 #[doc = "`set_y(i32)` overload"]
202 pub fn set_y(&mut self, value: impl ::core::convert::Into<i32>) -> () {
203 unsafe {
204 ::unity::il2cpp_call!((::unity::module_base()+0x3799020usize)as*mut u8,();
205(*mut Vector3Int)self as*mut Vector3Int,(i32)::core::convert::Into::into(value))
206 }
207 }
208
209 #[doc = "`get_z()` overload"]
210 pub fn get_z(&mut self) -> i32 {
211 unsafe {
212 ::unity::il2cpp_call!((::unity::module_base()+0x3799030usize)as*mut u8,i32;
213(*mut Vector3Int)self as*mut Vector3Int)
214 }
215 }
216
217 #[doc = "`set_z(i32)` overload"]
218 pub fn set_z(&mut self, value: impl ::core::convert::Into<i32>) -> () {
219 unsafe {
220 ::unity::il2cpp_call!((::unity::module_base()+0x3799040usize)as*mut u8,();
221(*mut Vector3Int)self as*mut Vector3Int,(i32)::core::convert::Into::into(value))
222 }
223 }
224
225 #[doc = "`.ctor(i32, i32, i32)` overload"]
226 pub fn ctor(&mut self, x: impl ::core::convert::Into<i32>, y: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> () {
227 unsafe {
228 ::unity::il2cpp_call!((::unity::module_base()+0x3799050usize)as*mut u8,();
229(*mut Vector3Int)self as*mut Vector3Int,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(y),(i32)::core::convert::Into::into(z))
230 }
231 }
232
233 #[doc = "`Equals(crate::system::object::Object)` overload"]
234 pub fn equals(&mut self, other: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
235 unsafe {
236 ::unity::il2cpp_call!((::unity::module_base()+0x3799090usize)as*mut u8,bool;
237(*mut Vector3Int)self as*mut Vector3Int,(crate::system::object::Object)::core::convert::Into::into(other))
238 }
239 }
240
241 #[doc = "`Equals(crate::unity_engine::vector3int::Vector3Int)` overload"]
242 pub fn equals_2(&mut self, other: impl ::core::convert::Into<crate::unity_engine::vector3int::Vector3Int>) -> bool {
243 unsafe {
244 ::unity::il2cpp_call!((::unity::module_base()+0x3799150usize)as*mut u8,bool;
245(*mut Vector3Int)self as*mut Vector3Int,(crate::unity_engine::vector3int::Vector3Int)::core::convert::Into::into(other))
246 }
247 }
248
249 #[doc = "`GetHashCode()` overload"]
250 pub fn get_hash_code(&mut self) -> i32 {
251 unsafe {
252 ::unity::il2cpp_call!((::unity::module_base()+0x3799190usize)as*mut u8,i32;
253(*mut Vector3Int)self as*mut Vector3Int)
254 }
255 }
256
257 #[doc = "`ToString()` overload"]
258 pub fn to_string(&mut self) -> ::unity::Il2CppString {
259 unsafe {
260 ::unity::il2cpp_call!((::unity::module_base()+0x3799210usize)as*mut u8, ::unity::Il2CppString;
261(*mut Vector3Int)self as*mut Vector3Int)
262 }
263 }
264}
265
266#[cfg(feature = "unity_engine-vector3int")]
267impl Vector3Int {
268 pub fn get_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
269 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
270 }
271
272 pub fn set_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
273 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
274 }
275
276 pub fn get_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
277 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
278 }
279
280 pub fn set_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
281 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
282 }
283
284 pub fn get_z_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
286 }
287
288 pub fn set_z_method_info() -> &'static ::unity::il2cpp::MethodInfo {
289 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
290 }
291
292 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
294 }
295
296 pub fn op_equality_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
298 }
299
300 pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
302 }
303
304 pub fn equals_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
306 }
307
308 pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
310 }
311
312 pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
313 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
314 }
315
316 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
318 }
319}
320
321#[cfg(feature = "unity_engine-vector3int")]
322#[doc(hidden)]
323pub mod prelude {
324 pub use super::Vector3Int;
325 #[cfg(feature = "system-object")]
326 pub use crate::system::object::IObjectMethods;
327 #[cfg(feature = "system-valuetype")]
328 pub use crate::system::valuetype::IValueTypeMethods;
329 pub use crate::system::{object::IObject, valuetype::IValueType};
330}