Skip to main content

engage/generated/unity_engine/
bounds.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-bounds-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/bounds/Bounds.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct Bounds {
17        pub m_center: crate::unity_engine::vector3::Vector3,
18        pub m_extents: crate::unity_engine::vector3::Vector3,
19    }
20    impl ::unity::ClassIdentity for Bounds {
21        const NAME: &'static str = "Bounds";
22        const NAMESPACE: &'static str = "UnityEngine";
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 Bounds {
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 = "unity_engine-bounds-types")]
37pub use __types::*;
38
39#[cfg(feature = "unity_engine-bounds")]
40impl Bounds {
41    #[doc = "`op_Equality(crate::unity_engine::bounds::Bounds, crate::unity_engine::bounds::Bounds)` overload"]
42    pub fn op_equality(
43        lhs: impl ::core::convert::Into<crate::unity_engine::bounds::Bounds>,
44        rhs: impl ::core::convert::Into<crate::unity_engine::bounds::Bounds>,
45    ) -> bool {
46        unsafe {
47            ::unity::il2cpp_call!((::unity::module_base()+0x2c38660usize)as*mut u8,bool;
48(crate::unity_engine::bounds::Bounds)::core::convert::Into::into(lhs),(crate::unity_engine::bounds::Bounds)::core::convert::Into::into(rhs))
49        }
50    }
51
52    #[doc = "`op_Inequality(crate::unity_engine::bounds::Bounds, crate::unity_engine::bounds::Bounds)` overload"]
53    pub fn op_inequality(
54        lhs: impl ::core::convert::Into<crate::unity_engine::bounds::Bounds>,
55        rhs: impl ::core::convert::Into<crate::unity_engine::bounds::Bounds>,
56    ) -> bool {
57        unsafe {
58            ::unity::il2cpp_call!((::unity::module_base()+0x2c386c0usize)as*mut u8,bool;
59(crate::unity_engine::bounds::Bounds)::core::convert::Into::into(lhs),(crate::unity_engine::bounds::Bounds)::core::convert::Into::into(rhs))
60        }
61    }
62}
63
64#[cfg(feature = "unity_engine-bounds")]
65impl Bounds {
66    #[doc = "`.ctor(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3)` overload"]
67    pub fn ctor(
68        &mut self,
69        center: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
70        size: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
71    ) -> () {
72        unsafe {
73            ::unity::il2cpp_call!((::unity::module_base()+0x2c38280usize)as*mut u8,();
74(*mut Bounds)self as*mut Bounds,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(center),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(size))
75        }
76    }
77
78    #[doc = "`GetHashCode()` overload"]
79    pub fn get_hash_code(&mut self) -> i32 {
80        unsafe {
81            ::unity::il2cpp_call!((::unity::module_base()+0x2c382b0usize)as*mut u8,i32;
82(*mut Bounds)self as*mut Bounds)
83        }
84    }
85
86    #[doc = "`Equals(crate::system::object::Object)` overload"]
87    pub fn equals(&mut self, other: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
88        unsafe {
89            ::unity::il2cpp_call!((::unity::module_base()+0x2c38340usize)as*mut u8,bool;
90(*mut Bounds)self as*mut Bounds,(crate::system::object::Object)::core::convert::Into::into(other))
91        }
92    }
93
94    #[doc = "`Equals(crate::unity_engine::bounds::Bounds)` overload"]
95    pub fn equals_2(&mut self, other: impl ::core::convert::Into<crate::unity_engine::bounds::Bounds>) -> bool {
96        unsafe {
97            ::unity::il2cpp_call!((::unity::module_base()+0x2c38430usize)as*mut u8,bool;
98(*mut Bounds)self as*mut Bounds,(crate::unity_engine::bounds::Bounds)::core::convert::Into::into(other))
99        }
100    }
101
102    #[doc = "`get_center()` overload"]
103    pub fn get_center(&mut self) -> crate::unity_engine::vector3::Vector3 {
104        unsafe {
105            ::unity::il2cpp_call!((::unity::module_base()+0x2c38320usize)as*mut u8,crate::unity_engine::vector3::Vector3;
106(*mut Bounds)self as*mut Bounds)
107        }
108    }
109
110    #[doc = "`set_center(crate::unity_engine::vector3::Vector3)` overload"]
111    pub fn set_center(&mut self, value: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
112        unsafe {
113            ::unity::il2cpp_call!((::unity::module_base()+0x2c384b0usize)as*mut u8,();
114(*mut Bounds)self as*mut Bounds,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(value))
115        }
116    }
117
118    #[doc = "`get_size()` overload"]
119    pub fn get_size(&mut self) -> crate::unity_engine::vector3::Vector3 {
120        unsafe {
121            ::unity::il2cpp_call!((::unity::module_base()+0x2c384c0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
122(*mut Bounds)self as*mut Bounds)
123        }
124    }
125
126    #[doc = "`set_size(crate::unity_engine::vector3::Vector3)` overload"]
127    pub fn set_size(&mut self, value: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
128        unsafe {
129            ::unity::il2cpp_call!((::unity::module_base()+0x2c384e0usize)as*mut u8,();
130(*mut Bounds)self as*mut Bounds,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(value))
131        }
132    }
133
134    #[doc = "`get_extents()` overload"]
135    pub fn get_extents(&mut self) -> crate::unity_engine::vector3::Vector3 {
136        unsafe {
137            ::unity::il2cpp_call!((::unity::module_base()+0x2c38330usize)as*mut u8,crate::unity_engine::vector3::Vector3;
138(*mut Bounds)self as*mut Bounds)
139        }
140    }
141
142    #[doc = "`set_extents(crate::unity_engine::vector3::Vector3)` overload"]
143    pub fn set_extents(&mut self, value: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
144        unsafe {
145            ::unity::il2cpp_call!((::unity::module_base()+0x2c38500usize)as*mut u8,();
146(*mut Bounds)self as*mut Bounds,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(value))
147        }
148    }
149
150    #[doc = "`get_min()` overload"]
151    pub fn get_min(&mut self) -> crate::unity_engine::vector3::Vector3 {
152        unsafe {
153            ::unity::il2cpp_call!((::unity::module_base()+0x2c38510usize)as*mut u8,crate::unity_engine::vector3::Vector3;
154(*mut Bounds)self as*mut Bounds)
155        }
156    }
157
158    #[doc = "`set_min(crate::unity_engine::vector3::Vector3)` overload"]
159    pub fn set_min(&mut self, value: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
160        unsafe {
161            ::unity::il2cpp_call!((::unity::module_base()+0x2c38530usize)as*mut u8,();
162(*mut Bounds)self as*mut Bounds,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(value))
163        }
164    }
165
166    #[doc = "`get_max()` overload"]
167    pub fn get_max(&mut self) -> crate::unity_engine::vector3::Vector3 {
168        unsafe {
169            ::unity::il2cpp_call!((::unity::module_base()+0x2c38590usize)as*mut u8,crate::unity_engine::vector3::Vector3;
170(*mut Bounds)self as*mut Bounds)
171        }
172    }
173
174    #[doc = "`set_max(crate::unity_engine::vector3::Vector3)` overload"]
175    pub fn set_max(&mut self, value: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
176        unsafe {
177            ::unity::il2cpp_call!((::unity::module_base()+0x2c38600usize)as*mut u8,();
178(*mut Bounds)self as*mut Bounds,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(value))
179        }
180    }
181
182    #[doc = "`SetMinMax(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3)` overload"]
183    pub fn set_min_max(
184        &mut self,
185        min: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
186        max: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
187    ) -> () {
188        unsafe {
189            ::unity::il2cpp_call!((::unity::module_base()+0x2c385b0usize)as*mut u8,();
190(*mut Bounds)self as*mut Bounds,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(min),(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(max))
191        }
192    }
193
194    #[doc = "`Encapsulate(crate::unity_engine::vector3::Vector3)` overload"]
195    pub fn encapsulate(&mut self, point: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
196        unsafe {
197            ::unity::il2cpp_call!((::unity::module_base()+0x2c38740usize)as*mut u8,();
198(*mut Bounds)self as*mut Bounds,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(point))
199        }
200    }
201
202    #[doc = "`Encapsulate(crate::unity_engine::bounds::Bounds)` overload"]
203    pub fn encapsulate_2(&mut self, bounds: impl ::core::convert::Into<crate::unity_engine::bounds::Bounds>) -> () {
204        unsafe {
205            ::unity::il2cpp_call!((::unity::module_base()+0x2c38870usize)as*mut u8,();
206(*mut Bounds)self as*mut Bounds,(crate::unity_engine::bounds::Bounds)::core::convert::Into::into(bounds))
207        }
208    }
209
210    #[doc = "`Intersects(crate::unity_engine::bounds::Bounds)` overload"]
211    pub fn intersects(&mut self, bounds: impl ::core::convert::Into<crate::unity_engine::bounds::Bounds>) -> bool {
212        unsafe {
213            ::unity::il2cpp_call!((::unity::module_base()+0x2c388d0usize)as*mut u8,bool;
214(*mut Bounds)self as*mut Bounds,(crate::unity_engine::bounds::Bounds)::core::convert::Into::into(bounds))
215        }
216    }
217
218    #[doc = "`ToString()` overload"]
219    pub fn to_string(&mut self) -> ::unity::Il2CppString {
220        unsafe {
221            ::unity::il2cpp_call!((::unity::module_base()+0x2c38960usize)as*mut u8, ::unity::Il2CppString;
222(*mut Bounds)self as*mut Bounds)
223        }
224    }
225}
226
227#[cfg(feature = "unity_engine-bounds")]
228impl Bounds {
229    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
230        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
231    }
232
233    pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
234        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
235    }
236
237    pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
238        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
239    }
240
241    pub fn equals_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
242        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
243    }
244
245    pub fn get_center_method_info() -> &'static ::unity::il2cpp::MethodInfo {
246        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
247    }
248
249    pub fn set_center_method_info() -> &'static ::unity::il2cpp::MethodInfo {
250        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
251    }
252
253    pub fn get_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
254        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
255    }
256
257    pub fn set_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
258        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
259    }
260
261    pub fn get_extents_method_info() -> &'static ::unity::il2cpp::MethodInfo {
262        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
263    }
264
265    pub fn set_extents_method_info() -> &'static ::unity::il2cpp::MethodInfo {
266        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
267    }
268
269    pub fn get_min_method_info() -> &'static ::unity::il2cpp::MethodInfo {
270        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
271    }
272
273    pub fn set_min_method_info() -> &'static ::unity::il2cpp::MethodInfo {
274        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
275    }
276
277    pub fn get_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
278        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
279    }
280
281    pub fn set_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
283    }
284
285    pub fn op_equality_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
287    }
288
289    pub fn op_inequality_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
291    }
292
293    pub fn set_min_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
295    }
296
297    pub fn encapsulate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
298        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
299    }
300
301    pub fn encapsulate_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
303    }
304
305    pub fn intersects_method_info() -> &'static ::unity::il2cpp::MethodInfo {
306        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
307    }
308
309    pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
311    }
312}
313
314#[cfg(feature = "unity_engine-bounds")]
315#[doc(hidden)]
316pub mod prelude {
317    pub use super::Bounds;
318    #[cfg(feature = "system-object")]
319    pub use crate::system::object::IObjectMethods;
320    #[cfg(feature = "system-valuetype")]
321    pub use crate::system::valuetype::IValueTypeMethods;
322    pub use crate::system::{object::IObject, valuetype::IValueType};
323}