Skip to main content

engage/generated/app/
mappos.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-mappos-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/app/mappos/MapPos.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct MapPos {
17        pub x: i32,
18        pub z: i32,
19    }
20    impl ::unity::ClassIdentity for MapPos {
21        const NAME: &'static str = "MapPos";
22        const NAMESPACE: &'static str = "App";
23
24        fn class() -> ::unity::Class {
25            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27        }
28    }
29    impl ::unity::IlType for MapPos {
30        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32        }
33    }
34}
35
36#[cfg(feature = "app-mappos-types")]
37pub use __types::*;
38
39#[cfg(feature = "app-mappos")]
40impl MapPos {
41    #[doc = "`op_Addition(crate::app::mappos::MapPos, crate::app::mappos::MapPos)` overload"]
42    pub fn op_addition(
43        lhs: impl ::core::convert::Into<crate::app::mappos::MapPos>,
44        rhs: impl ::core::convert::Into<crate::app::mappos::MapPos>,
45    ) -> crate::app::mappos::MapPos {
46        unsafe {
47            ::unity::il2cpp_call!((::unity::module_base()+0x235b430usize)as*mut u8,crate::app::mappos::MapPos;
48(crate::app::mappos::MapPos)::core::convert::Into::into(lhs),(crate::app::mappos::MapPos)::core::convert::Into::into(rhs))
49        }
50    }
51
52    #[doc = "`op_Subtraction(crate::app::mappos::MapPos, crate::app::mappos::MapPos)` overload"]
53    pub fn op_subtraction(
54        lhs: impl ::core::convert::Into<crate::app::mappos::MapPos>,
55        rhs: impl ::core::convert::Into<crate::app::mappos::MapPos>,
56    ) -> crate::app::mappos::MapPos {
57        unsafe {
58            ::unity::il2cpp_call!((::unity::module_base()+0x235b450usize)as*mut u8,crate::app::mappos::MapPos;
59(crate::app::mappos::MapPos)::core::convert::Into::into(lhs),(crate::app::mappos::MapPos)::core::convert::Into::into(rhs))
60        }
61    }
62
63    #[doc = "`op_Equality(crate::app::mappos::MapPos, crate::app::mappos::MapPos)` overload"]
64    pub fn op_equality(
65        lhs: impl ::core::convert::Into<crate::app::mappos::MapPos>,
66        rhs: impl ::core::convert::Into<crate::app::mappos::MapPos>,
67    ) -> bool {
68        unsafe {
69            ::unity::il2cpp_call!((::unity::module_base()+0x235b470usize)as*mut u8,bool;
70(crate::app::mappos::MapPos)::core::convert::Into::into(lhs),(crate::app::mappos::MapPos)::core::convert::Into::into(rhs))
71        }
72    }
73
74    #[doc = "`op_Inequality(crate::app::mappos::MapPos, crate::app::mappos::MapPos)` overload"]
75    pub fn op_inequality(
76        lhs: impl ::core::convert::Into<crate::app::mappos::MapPos>,
77        rhs: impl ::core::convert::Into<crate::app::mappos::MapPos>,
78    ) -> bool {
79        unsafe {
80            ::unity::il2cpp_call!((::unity::module_base()+0x235b490usize)as*mut u8,bool;
81(crate::app::mappos::MapPos)::core::convert::Into::into(lhs),(crate::app::mappos::MapPos)::core::convert::Into::into(rhs))
82        }
83    }
84}
85
86#[cfg(feature = "app-mappos")]
87impl MapPos {
88    #[doc = "`.ctor(crate::app::mappos::MapPos)` overload"]
89    pub fn ctor(&mut self, other: impl ::core::convert::Into<crate::app::mappos::MapPos>) -> () {
90        unsafe {
91            ::unity::il2cpp_call!((::unity::module_base()+0x235b340usize)as*mut u8,();
92(*mut MapPos)self as*mut MapPos,(crate::app::mappos::MapPos)::core::convert::Into::into(other))
93        }
94    }
95
96    #[doc = "`.ctor(i32, i32)` overload"]
97    pub fn ctor_2(&mut self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> () {
98        unsafe {
99            ::unity::il2cpp_call!((::unity::module_base()+0x235b350usize)as*mut u8,();
100(*mut MapPos)self as*mut MapPos,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
101        }
102    }
103
104    #[doc = "`Dispose()` overload"]
105    pub fn dispose(&mut self) -> () {
106        unsafe {
107            ::unity::il2cpp_call!((::unity::module_base()+0x235b360usize)as*mut u8,();
108(*mut MapPos)self as*mut MapPos)
109        }
110    }
111
112    #[doc = "`Add(crate::app::mappos::MapPos)` overload"]
113    pub fn add(&mut self, other: impl ::core::convert::Into<crate::app::mappos::MapPos>) -> () {
114        unsafe {
115            ::unity::il2cpp_call!((::unity::module_base()+0x235b370usize)as*mut u8,();
116(*mut MapPos)self as*mut MapPos,(crate::app::mappos::MapPos)::core::convert::Into::into(other))
117        }
118    }
119
120    #[doc = "`Add(i32, i32)` overload"]
121    pub fn add_2(&mut self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> () {
122        unsafe {
123            ::unity::il2cpp_call!((::unity::module_base()+0x235b390usize)as*mut u8,();
124(*mut MapPos)self as*mut MapPos,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
125        }
126    }
127
128    #[doc = "`AddX(i32)` overload"]
129    pub fn add_x(&mut self, x: impl ::core::convert::Into<i32>) -> () {
130        unsafe {
131            ::unity::il2cpp_call!((::unity::module_base()+0x235b3b0usize)as*mut u8,();
132(*mut MapPos)self as*mut MapPos,(i32)::core::convert::Into::into(x))
133        }
134    }
135
136    #[doc = "`AddZ(i32)` overload"]
137    pub fn add_z(&mut self, z: impl ::core::convert::Into<i32>) -> () {
138        unsafe {
139            ::unity::il2cpp_call!((::unity::module_base()+0x235b3c0usize)as*mut u8,();
140(*mut MapPos)self as*mut MapPos,(i32)::core::convert::Into::into(z))
141        }
142    }
143
144    #[doc = "`Sub(crate::app::mappos::MapPos)` overload"]
145    pub fn sub(&mut self, other: impl ::core::convert::Into<crate::app::mappos::MapPos>) -> () {
146        unsafe {
147            ::unity::il2cpp_call!((::unity::module_base()+0x235b3d0usize)as*mut u8,();
148(*mut MapPos)self as*mut MapPos,(crate::app::mappos::MapPos)::core::convert::Into::into(other))
149        }
150    }
151
152    #[doc = "`Sub(i32, i32)` overload"]
153    pub fn sub_2(&mut self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> () {
154        unsafe {
155            ::unity::il2cpp_call!((::unity::module_base()+0x235b3f0usize)as*mut u8,();
156(*mut MapPos)self as*mut MapPos,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
157        }
158    }
159
160    #[doc = "`SubX(i32)` overload"]
161    pub fn sub_x(&mut self, x: impl ::core::convert::Into<i32>) -> () {
162        unsafe {
163            ::unity::il2cpp_call!((::unity::module_base()+0x235b410usize)as*mut u8,();
164(*mut MapPos)self as*mut MapPos,(i32)::core::convert::Into::into(x))
165        }
166    }
167
168    #[doc = "`SubZ(i32)` overload"]
169    pub fn sub_z(&mut self, z: impl ::core::convert::Into<i32>) -> () {
170        unsafe {
171            ::unity::il2cpp_call!((::unity::module_base()+0x235b420usize)as*mut u8,();
172(*mut MapPos)self as*mut MapPos,(i32)::core::convert::Into::into(z))
173        }
174    }
175
176    #[doc = "`Equals(crate::system::object::Object)` overload"]
177    pub fn equals(&mut self, rhs_obj: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
178        unsafe {
179            ::unity::il2cpp_call!((::unity::module_base()+0x235b4b0usize)as*mut u8,bool;
180(*mut MapPos)self as*mut MapPos,(crate::system::object::Object)::core::convert::Into::into(rhs_obj))
181        }
182    }
183
184    #[doc = "`Equals(crate::app::mappos::MapPos)` overload"]
185    pub fn equals_2(&mut self, rhs: impl ::core::convert::Into<crate::app::mappos::MapPos>) -> bool {
186        unsafe {
187            ::unity::il2cpp_call!((::unity::module_base()+0x235b550usize)as*mut u8,bool;
188(*mut MapPos)self as*mut MapPos,(crate::app::mappos::MapPos)::core::convert::Into::into(rhs))
189        }
190    }
191
192    #[doc = "`GetHashCode()` overload"]
193    pub fn get_hash_code(&mut self) -> i32 {
194        unsafe {
195            ::unity::il2cpp_call!((::unity::module_base()+0x235b580usize)as*mut u8,i32;
196(*mut MapPos)self as*mut MapPos)
197        }
198    }
199
200    #[doc = "`ToString()` overload"]
201    pub fn to_string(&mut self) -> ::unity::Il2CppString {
202        unsafe {
203            ::unity::il2cpp_call!((::unity::module_base()+0x235b590usize)as*mut u8, ::unity::Il2CppString;
204(*mut MapPos)self as*mut MapPos)
205        }
206    }
207}
208
209#[cfg(feature = "app-mappos")]
210impl MapPos {
211    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
212        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
213    }
214
215    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
216        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
217    }
218
219    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
220        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
221    }
222
223    pub fn add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
224        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
225    }
226
227    pub fn add_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
228        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
229    }
230
231    pub fn add_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
232        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
233    }
234
235    pub fn add_z_method_info() -> &'static ::unity::il2cpp::MethodInfo {
236        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
237    }
238
239    pub fn sub_method_info() -> &'static ::unity::il2cpp::MethodInfo {
240        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
241    }
242
243    pub fn sub_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
244        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
245    }
246
247    pub fn sub_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
249    }
250
251    pub fn sub_z_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
253    }
254
255    pub fn op_addition_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
257    }
258
259    pub fn op_subtraction_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
261    }
262
263    pub fn op_equality_method_info() -> &'static ::unity::il2cpp::MethodInfo {
264        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
265    }
266
267    pub fn op_inequality_method_info() -> &'static ::unity::il2cpp::MethodInfo {
268        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
269    }
270
271    pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
272        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
273    }
274
275    pub fn equals_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
276        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
277    }
278
279    pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
280        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
281    }
282
283    pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
284        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
285    }
286}
287
288#[cfg(feature = "app-mappos")]
289#[doc(hidden)]
290pub mod prelude {
291    pub use super::MapPos;
292    #[cfg(feature = "system-object")]
293    pub use crate::system::object::IObjectMethods;
294    #[cfg(feature = "system-valuetype")]
295    pub use crate::system::valuetype::IValueTypeMethods;
296    pub use crate::system::{object::IObject, valuetype::IValueType};
297}